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-max.shader_test
blob
4b7fed55f226604c9a977f95c90e7a00b3dc83ee
1
[require]
2
GL >= 2.0
3
GLSL >= 1.10
4
5
[vertex shader]
6
void main()
7
{
8
gl_Position = gl_Vertex;
9
}
10
11
[fragment shader]
12
uniform vec4 arg0;
13
uniform vec4 arg1;
14
void main()
15
{
16
gl_FragColor = max(arg0, arg1) + vec4(0.0, 0.0, 1.0, 0.5);
17
}
18
19
[test]
20
uniform vec4 arg0 0.5 0.0 -1.0 0.0
21
uniform vec4 arg1 0.0 0.5 -0.5 -1.0
22
draw rect -1 -1 2 2
23
probe rgba 1 1 0.5 0.5 0.5 0.5