mirror of
https://github.com/Ellpeck/NaturesAura.git
synced 2024-11-22 19:58:34 +01:00
fixed particle rendering
This commit is contained in:
parent
8f62c01cc3
commit
29b067d294
3 changed files with 2 additions and 5 deletions
|
@ -1,4 +1,3 @@
|
||||||
// TODO Enchantability
|
|
||||||
/*
|
/*
|
||||||
package de.ellpeck.naturesaura.compat.enchantibility;
|
package de.ellpeck.naturesaura.compat.enchantibility;
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
// TODO Enchantability
|
|
||||||
/*
|
/*
|
||||||
package de.ellpeck.naturesaura.compat.enchantibility;
|
package de.ellpeck.naturesaura.compat.enchantibility;
|
||||||
|
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue