summaryrefslogtreecommitdiff
path: root/tests/shaders/glsl-uniform-initializer-7.shader_test
blob: 4d6f28f67160a7b0c3a43c5ad28f6f3793c21e8d (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
28
29
[require]
GLSL >= 1.20

[vertex shader]
#version 120

void main()
{
	gl_Position = gl_Vertex;
}

[fragment shader]
#version 120

uniform mat4x3 m = mat4x3(0.0, 1.0, 0.0,
			  1.0, 0.0, 0.0,
			  0.0, 0.0, 1.0,
			  0.0, 0.0, 0.0);
uniform vec4 color;

void main()
{
	gl_FragColor = vec4(m * color, 0.0);
}

[test]
uniform vec4 color 1.0 0.0 0.5
draw rect -1 -1 2 2
probe all rgba 0.0 1.0 0.5 0.0