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