summaryrefslogtreecommitdiffstats
path: root/progs/fpglsl/while.glsl
diff options
context:
space:
mode:
Diffstat (limited to 'progs/fpglsl/while.glsl')
-rw-r--r--progs/fpglsl/while.glsl7
1 files changed, 7 insertions, 0 deletions
diff --git a/progs/fpglsl/while.glsl b/progs/fpglsl/while.glsl
new file mode 100644
index 00000000000..05fb860ddcf
--- /dev/null
+++ b/progs/fpglsl/while.glsl
@@ -0,0 +1,7 @@
+void main() {
+ float sum = 0.0;
+ while (sum < 0.499999) {
+ sum += 0.1;
+ }
+ gl_FragColor = vec4(sum);
+}