16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-22 08:09:19 +02:00

alpha changes, mouse cursor changes, other changes

This commit is contained in:
milek7
2018-07-19 15:35:05 +02:00
parent 13c7561549
commit 8cac3d4cc9
11 changed files with 192 additions and 75 deletions

View File

@@ -7,5 +7,6 @@ uniform sampler2D tex1;
void main()
{
gl_FragDepth = gl_FragCoord.z + (1.0 - texture(tex1, f_coord).a);
if (texture(tex1, f_coord).a < 0.5f)
discard;
}