Properly light our tile entities (makes them look much cooler)
This commit is contained in:
parent
be80bcc176
commit
52453a7b86
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue