mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-17 02:11:35 +00:00
7d653f3676
The shaders now compile. No linking is done yet. Char quads are generated, but not sent to the card.
13 lines
231 B
GLSL
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));
|
|
}
|