summaryrefslogtreecommitdiff
path: root/tests/shaders/glsl-floating-constant-120.shader_test
blob: 5c7ec92e94b58c1a3d8b9ad80f3be4cbaf2993de (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
[require]
GLSL >= 1.20

[vertex shader]
void main()
{
	gl_Position = gl_Vertex;
}

[fragment shader]
#version 120

void main()
{
	float f1 = 1.0f;
	float f2 = 0.F;
	float f3 = .2f;
	float f4 = 5e-1F;

	gl_FragColor = vec4(f1, f2, f3, f4);
}

[test]
draw rect -1 -1 2 2
probe rgba 1 1 1.0 0.0 0.2 0.5