Files
maszyna/shaders/empty.frag
2017-07-03 14:08:08 +02:00

10 lines
137 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);
}