Debian Codegraph @

third_party/spirv-cross/shaders-msl/frag/write-depth-in-function.frag

raw
1 #version 450
2 layout(location = 0) in float v;
3 layout(location = 0) out float FragColor;
4
5 void set_output_depth()
6 {
7 gl_FragDepth = 0.2;
8 }
9
10 void main()
11 {
12 FragColor = 1.0;
13 set_output_depth();
14 }