nuclear@65: uniform sampler2D fbtex; nuclear@72: uniform sampler3D paltex; nuclear@65: nuclear@65: void main() nuclear@65: { nuclear@72: // lookup the render output color for this pixel nuclear@72: vec4 color = texture2D(fbtex, gl_TexCoord[0].st); nuclear@72: // use that color as an index into the palette nuclear@72: gl_FragColor = vec4(texture3D(paltex, color.xyz).xyz, color.a); nuclear@65: }