frag.glsl 86 B

1234567
  1. #version 330
  2. out float frag_depth;
  3. void main() {
  4. frag_depth = gl_FragCoord.z;
  5. }