summaryrefslogtreecommitdiff
path: root/tests/shaders/glsl-vs-masked-cos.shader_test
blob: 92ab5e6cad83f9890181a433385a0adac66c7d55 (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
32
[require]
GLSL >= 1.10

[vertex shader]
uniform vec2 arg0;
uniform vec3 arg1;
varying vec3 color;

void main()
{
       gl_Position = gl_Vertex;

       /* try to trigger masked mov for cos */
       vec3 val = arg1;
       val.z = cos(arg0.x);
       color.x = val.z;
        color.yz = val.xy;
}

[fragment shader]
varying vec3 color;
void main()
{
       gl_FragColor = vec4(color, 0.0);
}

[test]
uniform vec2 arg0 0.0 0.0
uniform vec3 arg1 1.0 0.5 1.0
draw rect -1 -1 2 2
probe rgba 1 1 1.0 1.0 0.5 0.0