GRK-2023/shaders/test.frag

13 lines
203 B
GLSL
Raw Normal View History

2023-01-15 19:33:53 +01:00
#version 330 core
out vec4 FragColor;
in vec2 tc;
2023-01-24 13:59:45 +01:00
uniform sampler2D
;
2023-01-15 19:33:53 +01:00
void main()
{
float depthValue = texture(depthMap, tc).r;
FragColor = vec4(vec3(depthValue+0.5), 1.0);
}