more fixes to textured transparency

This commit is contained in:
2022-02-25 21:10:38 +08:00
parent 501037d84d
commit 1e74665abc
3 changed files with 12 additions and 0 deletions

View File

@@ -1,6 +1,12 @@
#version 330
uniform sampler2D tex;
in vec2 fragTexCoord;
void main() {
if (texture(tex, fragTexCoord).a < 1e-3)
discard;
// gl_FragDepth = gl.FragCoord.z;
}