shaderColorPerVertex.vert 292 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
// ShaderColorPerVertex::vertexShaderText

ATTRIBUTE vec3 VertexPosition;
ATTRIBUTE vec3 VertexColor;
uniform mat4 ModelViewProjectionMatrix;
VARYING_VERT vec3 color;
INVARIANT_POS;
void main ()
{
	gl_Position = ModelViewProjectionMatrix * vec4 (VertexPosition, 1.0);
	color = VertexColor;
}