stk-code_catmod/data/shaders/particle.frag
vincentlj 4c725ac8f4 GPUParticles: Got PointEmitter to draw something at last.
Still WIP, uses a #ifdef to disable it but I wanted to keep a working commit
somewhere in case I mess up somewhere.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14829 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-12-29 18:23:36 +00:00

13 lines
212 B
GLSL

#version 130
in float lifetime;
out vec3 color;
void main(void)
{
color = vec3(
(lifetime < 33.) ? 1. : 0.,
(lifetime < 67. && lifetime >= 34.) ? 1. : 0.,
(lifetime > 68.) ? 1. : 0.);
}