GLES2: Fixes, clarifications to shaders

This commit is contained in:
20kdc
2020-08-29 19:55:16 +01:00
parent d1f0ea0112
commit 8acb0ba1a5
4 changed files with 6 additions and 4 deletions

View File

@@ -1,4 +1,5 @@
void fragment() {
// Bypasses zTexture because only alpha is queried.
if (texture2D(TEXTURE, UV).a == 0.0) {
discard; // Discard if no alpha so that there's a hole in the stencil buffer.
}