N8python / n8ao

An efficient and visually pleasing implementation of SSAO with an emphasis on temporal stability and artist control.
Creative Commons Zero v1.0 Universal
378 stars 14 forks source link

no default precision defined for variable 'vec2[4]' #36

Open jaymaycry opened 1 month ago

jaymaycry commented 1 month ago

Getting this error on Android phones (Xiaomi and Samsung):

THREE.WebGLProgram: Shader Error 0 - VALIDATE_STATUS false

Material Name: 
Material Type: ShaderMaterial

Program Info Log: invalid shaders

0:99: S0032: no default precision defined for variable 'vec2[4]'

Anyone else having this issue?

N8python commented 1 month ago

What version are you using?

This is fixed as of the latest N8AO: highp vec2[4] uvSamples;

jaymaycry commented 1 month ago

└─┬ @nnt/game@0.1.0 -> ./game └─┬ @react-three/postprocessing@2.16.3 └── n8ao@1.9.2

jaymaycry commented 1 month ago

Was testing it on a samsung galaxy S10 but it didn't work on a Redmi Note 11S as well

N8python commented 1 month ago

React three post processing has a variety of issues w/ updating N8AO.

See: https://github.com/N8python/n8ao/issues/32