mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-18 11:54:59 -04:00
shader: framebuffer/gui: use discard_alpha
This commit is contained in:
parent
f2d8f28815
commit
9a1fb6a4dc
@ -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",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@ -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;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user