mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-17 18:30:58 +00:00
42034acc03
Also, rename the charmap uniform in quake2d.frag as it's more generic than that.
15 lines
259 B
GLSL
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));
|
|
}
|