2014-02-12 16:16:10 -05:00
|
|
|
#version 330
|
2014-01-18 19:32:08 -05:00
|
|
|
uniform mat4 ModelViewProjectionMatrix;
|
|
|
|
uniform mat4 TransposeInverseModelView;
|
|
|
|
|
|
|
|
in vec3 Position;
|
|
|
|
in vec3 Normal;
|
|
|
|
in vec2 Texcoord;
|
|
|
|
noperspective out vec3 nor;
|
|
|
|
out vec2 uv;
|
|
|
|
|
|
|
|
void main(void)
|
|
|
|
{
|
|
|
|
uv = Texcoord;
|
|
|
|
gl_Position = ModelViewProjectionMatrix * vec4(Position, 1.);
|
|
|
|
nor = (TransposeInverseModelView * vec4(Normal, 0.)).xyz;
|
|
|
|
}
|