summaryrefslogtreecommitdiff
path: root/progs/vpglsl/for.glsl
blob: 45d6845dacca2e63c09fe27c04a099a8a071aa3e (plain)
1
2
3
4
5
6
7

void main() {
   gl_Position = gl_Vertex;
   gl_FrontColor = vec4(0);
   for (int i = 0; i < 4; ++i)
       gl_FrontColor += gl_Color;
}