a38522da70
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14862 178a84e3-b1eb-0310-8ba1-8eac791a3b58
22 lines
403 B
GLSL
22 lines
403 B
GLSL
#version 130
|
|
uniform mat4 ProjectionMatrix;
|
|
uniform mat4 ViewMatrix;
|
|
|
|
in vec2 quadcorner;
|
|
in vec2 texcoord;
|
|
in vec3 position;
|
|
in float lifetime;
|
|
in float size;
|
|
|
|
out float lf;
|
|
out vec2 tc;
|
|
|
|
void main(void)
|
|
{
|
|
tc = texcoord;
|
|
lf = lifetime;
|
|
vec4 viewpos = ViewMatrix * vec4(position, 1.0);
|
|
viewpos += size * vec4(quadcorner, 0., 0.);
|
|
gl_Position = ProjectionMatrix * viewpos;
|
|
}
|