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,7 +19,6 @@ public class RenderSpellModifierBlock extends TileEntitySpecialRenderer
if (tileEntity instanceof TESpellModifierBlock)
{
TESpellModifierBlock tileSpellBlock = (TESpellModifierBlock) tileEntity;
GL11.glDisable(GL11.GL_LIGHTING);
GL11.glPushMatrix();
GL11.glTranslatef((float) d0 + 0.5F, (float) d1 + 1.5F, (float) d2 + 0.5F);
ResourceLocation test = new ResourceLocation("alchemicalwizardry:textures/models/BlockSpellModifier.png");
@ -33,8 +32,6 @@ public class RenderSpellModifierBlock extends TileEntitySpecialRenderer
this.modelSpellModifierBlock.render((Entity) null, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0625F, tileSpellBlock.getInputDirection(), tileSpellBlock.getOutputDirection());
GL11.glPopMatrix();
GL11.glPopMatrix();
GL11.glEnable(GL11.GL_CULL_FACE);
GL11.glEnable(GL11.GL_LIGHTING);
}
}
}