mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-30 16:28:00 +01:00
Isolate ourselves and enable alpha so other mods can't mess with shield rendering
This commit is contained in:
parent
a098e18100
commit
8dca458610
1 changed files with 3 additions and 0 deletions
|
@ -78,9 +78,11 @@ public class ParticleSphere extends Particle implements IAttachableParticle {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GL11.glPushAttrib(GL11.GL_ALL_ATTRIB_BITS);
|
||||||
GlStateManager.depthMask(false);
|
GlStateManager.depthMask(false);
|
||||||
GlStateManager.shadeModel(GL11.GL_SMOOTH);
|
GlStateManager.shadeModel(GL11.GL_SMOOTH);
|
||||||
|
|
||||||
|
GlStateManager.enableAlpha();
|
||||||
GlStateManager.enableBlend();
|
GlStateManager.enableBlend();
|
||||||
Minecraft.getMinecraft().entityRenderer.disableLightmap();
|
Minecraft.getMinecraft().entityRenderer.disableLightmap();
|
||||||
GlStateManager.enableLighting();
|
GlStateManager.enableLighting();
|
||||||
|
@ -100,6 +102,7 @@ public class ParticleSphere extends Particle implements IAttachableParticle {
|
||||||
GlStateManager.disableBlend();
|
GlStateManager.disableBlend();
|
||||||
GlStateManager.depthMask(true);
|
GlStateManager.depthMask(true);
|
||||||
GlStateManager.color(1, 1, 1, 1);
|
GlStateManager.color(1, 1, 1, 1);
|
||||||
|
GL11.glPopAttrib();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue