fixed particle rendering

This commit is contained in:
Ell 2021-12-19 19:33:44 +01:00
parent 8f62c01cc3
commit 29b067d294
3 changed files with 2 additions and 5 deletions

View file

@ -1,4 +1,3 @@
// TODO Enchantability
/* /*
package de.ellpeck.naturesaura.compat.enchantibility; package de.ellpeck.naturesaura.compat.enchantibility;

View file

@ -1,4 +1,3 @@
// TODO Enchantability
/* /*
package de.ellpeck.naturesaura.compat.enchantibility; package de.ellpeck.naturesaura.compat.enchantibility;

View file

@ -23,7 +23,6 @@ import java.util.function.Supplier;
@OnlyIn(Dist.CLIENT) @OnlyIn(Dist.CLIENT)
public final class ParticleHandler { 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() { public static final ParticleRenderType MAGIC = new ParticleRenderType() {
@Override @Override
@ -87,12 +86,12 @@ public final class ParticleHandler {
} }
private static void setupRendering() { private static void setupRendering() {
RenderSystem.enableBlend();
RenderSystem.disableCull(); RenderSystem.disableCull();
RenderSystem.enableBlend();
RenderSystem.blendFunc(GlStateManager.SourceFactor.SRC_ALPHA, GlStateManager.DestFactor.ONE); RenderSystem.blendFunc(GlStateManager.SourceFactor.SRC_ALPHA, GlStateManager.DestFactor.ONE);
RenderSystem.clearColor(1.0F, 1.0F, 1.0F, 1.0F);
RenderSystem.depthMask(false); RenderSystem.depthMask(false);
RenderSystem.setShader(GameRenderer::getParticleShader); RenderSystem.setShader(GameRenderer::getParticleShader);
RenderSystem.setShaderColor(1.0F, 1.0F, 1.0F, 1.0F);
RenderSystem.setShaderTexture(0, ParticleMagic.TEXTURE); RenderSystem.setShaderTexture(0, ParticleMagic.TEXTURE);
} }
} }