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
glsl-1.20: move a bunch of shaders to the glsl-1.20 dir
[piglit.git]
/
tests
/
spec
/
glsl-1.20
/
execution
/
glsl-const-initializer-02.shader_test
blob
eb190e8029f5d5304ffbfc6de9be94319079d771
1
[require]
2
GLSL >= 1.20
3
4
[fragment shader]
5
#version 120
6
uniform float a;
7
uniform float b;
8
void main(void)
9
{
10
float f[4] = float[](0.5, 0.5, 0.5, 0.5);
11
f[0] = f[0] + a;
12
f[0] = f[0] - b;
13
gl_FragColor = vec4(f[0], f[1], f[2], f[3]);
14
}
15
16
[test]
17
uniform float a 0.3
18
uniform float b 0.3
19
draw rect -1 -1 2 2
20
probe all rgba 0.5 0.5 0.5 0.5
21