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-sqrt-branch.frag
blob
a499fc533daed3756ef3f1dff8d51127071397bc
1
uniform vec4 args1, args2;
2
3
void main()
4
{
5
if (args2.x != 0.0)
6
gl_FragColor = sqrt(args1);
7
else
8
gl_FragColor = args2;
9
}