DepthBlitFragmentShaderSource.frag 186 B

12345678910
  1. #version 450 core
  2. layout (binding = 0, set = 2) uniform sampler2D texDepth;
  3. layout (location = 0) in vec2 tex_coord;
  4. void main()
  5. {
  6. gl_FragDepth = texture(texDepth, tex_coord).r;
  7. }