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-vs-loop.vert
blob
380c6440f0ab413a3b89d955b27bf4096a4baa9e
1
void main()
2
{
3
gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;
4
5
int count = int(gl_Color.w);
6
vec3 c = gl_Color.xyz;
7
int i;
8
9
for (i = 0; i < count; i++) {
10
c = c.yzx;
11
}
12
13
gl_FrontColor = vec4(c, 1.0);
14
}
15