Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Tessellator tessellator = Tessellator.getInstance();
- WorldRenderer wr = tessellator.getWorldRenderer();
- GlStateManager.pushMatrix();
- GlStateManager.disableCull();
- GlStateManager.translate(x + 0.5f, y, z + 0.5f);
- // if(te.gem != null){
- GlStateManager.disableLighting();
- GlStateManager.color(1, 0, 0, 1);
- wr.begin(GL11.GL_QUADS, DefaultVertexFormats.POSITION_COLOR);
- wr.pos(1, 0, 0).color(1,1,0,1).endVertex();
- wr.pos(0, 0, 0).endVertex();
- wr.pos(0, 1, 0).endVertex();
- wr.pos(1, 1, 0).endVertex();
- tessellator.draw();
- GlStateManager.enableLighting();
- // }
- GlStateManager.popMatrix();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement