stk-code_catmod/data/shaders/particle.vert
vincentlj 9fbd2b19b1 GPUParticle: Implements generic fade out and rework particles lifetime.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14852 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-12-31 17:25:10 +00:00

15 lines
227 B
GLSL

#version 130
uniform mat4 matrix;
in vec3 position;
in float lifetime;
out float lf;
void main(void)
{
lf = lifetime;
gl_Position = matrix * vec4(position, 1.0);
gl_PointSize = 300. / gl_Position.w;
}