box3d/shaders/depth_copy_fs.glsl
2026-05-10 13:36:52 -07:00

10 lines
143 B
GLSL

#version 330 core
in vec2 TexCoords;
uniform sampler2D depthTexture;
void main()
{
gl_FragDepth = texture(depthTexture, TexCoords).r;
}