16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-22 10:29:19 +02:00
This commit is contained in:
milek7
2018-07-15 00:46:01 +02:00
parent 4566375faa
commit 794093dad4
17 changed files with 346 additions and 184 deletions

View File

@@ -0,0 +1,12 @@
#version 330
in vec2 f_coord;
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);
}