10 lines
194 B
GLSL
10 lines
194 B
GLSL
|
#version 330 core
|
||
|
|
||
|
in float lifeTime;
|
||
|
out vec4 fragColor;
|
||
|
|
||
|
void main()
|
||
|
{
|
||
|
float normalizedLifeTime = lifeTime / 2;
|
||
|
fragColor = vec4( 5.f, normalizedLifeTime, 0.f, normalizedLifeTime);
|
||
|
};
|