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
/
glslparsertest
/
shaders
/
CorrectSwizzle2.vert
blob
26899f30974bff3f0114cde1f7ce1f4307bb304d
1
void main()
\r
2
{
\r
3
vec4 v1 = vec4(5,6,7,8);
\r
4
vec4 v2 = vec4(9,10, 11, 12);
\r
5
vec3 v3 = (v1 * v2).ywx;
\r
6
float f = (v2 * v1).z;
\r
7
vec3 v4 = normalize((v1.ywx * v3).xyz).xyz;
\r
8
gl_Position = vec4(v4, f);
\r
9
}
\r