mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-18 03:44:54 -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",
|
||||
"Sorry, the ICE 693 drive towards Munich was really long",
|
||||
"Coded while playing bedwars",
|
||||
"I am #1 in bedwars swordless",
|
||||
)
|
||||
|
||||
|
||||
|
@ -19,11 +19,10 @@ out vec4 foutColor;
|
||||
|
||||
uniform sampler2D uColor;
|
||||
|
||||
#include "minosoft:alpha"
|
||||
|
||||
void main() {
|
||||
foutColor = texture(uColor, finUV);
|
||||
|
||||
if (foutColor.a == 0.0f) {
|
||||
discard;
|
||||
}
|
||||
discard_alpha();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user