summaryrefslogtreecommitdiffstats
path: root/progs/fpglsl/for.glsl
diff options
context:
space:
mode:
Diffstat (limited to 'progs/fpglsl/for.glsl')
-rw-r--r--progs/fpglsl/for.glsl11
1 files changed, 11 insertions, 0 deletions
diff --git a/progs/fpglsl/for.glsl b/progs/fpglsl/for.glsl
new file mode 100644
index 00000000000..6aa03d6ef48
--- /dev/null
+++ b/progs/fpglsl/for.glsl
@@ -0,0 +1,11 @@
+uniform int KernelSizeInt;
+
+void main() {
+ int i;
+ vec4 sum = vec4(0.0);
+ for (i = 0; i < KernelSizeInt; ++i) {
+ sum.g += 0.25;
+ }
+ sum.a = 1;
+ gl_FragColor = sum;
+}