Files
maszyna/shaders/alphashadowmap.frag
milek7 4c855d5980 work
2018-07-15 23:46:53 +02:00

14 lines
242 B
GLSL

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