80faf282dc
Only heightmap sim require version 140. git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14995 178a84e3-b1eb-0310-8ba1-8eac791a3b58
24 lines
439 B
GLSL
24 lines
439 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;
|
|
vec3 newposition = position;
|
|
|
|
vec4 viewpos = ViewMatrix * vec4(newposition, 1.0);
|
|
viewpos += size * vec4(quadcorner, 0., 0.);
|
|
gl_Position = ProjectionMatrix * viewpos;
|
|
}
|