1
0
Fork 0
fgdata/Shaders/HDR/debug_gbuffer_depth.frag
2024-01-31 01:17:50 +01:00

14 lines
261 B
GLSL

#version 330 core
layout(location = 0) out vec4 fragColor;
in vec2 texcoord;
uniform sampler2D depth_tex;
void main()
{
float depth = texture(depth_tex, texcoord).r;
// Display depth as is, no linearization
fragColor = vec4(vec3(depth), 1.0);
}