aboutsummaryrefslogtreecommitdiffstats
path: root/progs
diff options
context:
space:
mode:
authorZack Rusin <[email protected]>2007-10-25 11:47:25 -0400
committerZack Rusin <[email protected]>2007-10-25 11:47:25 -0400
commit4a4e6f2cabdf39e9032e3e513f9966f471454077 (patch)
treebe8abacf1a2b5e71c51217fbfcca17e244c8ad24 /progs
parent1d17cb721afaa53317614af90488a45c26e083e3 (diff)
Implement loops
Diffstat (limited to 'progs')
-rw-r--r--progs/vpglsl/for.glsl7
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;
+}