Reduced grinder poly count
This commit is contained in:
parent
f067577599
commit
de28fb85f6
3 changed files with 3032 additions and 5733 deletions
|
@ -25,7 +25,6 @@ import cpw.mods.fml.relauncher.SideOnly;
|
||||||
@SideOnly(Side.CLIENT)
|
@SideOnly(Side.CLIENT)
|
||||||
public class RenderGrinderWheel extends TileEntitySpecialRenderer
|
public class RenderGrinderWheel extends TileEntitySpecialRenderer
|
||||||
{
|
{
|
||||||
public static final ResourceLocation TEXTURE = new ResourceLocation(Reference.DOMAIN, Reference.MODEL_PATH + "grinder.png");
|
|
||||||
public static final WavefrontObject MODEL = (WavefrontObject) AdvancedModelLoader.loadModel(Reference.MODEL_DIRECTORY + "grinder.obj");
|
public static final WavefrontObject MODEL = (WavefrontObject) AdvancedModelLoader.loadModel(Reference.MODEL_DIRECTORY + "grinder.obj");
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -42,8 +41,10 @@ public class RenderGrinderWheel extends TileEntitySpecialRenderer
|
||||||
dir = WorldUtility.invertZ(dir);
|
dir = WorldUtility.invertZ(dir);
|
||||||
RenderUtility.rotateBlockBasedOnDirection(dir);
|
RenderUtility.rotateBlockBasedOnDirection(dir);
|
||||||
glRotatef((float) Math.toDegrees(tile.angle), 0, 0, 1);
|
glRotatef((float) Math.toDegrees(tile.angle), 0, 0, 1);
|
||||||
FMLClientHandler.instance().getClient().renderEngine.bindTexture(TEXTURE);
|
RenderUtility.bind(Reference.BLOCK_TEXTURE_DIRECTORY + "planks_oak.png");
|
||||||
MODEL.renderAll();
|
MODEL.renderAllExcept("teeth");
|
||||||
|
RenderUtility.bind(Reference.BLOCK_TEXTURE_DIRECTORY + "cobblestone.png");
|
||||||
|
MODEL.renderOnly("teeth");
|
||||||
glPopMatrix();
|
glPopMatrix();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because it is too large
Load diff
Binary file not shown.
Before Width: | Height: | Size: 752 B |
Loading…
Reference in a new issue