SPIRV-Cross/shaders-msl/frag/write-depth-in-function.frag

15 lines
194 B
GLSL
Raw Normal View History

#version 450
layout(location = 0) in float v;
layout(location = 0) out float FragColor;
void set_output_depth()
{
gl_FragDepth = 0.2;
}
void main()
{
FragColor = 1.0;
set_output_depth();
}