11 /* Intentionally initialize the array in a non-ascending order. */
13 array[2] = vec4(0.1, 0, 0, 0) * one;
14 array[0] = vec4(0, 0.1, 0, 0) * one;
15 array[3] = vec4(0, 0, 0.1, 0) * one;
16 array[1] = vec4(0, 0.1, 0.1, 0) * one;
17 array[index] = vec4(0.5, 0.5, 0.5, 0);
18 gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;
19 gl_FrontColor = array[0] + array[1] + array[2] + array[3];
22 [fragment shader file]
27 clear color 0.5 0.5 0.5 0.5
32 probe rgb 15 15 0.6 0.6 0.7
35 probe rgb 35 15 0.6 0.6 0.6
38 probe rgb 55 15 0.5 0.7 0.7
41 probe rgb 75 15 0.6 0.7 0.6