2014-02-12 16:16:10 -05:00
|
|
|
#version 330
|
2014-01-09 12:08:23 -05:00
|
|
|
uniform mat4 ModelViewProjectionMatrix;
|
|
|
|
uniform mat4 TransposeInverseModelView;
|
|
|
|
|
2014-01-17 17:50:06 -05:00
|
|
|
in vec3 Position;
|
|
|
|
in vec2 Texcoord;
|
|
|
|
in vec3 Tangent;
|
|
|
|
in vec3 Bitangent;
|
2013-12-18 19:13:17 -05:00
|
|
|
noperspective out vec3 tangent;
|
|
|
|
noperspective out vec3 bitangent;
|
2014-01-09 12:08:23 -05:00
|
|
|
out vec2 uv;
|
2012-01-15 11:37:15 -05:00
|
|
|
|
|
|
|
void main()
|
|
|
|
{
|
2014-01-17 17:50:06 -05:00
|
|
|
uv = Texcoord;
|
|
|
|
tangent = (TransposeInverseModelView * vec4(Tangent, 1.)).xyz;
|
|
|
|
bitangent = (TransposeInverseModelView * vec4(Bitangent, 1.)).xyz;
|
|
|
|
gl_Position = ModelViewProjectionMatrix * vec4(Position, 1.);
|
2012-01-15 11:37:15 -05:00
|
|
|
|
2013-12-19 18:58:26 -05:00
|
|
|
}
|