blob: 2f0b16cc68504fd61a8ff08723bba3c8fe3a4426 (
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.30
GL_AMD_conservative_depth
[vertex shader passthrough]
[fragment shader]
#extension GL_AMD_conservative_depth: require
layout(depth_less) out float gl_FragDepth;
void foo();
void main()
{
gl_FragDepth = gl_FragCoord.z;
foo();
}
[fragment shader]
#extension GL_AMD_conservative_depth: require
layout(depth_greater) out float gl_FragDepth;
void foo()
{
if (gl_FragCoord.z > 0.5)
gl_FragDepth = 0.5;
}
[test]
link error
|