Properly light our tile entities (makes them look much cooler)

This commit is contained in:
pahimar 2014-07-17 20:44:14 -04:00
parent be80bcc176
commit 52453a7b86
5 changed files with 0 additions and 11 deletions

View file

@ -44,7 +44,6 @@ public class TileEntityRendererAludel extends TileEntitySpecialRenderer
TileEntityAludel tileEntityAludel = (TileEntityAludel) tileEntity;
GL11.glPushMatrix();
GL11.glDisable(GL11.GL_LIGHTING);
// Scale, Translate, Rotate
scaleTranslateRotate(x, y, z, tileEntityAludel.getOrientation());
@ -84,8 +83,6 @@ public class TileEntityRendererAludel extends TileEntitySpecialRenderer
}
GL11.glPopMatrix();
GL11.glEnable(GL11.GL_LIGHTING);
}
}

View file

@ -24,7 +24,6 @@ public class TileEntityRendererAugmentationTable extends TileEntitySpecialRender
ForgeDirection direction = tileEntityAugmentationTable.getOrientation();
GL11.glPushMatrix();
GL11.glDisable(GL11.GL_LIGHTING);
// Scale, Translate, Rotate
scaleTranslateRotate(x, y, z, direction);
@ -35,7 +34,6 @@ public class TileEntityRendererAugmentationTable extends TileEntitySpecialRender
// Render
modelAugmentationTable.render();
GL11.glEnable(GL11.GL_LIGHTING);
GL11.glPopMatrix();
}
}

View file

@ -55,7 +55,6 @@ public class TileEntityRendererCalcinator extends TileEntitySpecialRenderer
TileEntityCalcinator tileEntityCalcinator = (TileEntityCalcinator) tileEntity;
GL11.glPushMatrix();
GL11.glDisable(GL11.GL_LIGHTING);
// Scale, Translate, Rotate
GL11.glScalef(1.0F, 1.0F, 1.0F);
@ -110,7 +109,6 @@ public class TileEntityRendererCalcinator extends TileEntitySpecialRenderer
GL11.glPopMatrix();
}
GL11.glEnable(GL11.GL_LIGHTING);
GL11.glPopMatrix();
}
}

View file

@ -43,7 +43,6 @@ public class TileEntityRendererGlassBell extends TileEntitySpecialRenderer
{
TileEntityGlassBell tileEntityGlassBell = (TileEntityGlassBell) tileEntity;
GL11.glDisable(GL11.GL_LIGHTING);
GL11.glDisable(GL11.GL_CULL_FACE);
/**
@ -86,7 +85,6 @@ public class TileEntityRendererGlassBell extends TileEntitySpecialRenderer
GL11.glPopMatrix();
GL11.glEnable(GL11.GL_CULL_FACE);
GL11.glEnable(GL11.GL_LIGHTING);
}
}

View file

@ -20,7 +20,6 @@ public class TileEntityRendererResearchStation extends TileEntitySpecialRenderer
if (tileEntity instanceof TileEntityResearchStation)
{
GL11.glPushMatrix();
GL11.glDisable(GL11.GL_LIGHTING);
// Scale, Translate, Rotate
GL11.glScalef(1.0F, 1.0F, 1.0F);
@ -32,7 +31,6 @@ public class TileEntityRendererResearchStation extends TileEntitySpecialRenderer
// Render
modelResearchStation.render();
GL11.glEnable(GL11.GL_LIGHTING);
GL11.glPopMatrix();
}
}