Sign in to follow this  

What is the meaning of this error?

This topic is 3850 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi everyone, I am getting a error while compiling the following fragment shader. varying highp vec3 texcoord; varying mediump vec4 basecolor; uniform sampler3D basetexture; void main(void) { mediump vec4 texlookup = texture3D(basetexture, texcoord); gl_FragColor = texlookup * basecolor; } What is the meaning of the following compile time error? ERROR: 0:4: sampler3D is not supported in GLES without GL_OES_texture_3D please point me out to right direction. Thanks.

Share this post


Link to post
Share on other sites
Quote:

ERROR: 0:4: sampler3D is not supported in GLES without GL_OES_texture_3

You're using OpenGL ES, and you lack the GL_OES_texture_3 extension, which means you do not have 3D texture support, which means you cannot create samplers for such textures, nor can you call texture3D.

The above is a logical conclusion based on the error message and the information you provided, there might be a workaround, but it sounds like you just can't use 3D textures and need to find an alternative method.

What are you actually trying to do?

Share this post


Link to post
Share on other sites

This topic is 3850 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this