2013-12-18 19:13:17 -05:00
|
|
|
#version 130
|
2014-01-24 14:29:54 -05:00
|
|
|
uniform mat4 ModelViewProjectionMatrix;
|
|
|
|
uniform mat4 TransposeInverseModelView;
|
2013-11-30 16:33:06 -05:00
|
|
|
|
2014-01-24 14:29:54 -05:00
|
|
|
in vec3 Position;
|
|
|
|
in vec3 Normal;
|
|
|
|
in vec2 Texcoord;
|
|
|
|
in vec4 Color;
|
|
|
|
out vec2 uv;
|
|
|
|
noperspective out vec3 normal;
|
2013-11-30 16:33:06 -05:00
|
|
|
|
|
|
|
void main() {
|
2014-01-24 14:29:54 -05:00
|
|
|
normal = (TransposeInverseModelView * vec4(Normal, 0)).xyz;
|
|
|
|
uv = Texcoord;
|
|
|
|
gl_Position = ModelViewProjectionMatrix * vec4(Position, 1.);
|
2013-11-30 16:33:06 -05:00
|
|
|
}
|