PlanetEditor/grk/cw 6/shaders/test.frag

12 lines
210 B
GLSL
Raw Permalink Normal View History

2024-01-14 00:49:30 +01:00
#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);
}