Hi guys!
I’m building a WebGl thing and I’m experimenting with custom shaders, in particular I have a problem when executing the build inside the browser because my shader use SAMPLER3D to get 3D noise data.
This is the error I’m getting:
ERROR: 0:30: ‘sampler3D’ : Illegal use of reserved word UnityLoader.js:2:135
ERROR: 0:30: ‘sampler3D’ : syntax error UnityLoader.js:2:135
UnityLoader.js:2:135
ERROR: 0:30: ‘sampler3D’ : Illegal use of reserved word UnityLoader.js:2:135
ERROR: 0:30: ‘sampler3D’ : syntax error
I read that sampler3D can be used inside WEBGL on this post:
http://stackoverflow.com/questions/37540707/syntax-error-encountered-in-webgl-2-0-glsl-when-using-sampler3d
Can anyone help me with this?
Thanks a ton !!