blob: 135b308537a922f107cfc9f2e3955005796d5ede (
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 1.0
draw rect -1 -1 2 2
probe all rgba 0.0 1.0 0.5 0.0
|