2014-02-12 16:16:10 -05:00
|
|
|
#version 330
|
2014-01-11 17:57:48 -05:00
|
|
|
uniform mat4 ModelViewProjectionMatrix;
|
2014-01-12 10:27:24 -05:00
|
|
|
uniform mat4 TransposeInverseModelView;
|
2014-01-11 17:57:48 -05:00
|
|
|
|
|
|
|
in vec3 Position;
|
2014-01-12 10:27:24 -05:00
|
|
|
in vec3 Normal;
|
|
|
|
noperspective out vec3 nor;
|
2014-01-11 17:57:48 -05:00
|
|
|
|
|
|
|
void main(void)
|
|
|
|
{
|
|
|
|
gl_Position = ModelViewProjectionMatrix * vec4(Position, 1.);
|
2014-01-12 10:27:24 -05:00
|
|
|
nor = (TransposeInverseModelView * vec4(Normal, 0.)).xyz;
|
2014-01-11 17:57:48 -05:00
|
|
|
}
|