fda86ed45c
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@15008 178a84e3-b1eb-0310-8ba1-8eac791a3b58
17 lines
355 B
GLSL
17 lines
355 B
GLSL
#version 130
|
|
uniform mat4 ModelViewProjectionMatrix;
|
|
uniform mat4 TransposeInverseModelView;
|
|
|
|
in vec3 Position;
|
|
in vec2 Texcoord;
|
|
in vec3 Normal;
|
|
out vec2 uv;
|
|
noperspective out vec3 nor;
|
|
|
|
void main(void)
|
|
{
|
|
uv = Texcoord;
|
|
gl_Position = ModelViewProjectionMatrix * vec4(Position, 1.);
|
|
nor = (TransposeInverseModelView * vec4(Normal, 0.)).xyz;
|
|
}
|