Enable lighting when rendering models. Everything looks a lot better!

This commit is contained in:
ganymedes01 2014-11-13 20:03:45 -02:00
parent 6c4c579e89
commit de813e808a
19 changed files with 36 additions and 155 deletions

View file

@ -19,8 +19,6 @@ public class RenderConduit extends TileEntitySpecialRenderer
if (tileEntity instanceof TEConduit)
{
TEConduit tileConduit = (TEConduit) tileEntity;
GL11.glDisable(GL11.GL_LIGHTING);
GL11.glDisable(GL11.GL_CULL_FACE);
GL11.glPushMatrix();
GL11.glTranslatef((float) d0 + 0.5F, (float) d1 + 1.5F, (float) d2 + 0.5F);
ResourceLocation test = new ResourceLocation("alchemicalwizardry:textures/models/Conduit.png");
@ -30,8 +28,6 @@ public class RenderConduit extends TileEntitySpecialRenderer
this.modelConduit.render((Entity) null, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0625F, tileConduit.getInputDirection(), tileConduit.getOutputDirection());
GL11.glPopMatrix();
GL11.glPopMatrix();
GL11.glEnable(GL11.GL_CULL_FACE);
GL11.glEnable(GL11.GL_LIGHTING);
}
}
}