2023-04-07 06:17:37 +00:00
|
|
|
#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;
|
2024-01-30 23:24:01 +00:00
|
|
|
// Display depth as is, no linearization
|
|
|
|
fragColor = vec4(vec3(depth), 1.0);
|
2023-04-07 06:17:37 +00:00
|
|
|
}
|