easy-osm2city-podman/full/fgdata/Shaders/HDR/debug_gbuffer_depth.frag
fly fccef75347 Two stage osm2city container build
Signed-off-by: fly <merspieler@airmail.cc>
2023-09-03 16:14:26 +02:00

16 lines
293 B
GLSL

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