summaryrefslogtreecommitdiff
path: root/assets/shaders/debug_quad.frag
blob: 877b26a0d4c3ef459d623ad540d59c55216288e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#version 410 core
out vec4 FragColor;

in vec2 TexCoords;

uniform sampler2D depthMap;

void main()
{             
    float depthValue = texture(depthMap, TexCoords).r;
    FragColor = vec4(vec3(depthValue), 1.0); // orthographic
    //FragColor = vec4(1.0);
}