blob: 5b19761cd891f8bef65ff6d596f7b7309ef832e9 (
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
30
31
|
[require]
GLSL >= 1.10
[vertex shader]
uniform vec3 arg0;
uniform vec3 arg1;
varying vec3 color;
void main()
{
gl_Position = gl_Vertex;
/* try to trigger masked mov for dp */
vec3 val = arg0;
val.y = dot(arg0, arg1);
color = val.yxz * 0.25;
}
[fragment shader]
varying vec3 color;
void main()
{
gl_FragColor = vec4(color, 0.0);
}
[test]
uniform vec3 arg0 2.0 1.0 1.0
uniform vec3 arg1 1.0 1.0 1.0
draw rect -1 -1 2 2
probe rgba 1 1 1.0 0.50 0.25 0.0
|