summaryrefslogtreecommitdiff
path: root/tests/shaders/glsl-vec-array.shader_test
blob: a2611f9150a164668f6f6d845634978fc5cd7f74 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
[require]
GLSL >= 1.10

[fragment shader]
vec2 a1[];
vec2 a2[];

void main()
{
	a1[3].y = 1.0;
	a2[3]=abs(a1[3]);
	gl_FragColor = vec4(0.0, a2[3].y, a1[3].y, 1.0);
}

[test]
draw rect -1 -1 2 2
probe all rgb 0.0 1.0 1.0