diff options
author | Zack Rusin <[email protected]> | 2010-03-10 16:31:18 -0500 |
---|---|---|
committer | Zack Rusin <[email protected]> | 2010-03-10 16:32:07 -0500 |
commit | a44f362567f6ed4054e88d8afc94d38f19ed6269 (patch) | |
tree | 12643a0103bae89788157d55455a1454c0799a12 /progs/fpglsl/while2.glsl | |
parent | a75519cb43c85b99cd54bc46dd83accda0cbd6cd (diff) |
fpglsl: a few more useful glsl tests
Diffstat (limited to 'progs/fpglsl/while2.glsl')
-rw-r--r-- | progs/fpglsl/while2.glsl | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/progs/fpglsl/while2.glsl b/progs/fpglsl/while2.glsl new file mode 100644 index 00000000000..19c8904e283 --- /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); +} |