diff options
Diffstat (limited to 'progs/fpglsl/forbreak.glsl')
-rw-r--r-- | progs/fpglsl/forbreak.glsl | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/progs/fpglsl/forbreak.glsl b/progs/fpglsl/forbreak.glsl new file mode 100644 index 0000000000..0b8d957cb0 --- /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.0; + gl_FragColor = sum; +} |