PDA

View Full Version : Paletted texture



yossi
05-18-2004, 11:53 PM
I have a texture of 8 bits indices that are entries to color lookup tables (256 RGBA values).
How do I implement it on shaders?
Can I define the color lut as a 1D RGBA texture?
If yes, how do I acceess both textures in the fragment shader.

Many thanks,

Yossi