From 4a4e6f2cabdf39e9032e3e513f9966f471454077 Mon Sep 17 00:00:00 2001 From: Zack Rusin Date: Thu, 25 Oct 2007 11:47:25 -0400 Subject: Implement loops --- progs/vpglsl/for.glsl | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 progs/vpglsl/for.glsl (limited to 'progs/vpglsl') 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; +} -- cgit v1.2.3