diff options
author | Zack Rusin <[email protected]> | 2010-03-10 15:37:18 -0500 |
---|---|---|
committer | Zack Rusin <[email protected]> | 2010-03-10 15:37:18 -0500 |
commit | 5f80dad7fd03ca811f2b0561269be0180970dbf8 (patch) | |
tree | 2ad05e3134684cf5e8a18d63027f1e3b096e1130 /progs/fpglsl/while.glsl | |
parent | 7069dff80f25d0ac532c9f76634d1cd382d4fac1 (diff) |
fpglsl: add some for and while loops
Diffstat (limited to 'progs/fpglsl/while.glsl')
-rw-r--r-- | progs/fpglsl/while.glsl | 7 |
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); +} |