summaryrefslogtreecommitdiff
path: root/tests/shaders/glsl-vs-arrays.vert
blob: 5a0fa927a0a743d22cfe607c40ab4b514a494340 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
uniform int index1; /* 3 */
uniform int index2; /* 2 */

void main()
{
	vec4 temp[4];

	temp[3]= vec4(0.0, 1.0, 0.0, 0.0);
	temp[index2] = temp[index1];

	gl_FrontColor = temp[2];
	gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;
}