diff options
author | Zack Rusin <[email protected]> | 2007-10-25 11:47:25 -0400 |
---|---|---|
committer | Zack Rusin <[email protected]> | 2007-10-25 11:47:25 -0400 |
commit | 4a4e6f2cabdf39e9032e3e513f9966f471454077 (patch) | |
tree | be8abacf1a2b5e71c51217fbfcca17e244c8ad24 /progs/vpglsl/for.glsl | |
parent | 1d17cb721afaa53317614af90488a45c26e083e3 (diff) |
Implement loops
Diffstat (limited to 'progs/vpglsl/for.glsl')
-rw-r--r-- | progs/vpglsl/for.glsl | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/progs/vpglsl/for.glsl b/progs/vpglsl/for.glsl new file mode 100644 index 00000000000..45d6845dacc --- /dev/null +++ b/progs/vpglsl/for.glsl @@ -0,0 +1,7 @@ + +void main() { + gl_Position = gl_Vertex; + gl_FrontColor = vec4(0); + for (int i = 0; i < 4; ++i) + gl_FrontColor += gl_Color; +} |