16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-19 14:39:18 +02:00
Files
maszyna/shaders/alphashadowmap.frag

12 lines
167 B
GLSL

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