spv.depthOut.frag 146 B

123456789101112
  1. #version 450
  2. in vec4 Color;
  3. in float Depth;
  4. layout(depth_greater) out float gl_FragDepth;
  5. void main()
  6. {
  7. gl_FragDepth = Depth;
  8. }