quakeforge/libs/video/renderer/glsl/quakepnt.frag
Bill Currie 5e1a80e016 Implement particles as points.
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.
2012-01-19 10:39:03 +09:00

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));
}