mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-23 21:38:00 +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) {
|
||||
RenderSystem.setShaderColor(1, 1, 1, 1);
|
||||
RenderSystem.enableBlend();
|
||||
matrices.push();
|
||||
matrices.translate(getX(), getY(), 0);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue