repo.or.cz
/
piglit
/
hramrach.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Add more structure constructor tests.
[piglit/hramrach.git]
/
tests
/
shaders
/
glsl-fs-loop.frag
blob
b00b9580a82afc06cf7f5f851a394c2abea97f30
1
uniform vec4 color;
2
3
void main()
4
{
5
int count = int(color.w);
6
vec3 c = color.xyz;
7
int i;
8
9
for (i = 0; i < count; i++) {
10
c = c.yzx;
11
}
12
13
gl_FragColor = vec4(c, 1.0);
14
}