Tesseract-Engine/assets/shaders/DepthVisualize.frag

13 lines
204 B
GLSL
Raw Normal View History

2025-01-01 19:04:56 +00:00
#version 330 core
in vec2 TexCoords;
out vec4 FragColor;
uniform sampler2D depthMap;
void main()
{
float depthValue = texture(depthMap, TexCoords).r;
FragColor = vec4(vec3(depthValue), 1.0);
}