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

10 lines
131 B
GLSL
Raw Normal View History

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