3 layout (location = 0) out vec4 color;
5 layout (location = 0) uniform struct {
9 } parts[2] = { { 1.0, 1.0, 1.0}, { 0.0, 1.0, 0.0 } };
12 color = vec4(0.0, 0.0, 0.0, 1.0);
14 for (int i = 0; i < 2; i++) {
15 color.r += parts[i].r;
16 color.g += parts[i].g;
17 color.b += parts[i].b;