I need to use 3D Texture in my fragment shader on Android, but get compiling error. I use GLES3.0 and I think it should support 3D texture. My shader looks as follows:
#extension GL_OES_texture_3D : enable
precision mediump float;
uniform sampler3D u_Texture;
Without “#extension GL_OES_texture_3D : enable” I got error " L0003: Keyword ‘sampler3D’ is reserved"
With “#extension GL_OES_texture_3D : enable”, I got error “S0032: no default precision defined for variable ‘u_Texture’”
Even I use “uniform medium float sampler3D u_Texture”, I got “Expect, found sampler3D” error.
Hope get your help!