summaryrefslogtreecommitdiffstats
path: root/progs/vpglsl
diff options
context:
space:
mode:
Diffstat (limited to 'progs/vpglsl')
-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;
+}