GRK_Room/cw 9/shaders/test.frag
Angelika Iskra a50c6b8a92 init
2023-01-14 12:00:59 +01:00

12 lines
221 B
GLSL

#version 330 core
out vec4 FragColor;
in vec2 tc;
uniform sampler2D depthMap;
void main()
{
float depthValue = texture(depthMap, tc).r;
FragColor = vec4(vec3(depthValue+0.5), 1.0);
}