A big lookup table

In a fragment shader, I need a 1D lookup table with a length of 65536 .But GL_MAX_TEXTURE_SIZE=4096.Does it mean that I couldn’t use teximage1D ?any way to solve it ?I wondered if a uniform matrix would help.

If you have hardware capable of SM4.0, you could use a texture buffer object:


use texture 2D 256x256
compute the 2D texture coordinates in shader.

Thank you,guys.

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.