Enable lighting when rendering TESRs

This commit is contained in:
ganymedes01 authored and mezz committed 2015-08-20 00:48:07 -07:00
1 parent 4bf4c2a043
commit f5dc70141e
3 files changed
-6

No files matched your search

@@ -59,7 +59,6 @@ public class ModelAnalyzer extends ModelBase {
public void render(ForgeDirection orientation, float posX, float posY, float posZ) {
GL11.glPushMatrix();
GL11.glDisable(GL11.GL_LIGHTING);
GL11.glTranslatef(posX, posY, posZ);
float[] angle = {0, 0, 0};
@@ -108,7 +107,6 @@ public class ModelAnalyzer extends ModelBase {
Proxies.common.bindTexture(textures[2]);
tower2.render(factor);
GL11.glEnable(GL11.GL_LIGHTING);
GL11.glPopMatrix();
}
@@ -65,7 +65,6 @@ public class RenderEscritoire extends TileEntitySpecialRenderer implements IBloc
float factor = (float) (1.0 / 16.0);
GL11.glPushMatrix();
GL11.glDisable(GL11.GL_LIGHTING);
GL11.glTranslatef((float) x + 0.5f, (float) y + 0.875f, (float) z + 0.5f);
float[] angle = {(float) Math.PI, 0, 0};
@@ -91,7 +90,6 @@ public class RenderEscritoire extends TileEntitySpecialRenderer implements IBloc
Proxies.common.bindTexture(texture);
modelEscritoire.render(null, angle[0], angle[1], angle[2], 0f, 0f, factor);
GL11.glEnable(GL11.GL_LIGHTING);
GL11.glPopMatrix();
/*
@@ -107,7 +107,6 @@ public class RenderMill extends TileEntitySpecialRenderer implements IBlockRende
private void render(float progress, int charge, ForgeDirection orientation, double x, double y, double z) {
GL11.glPushMatrix();
GL11.glDisable(2896 /* GL_LIGHTING */);
GL11.glTranslatef((float) x, (float) y, (float) z);
@@ -196,7 +195,6 @@ public class RenderMill extends TileEntitySpecialRenderer implements IBlockRende
GL11.glTranslatef(-translate[0] * tfactor, translate[1] * tfactor, -translate[2] * tfactor);
blade2.render(factor);
GL11.glEnable(2896 /* GL_LIGHTING */);
GL11.glPopMatrix();
}