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

[fragment shader]
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