I am trying to render a 3D medical data in a brower using WebGL 2.0.
AFAIK 3D textures are now supported in WebGL 2.0.
texImage3D() is a recognized function call.
I am writing a fragment shader and declaring a uniform sampler:
uniform sampler3D samp;
When i run it on Firefox, I get an error :
uncaught exception: Shader compile error: ERROR: 0:19: 'sampler3D' : Illegal use of reserved word ERROR: 0:19: 'sampler3D' : syntax error
Works just fine when I use sampler2D (does not solve my purpose though).
Could anybody please point me as to what am I doing wrong here?
Is sampler3D not supported yet? But in that case how is any texture that is loaded using texImage3D() supposed to be accessed?