mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-08 00:32:11 +00:00
Unfortunately, the maximum point size on Intel hardwar seems to be 1, so I can't tell if the colors are right. This is largely just a hacked version of GL's particle code.
12 lines
184 B
GLSL
12 lines
184 B
GLSL
//precision mediump float;
|
|
uniform sampler2D palette;
|
|
|
|
varying float color;
|
|
|
|
void
|
|
main (void)
|
|
{
|
|
if (color == 1.0)
|
|
discard;
|
|
gl_FragColor = texture2D (palette, vec2 (color, 0.0));
|
|
}
|