~ubuntu-branches/ubuntu/oneiric/mesa-demos/oneiric

« back to all changes in this revision

Viewing changes to src/fpglsl/while2.glsl

  • Committer: Bazaar Package Importer
  • Author(s): Christopher James Halse Rogers
  • Date: 2010-09-27 16:18:27 UTC
  • Revision ID: james.westby@ubuntu.com-20100927161827-1yfgolc1oy9sjhi8
Tags: upstream-8.0.1
ImportĀ upstreamĀ versionĀ 8.0.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
void main() {
 
2
    float sum = 0.0;
 
3
    while (true) {
 
4
        sum += 0.1;
 
5
        if (sum > 0.8)
 
6
           break;
 
7
    }
 
8
    gl_FragColor = vec4(sum);
 
9
}