summaryrefslogtreecommitdiff
path: root/tests/shaders/glsl-fs-loop.frag
blob: b00b9580a82afc06cf7f5f851a394c2abea97f30 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
uniform vec4 color;

void main()
{
	int count = int(color.w);
	vec3 c = color.xyz;
	int i;

	for (i = 0; i < count; i++) {
		c = c.yzx;
	}

	gl_FragColor = vec4(c, 1.0);
}