summaryrefslogtreecommitdiffstats
path: root/progs/fpglsl/while2.glsl
diff options
context:
space:
mode:
Diffstat (limited to 'progs/fpglsl/while2.glsl')
-rw-r--r--progs/fpglsl/while2.glsl9
1 files changed, 9 insertions, 0 deletions
diff --git a/progs/fpglsl/while2.glsl b/progs/fpglsl/while2.glsl
new file mode 100644
index 0000000..19c8904
--- /dev/null
+++ b/progs/fpglsl/while2.glsl
@@ -0,0 +1,9 @@
+void main() {
+ float sum = 0.0;
+ while (true) {
+ sum += 0.1;
+ if (sum > 0.8)
+ break;
+ }
+ gl_FragColor = vec4(sum);
+}