summaryrefslogtreecommitdiff
path: root/progs/fpglsl/while.glsl
blob: 05fb860ddcf5e98717feb530e0345573feb59f49 (plain)
1
2
3
4
5
6
7
void main() {
    float sum = 0.0;
    while (sum < 0.499999) {
	sum += 0.1;
    }
    gl_FragColor = vec4(sum);
}