SPIRV-Cross/shaders-msl/frag/write-depth-in-function.frag
2018-08-29 09:21:48 +02:00

15 lines
194 B
GLSL

#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();
}