summaryrefslogtreecommitdiff
path: root/tests/shaders/glsl-vs-dot-vec2.shader_test
blob: 3d7ca3a8d7d7afd47f716c5acfe780409e25fcff (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
[require]
GLSL >= 1.10

[vertex shader]
uniform vec4 arg0;
varying vec4 v;
void main()
{
	gl_Position = gl_Vertex;
	v = vec4(dot(arg0.yy, arg0.yy),
			    dot(arg0.xx, arg0.zw),
			    dot(arg0.zw, arg0.xx),
			    dot(arg0.yw, arg0.wy));
}

[fragment shader]
varying vec4 v;
void main()
{
	gl_FragColor = v;
}

[test]
uniform vec4 arg0 0.25 0.5 1.0 2.0
draw rect -1 -1 2 2
probe all rgba 0.5 0.75 0.75 1.0