8 gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;
17 /* Intentionally initialize the array in a non-ascending order. */
19 array[3] = vec4(1, 1, 0, 0) * one;
20 array[6] = vec4(0, 0, 0, 0) * one;
21 array[0] = vec4(1, 0, 0, 0) * one;
22 array[4] = vec4(1, 0, 1, 0) * one;
23 array[1] = vec4(0, 1, 0, 0) * one;
24 array[2] = vec4(0, 0, 1, 0) * one;
25 array[7] = vec4(1, 1, 1, 0) * one;
26 array[5] = vec4(0, 1, 1, 0) * one;
27 gl_FragColor = array[index];
32 clear color 0.5 0.5 0.5 0.5
51 draw rect 110 10 10 10
52 probe rgb 115 15 0 1 1
54 draw rect 130 10 10 10
55 probe rgb 135 15 0 0 0
57 draw rect 150 10 10 10
58 probe rgb 155 15 1 1 1