repo.or.cz
/
piglit.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
perf/pixel-rate: new pixel throughput microbenchmark
[piglit.git]
/
tests
/
spec
/
glsl-1.10
/
execution
/
glsl-fs-neg.shader_test
blob
1d8aa817fc6c0bc22a312a37ee6a00c3627e2c7b
1
[require]
2
GLSL >= 1.10
3
4
[vertex shader]
5
void main()
6
{
7
gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;
8
}
9
10
[fragment shader]
11
uniform vec4 color;
12
void main()
13
{
14
gl_FragColor = -color;
15
}
16
17
[test]
18
uniform vec4 color 1.0 -1.0 0.0 0.0
19
draw rect -1 -1 2 2
20
probe rgb 1 1 0.0 1.0 0.0