quakeforge/libs/video/renderer/glsl/quaketxt.frag
Bill Currie 7d653f3676 Start work on outputting text.
The shaders now compile. No linking is done yet. Char quads are generated,
but not sent to the card.
2011-12-25 19:42:39 +09:00

13 lines
231 B
GLSL

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