mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-14 08:50:58 +00:00
928dd92276
I realized it's pretty silly using colormap + palette when I can just combine the two into one and have a 2D palette. This is in preparation for that.
10 lines
154 B
GLSL
10 lines
154 B
GLSL
//precision mediump float;
|
|
varying float color;
|
|
|
|
void
|
|
main (void)
|
|
{
|
|
if (color == 1.0)
|
|
discard;
|
|
gl_FragColor = texture2D (palette, vec2 (pix, 0.0));
|
|
}
|