quakeforge/libs/video/renderer/glsl/quake2d.frag
Bill Currie 42034acc03 Organize the text program data.
Also, rename the charmap uniform in quake2d.frag as it's more generic than
that.
2011-12-26 18:00:55 +09:00

15 lines
259 B
GLSL

//precision mediump float;
uniform sampler2D texture;
uniform sampler2D palette;
varying vec2 st;
void
main (void)
{
float pix;
pix = texture2D (texture, st).r;
if (pix == 1.0)
discard;
gl_FragColor = texture2D (palette, vec2 (pix, 0.5));
}