mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-03-22 15:05:03 +01:00
14 lines
242 B
GLSL
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);
|
|
}
|