quakeforge/libs/video/renderer/glsl/quaketxt.frag

14 lines
231 B
GLSL
Raw Normal View History

//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));
}