summaryrefslogtreecommitdiffstats
path: root/progs/fpglsl/forbreak.glsl
diff options
context:
space:
mode:
authorZack Rusin <[email protected]>2010-03-10 16:31:18 -0500
committerZack Rusin <[email protected]>2010-03-10 16:32:07 -0500
commita44f362567f6ed4054e88d8afc94d38f19ed6269 (patch)
tree12643a0103bae89788157d55455a1454c0799a12 /progs/fpglsl/forbreak.glsl
parenta75519cb43c85b99cd54bc46dd83accda0cbd6cd (diff)
fpglsl: a few more useful glsl tests
Diffstat (limited to 'progs/fpglsl/forbreak.glsl')
-rw-r--r--progs/fpglsl/forbreak.glsl13
1 files changed, 13 insertions, 0 deletions
diff --git a/progs/fpglsl/forbreak.glsl b/progs/fpglsl/forbreak.glsl
new file mode 100644
index 00000000000..87669c65758
--- /dev/null
+++ b/progs/fpglsl/forbreak.glsl
@@ -0,0 +1,13 @@
+uniform int KernelSizeInt;
+
+void main() {
+ int i;
+ vec4 sum = vec4(0.0);
+ for (i = 0; i < KernelSizeInt; ++i) {
+ sum.g += 0.25;
+ if (i > 0)
+ break;
+ }
+ sum.a = 1;
+ gl_FragColor = sum;
+}