summaryrefslogtreecommitdiffstats
path: root/progs/fpglsl/while2.glsl
blob: 19c8904e2830c1c4d89a82d4d6e746fec5bb44f6 (plain)
1
2
3
4
5
6
7
8
9
void main() {
    float sum = 0.0;
    while (true) {
	sum += 0.1;
        if (sum > 0.8)
           break;
    }
    gl_FragColor = vec4(sum);
}