Texture3D Bug, with texture2D

Hi,
I got an error below when I use the sampler3D in the shader.
“GL_INVALID_OPERATION: Two textures of different types use the same sampler location.”
I attached the test scene with the shader code. It looks like that the texture3D cannot be used with texture2D sampler.

Working version ( but texture3D didn’t used )

Bug version ( but texture3D didn’t used )

Thanks,

You must provide a texture for each sampler you declare in your shader:

1 Like

Thanks, It resolved. :smiley:

Hi @Evgeni_Popov ,

Thank you for your advice.
Btw, I faced another issue with integer texture, I posted another topic with below url.

Can you help me with any hint?