Removed hud fading and fixed some blending bugs

This commit is contained in:
Sollace 2021-08-18 17:42:30 +02:00
parent e8dc6af654
commit cdec84e83e
2 changed files with 3 additions and 4 deletions

View file

@ -76,6 +76,8 @@ class Slot {
}
void renderBackground(MatrixStack matrices, AbilityDispatcher abilities, boolean bSwap, float tickDelta) {
RenderSystem.setShaderColor(1, 1, 1, 1);
RenderSystem.enableBlend();
matrices.push();
matrices.translate(getX(), getY(), 0);

View file

@ -86,10 +86,7 @@ public class UHud extends DrawableHelper {
renderMessage(matrices, tickDelta);
}
float progress = messageTime >= 20 ? 1 : (messageTime - tickDelta) / 20;
RenderSystem.setShaderColor(1, 1, 1, Math.max(0.1F, progress));
RenderSystem.setShaderColor(1, 1, 1,1);
RenderSystem.enableBlend();
RenderSystem.setShaderTexture(0, HUD_TEXTURE);