summaryrefslogtreecommitdiff
path: root/tests/shaders/glsl-fs-uniform-array-3.shader_test
blob: 576b044a0434c45c06fe1f060c692b8384beac2e (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
27
[require]
GLSL >= 1.20

[vertex shader]
void main()
{
	gl_Position = gl_Vertex;
}

[fragment shader]
#version 120

uniform vec2[2] color;
void main()
{
	gl_FragColor = vec4(color[0], color[1]);
}

[test]
uniform vec2 color 0.0 1.0
uniform vec2 color[1] 0.0 0.0
draw rect -1 -1 1 2
uniform vec2 color[0] 0.0 0.0
uniform vec2 color[1] 1.0 0.0
draw rect 0 -1 1 2
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)