Files
maszyna/shaders/shadowmap.frag
milek7 59cea820b0 work
2018-07-11 12:36:49 +02:00

11 lines
138 B
GLSL

#version 330
in vec2 f_coord;
uniform sampler2D tex;
void main()
{
gl_FragDepth = gl_FragCoord.z + (1.0 - texture(tex, f_coord).w);
}