From 29b067d294a7f4bb8ecc452b4c0ad5fc4405c55a Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Sun, 19 Dec 2021 19:33:44 +0100 Subject: [PATCH] fixed particle rendering --- .../compat/enchantibility/EnchantibilityAuraMending.java | 1 - .../compat/enchantibility/EnchantibilityCompat.java | 1 - .../de/ellpeck/naturesaura/particles/ParticleHandler.java | 5 ++--- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/main/java/de/ellpeck/naturesaura/compat/enchantibility/EnchantibilityAuraMending.java b/src/main/java/de/ellpeck/naturesaura/compat/enchantibility/EnchantibilityAuraMending.java index 22358c21..08298ed2 100644 --- a/src/main/java/de/ellpeck/naturesaura/compat/enchantibility/EnchantibilityAuraMending.java +++ b/src/main/java/de/ellpeck/naturesaura/compat/enchantibility/EnchantibilityAuraMending.java @@ -1,4 +1,3 @@ -// TODO Enchantability /* package de.ellpeck.naturesaura.compat.enchantibility; diff --git a/src/main/java/de/ellpeck/naturesaura/compat/enchantibility/EnchantibilityCompat.java b/src/main/java/de/ellpeck/naturesaura/compat/enchantibility/EnchantibilityCompat.java index 15801248..4437cd53 100644 --- a/src/main/java/de/ellpeck/naturesaura/compat/enchantibility/EnchantibilityCompat.java +++ b/src/main/java/de/ellpeck/naturesaura/compat/enchantibility/EnchantibilityCompat.java @@ -1,4 +1,3 @@ -// TODO Enchantability /* package de.ellpeck.naturesaura.compat.enchantibility; diff --git a/src/main/java/de/ellpeck/naturesaura/particles/ParticleHandler.java b/src/main/java/de/ellpeck/naturesaura/particles/ParticleHandler.java index 0011b066..14c5a4da 100644 --- a/src/main/java/de/ellpeck/naturesaura/particles/ParticleHandler.java +++ b/src/main/java/de/ellpeck/naturesaura/particles/ParticleHandler.java @@ -23,7 +23,6 @@ import java.util.function.Supplier; @OnlyIn(Dist.CLIENT) public final class ParticleHandler { - // TODO fix particle transparency, they don't seem to fade on the edges anymore public static final ParticleRenderType MAGIC = new ParticleRenderType() { @Override @@ -87,12 +86,12 @@ public final class ParticleHandler { } private static void setupRendering() { - RenderSystem.enableBlend(); RenderSystem.disableCull(); + RenderSystem.enableBlend(); RenderSystem.blendFunc(GlStateManager.SourceFactor.SRC_ALPHA, GlStateManager.DestFactor.ONE); - RenderSystem.clearColor(1.0F, 1.0F, 1.0F, 1.0F); RenderSystem.depthMask(false); RenderSystem.setShader(GameRenderer::getParticleShader); + RenderSystem.setShaderColor(1.0F, 1.0F, 1.0F, 1.0F); RenderSystem.setShaderTexture(0, ParticleMagic.TEXTURE); } } \ No newline at end of file