summaryrefslogtreecommitdiff
path: root/tests/spec/glsl-es-1.00/execution/mediump_rsq.shader_test
blob: ed3284842bfdc6403f50b57920ba92eddf36da77 (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]
GL ES >= 2.0
GLSL ES >= 1.00

[vertex shader]
#version 100

precision highp float;

attribute vec4 piglit_vertex;

void main()
{
	gl_Position = piglit_vertex;
}

[fragment shader]
#version 100

precision mediump float;

uniform vec4 color;
void main()
{
	gl_FragColor = vec4(0.0, 0.5 / inversesqrt(color.g), 0.0, 1.0);
}

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