summaryrefslogtreecommitdiff
path: root/progs/vpglsl/for.glsl
diff options
context:
space:
mode:
Diffstat (limited to 'progs/vpglsl/for.glsl')
-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 0000000000..45d6845dac
--- /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;
+}