mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-27 15:17:59 +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;
|
||||
}
|
||||
|
||||
GL11.glPushAttrib(GL11.GL_ALL_ATTRIB_BITS);
|
||||
GlStateManager.depthMask(false);
|
||||
GlStateManager.shadeModel(GL11.GL_SMOOTH);
|
||||
|
||||
GlStateManager.enableAlpha();
|
||||
GlStateManager.enableBlend();
|
||||
Minecraft.getMinecraft().entityRenderer.disableLightmap();
|
||||
GlStateManager.enableLighting();
|
||||
|
@ -100,6 +102,7 @@ public class ParticleSphere extends Particle implements IAttachableParticle {
|
|||
GlStateManager.disableBlend();
|
||||
GlStateManager.depthMask(true);
|
||||
GlStateManager.color(1, 1, 1, 1);
|
||||
GL11.glPopAttrib();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue