4c725ac8f4
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
13 lines
212 B
GLSL
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.);
|
|
}
|