shader: framebuffer/gui: use discard_alpha

This commit is contained in:
Bixilon 2022-01-05 19:22:56 +01:00
parent f2d8f28815
commit 9a1fb6a4dc
No known key found for this signature in database
GPG Key ID: 5CAD791931B09AC4
2 changed files with 3 additions and 3 deletions

View File

@ -114,6 +114,7 @@ class ErosCrashReport : JavaFXWindowController() {
"Coded while traveling in the ICE 272 towards Hamburg-Altona", "Coded while traveling in the ICE 272 towards Hamburg-Altona",
"Sorry, the ICE 693 drive towards Munich was really long", "Sorry, the ICE 693 drive towards Munich was really long",
"Coded while playing bedwars", "Coded while playing bedwars",
"I am #1 in bedwars swordless",
) )

View File

@ -19,11 +19,10 @@ out vec4 foutColor;
uniform sampler2D uColor; uniform sampler2D uColor;
#include "minosoft:alpha"
void main() { void main() {
foutColor = texture(uColor, finUV); foutColor = texture(uColor, finUV);
if (foutColor.a == 0.0f) { discard_alpha();
discard;
}
} }