SPIRV-Cross/reference/shaders/desktop-only/frag/depth-greater-than.desktop.frag

10 lines
134 B
GLSL
Raw Normal View History

#version 450
layout(depth_greater) out float gl_FragDepth;
layout(early_fragment_tests) in;
void main()
{
gl_FragDepth = 0.5;
}