2013-12-18 19:13:17 -05:00
|
|
|
#version 130
|
2013-11-30 16:33:06 -05:00
|
|
|
|
2013-12-18 19:13:17 -05:00
|
|
|
noperspective out vec3 nor;
|
|
|
|
noperspective out vec3 eyenor;
|
|
|
|
noperspective out vec3 viewpos;
|
2013-11-30 16:33:06 -05:00
|
|
|
|
|
|
|
void main() {
|
2013-12-18 19:13:17 -05:00
|
|
|
nor = gl_NormalMatrix * gl_Normal;
|
2013-11-30 16:33:06 -05:00
|
|
|
eyenor = gl_NormalMatrix * gl_Normal;
|
|
|
|
viewpos = -normalize((gl_ModelViewMatrix * gl_Vertex).xyz);
|
|
|
|
|
2013-12-19 18:58:26 -05:00
|
|
|
gl_TexCoord[0] = gl_TextureMatrix[0] * gl_MultiTexCoord0;
|
2014-01-09 11:09:27 -05:00
|
|
|
gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;
|
2013-11-30 16:33:06 -05:00
|
|
|
gl_FrontColor = gl_Color;
|
|
|
|
}
|