mirror of
https://github.com/Sollace/Unicopia.git
synced 2025-02-17 10:24:23 +01:00
Removed hud fading and fixed some blending bugs
This commit is contained in:
parent
e8dc6af654
commit
cdec84e83e
2 changed files with 3 additions and 4 deletions
|
@ -76,6 +76,8 @@ class Slot {
|
||||||
}
|
}
|
||||||
|
|
||||||
void renderBackground(MatrixStack matrices, AbilityDispatcher abilities, boolean bSwap, float tickDelta) {
|
void renderBackground(MatrixStack matrices, AbilityDispatcher abilities, boolean bSwap, float tickDelta) {
|
||||||
|
RenderSystem.setShaderColor(1, 1, 1, 1);
|
||||||
|
RenderSystem.enableBlend();
|
||||||
matrices.push();
|
matrices.push();
|
||||||
matrices.translate(getX(), getY(), 0);
|
matrices.translate(getX(), getY(), 0);
|
||||||
|
|
||||||
|
|
|
@ -86,10 +86,7 @@ public class UHud extends DrawableHelper {
|
||||||
renderMessage(matrices, tickDelta);
|
renderMessage(matrices, tickDelta);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
RenderSystem.setShaderColor(1, 1, 1,1);
|
||||||
float progress = messageTime >= 20 ? 1 : (messageTime - tickDelta) / 20;
|
|
||||||
|
|
||||||
RenderSystem.setShaderColor(1, 1, 1, Math.max(0.1F, progress));
|
|
||||||
RenderSystem.enableBlend();
|
RenderSystem.enableBlend();
|
||||||
RenderSystem.setShaderTexture(0, HUD_TEXTURE);
|
RenderSystem.setShaderTexture(0, HUD_TEXTURE);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue