summaryrefslogtreecommitdiffstats
path: root/progs/fpglsl/for.glsl
blob: 6aa03d6ef48f2a95608ab9a0ab0cd6910e5f604d (plain)
1
2
3
4
5
6
7
8
9
10
11
uniform int KernelSizeInt;

void main() {
    int i;
    vec4 sum = vec4(0.0);
    for (i = 0; i < KernelSizeInt; ++i) {
	sum.g += 0.25;
    }
    sum.a = 1;
    gl_FragColor = sum;
}