7 uniform int count1, count2;
12 array[0] = vec4(0.1, 0, 0, 0) * one;
13 array[1] = vec4(0, 0.1, 0, 0) * one;
14 array[2] = vec4(0, 0, 0.1, 0) * one;
15 array[3] = vec4(0, 0.1, 0, 0) * one;
16 array[4] = vec4(0, 0 , 0.1, 0) * one;
17 array[5] = vec4(0, 0, 0.1, 0) * one;
18 array[6] = vec4(0.1, 0, 0, 0) * one;
19 array[7] = vec4(0, 0.1, 0, 0) * one;
20 gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;
22 for (int i = 0; i < count1; i++)
23 for (int j = 0; j < count2; j++)
28 [fragment shader file]
33 clear color 0.5 0.5 0.5 0.5
45 probe rgb 35 15 0.1 0 0
50 probe rgb 55 15 0.1 0.1 0.1
55 probe rgb 75 15 0.3 0 0
60 probe rgb 95 15 0.3 0.3 0
64 draw rect 110 10 10 10
65 probe rgb 115 15 0.2 0.4 0.2
69 draw rect 130 10 10 10
70 probe rgb 135 15 0.5 0.5 0
74 draw rect 150 10 10 10
75 probe rgb 155 15 0.6 0.9 0.9
79 draw rect 170 10 10 10
80 probe rgb 175 15 0.5 1 1
84 draw rect 190 10 10 10
85 probe rgb 195 15 0.4 0.4 0.6