summaryrefslogtreecommitdiff
path: root/client/shaders/test_shader_2/opengl_vertex.glsl
blob: 6286fc0d716d67e4425af1822e28ad9854db3e0a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

uniform mat4 mWorldViewProj;
uniform mat4 mInvWorld;
uniform mat4 mTransWorld;

varying vec3 vPosition;

void main(void)
{
	vec4 pos = gl_Vertex;
	pos.y -= 2.0;
	gl_Position = mWorldViewProj * pos;

	vPosition = (mWorldViewProj * gl_Vertex).xyz;

	gl_FrontColor = gl_BackColor = gl_Color;
	//gl_FrontColor = gl_BackColor = vec4(1.0, 1.0, 1.0, 1.0);

	gl_TexCoord[0] = gl_MultiTexCoord0;
}