summaryrefslogtreecommitdiff
path: root/tests/shaders/glsl-complex-subscript.shader_test
blob: 99e294d209f175b51a56569c6682850885d03f01 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
[require]
GL >= 2.0
GLSL >= 1.10

[fragment shader]
#version 120

void main()
{
	mat2 a;
	a[0][0] = 0;
	a[int(a[0][0])][1] = 1;
	if (a[0][0] == 0 && a[0][1] == 1)
		gl_FragColor = vec4(0, 1, 0, 1);
	else
		gl_FragColor = vec4(1, 0, 0, 1);
	
}

[test]
draw rect -1 -1 2 2
probe all rgba 0 1 0 1