mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-12 00:01:43 +00:00
5e1a80e016
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));
|
|
}
|