Fix Transparency of Custom Image Objects
This commit is contained in:
@@ -48,6 +48,7 @@ public class CustomObjectRenderer {
|
|||||||
|| resourceLocation == null) return;
|
|| resourceLocation == null) return;
|
||||||
|
|
||||||
GlStateManager.pushMatrix();
|
GlStateManager.pushMatrix();
|
||||||
|
GlStateManager.pushAttrib();
|
||||||
|
|
||||||
Tessellator tessellator = Tessellator.getInstance();
|
Tessellator tessellator = Tessellator.getInstance();
|
||||||
WorldRenderer renderer = tessellator.getWorldRenderer();
|
WorldRenderer renderer = tessellator.getWorldRenderer();
|
||||||
@@ -107,6 +108,7 @@ public class CustomObjectRenderer {
|
|||||||
tessellator.draw();
|
tessellator.draw();
|
||||||
renderer.setTranslation(0, 0, 0);
|
renderer.setTranslation(0, 0, 0);
|
||||||
|
|
||||||
|
GlStateManager.popAttrib();
|
||||||
GlStateManager.popMatrix();
|
GlStateManager.popMatrix();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user