summaryrefslogtreecommitdiff
path: root/tests/shaders/glsl-uniform-initializer-5.shader_test
blob: de62b267635054303d127c86f880e7f5aac0df09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
[require]
GLSL >= 1.20

[vertex shader]
#version 120

uniform vec4 color = vec4(0.0, 1.0, 0.0, 0.0);
void main()
{
	gl_Position = gl_Vertex;
}

[fragment shader]
uniform vec4 color;
void main()
{
	gl_FragColor = color;
}

[test]
draw rect -1 -1 1 2
uniform vec4 color 0.0 0.0 1.0 0.0
draw rect 0 -1 1 2
uniform vec4 color 0.0 1.0 0.0 0.0
relative probe rgb (0.25, 0.5) (0.0, 1.0, 0.0)
relative probe rgb (0.75, 0.5) (0.0, 0.0, 1.0)