Work on Atomic Disassembler positioning

This commit is contained in:
Aidan Brady 2014-02-04 23:48:37 -05:00
parent afd954b510
commit 6e1c428d32
2 changed files with 30 additions and 7 deletions

View file

@ -1,5 +1,8 @@
package mekanism.client.model;
import org.lwjgl.opengl.GL11;
import mekanism.client.render.MekanismRenderer;
import net.minecraft.client.model.ModelBase;
import net.minecraft.client.model.ModelRenderer;
import net.minecraft.entity.Entity;
@ -128,20 +131,27 @@ public class ModelAtomicDisassembler extends ModelBase
public void render(float size)
{
Shape1.render(size);
Shape2.render(size);
GL11.glPushMatrix();
MekanismRenderer.glowOn();
Shape3.render(size);
Shape5.render(size);
Shape6.render(size);
Shape7.render(size);
Shape9.render(size);
Shape16.render(size);
Shape14.render(size);
MekanismRenderer.glowOff();
GL11.glPopMatrix();
Shape1.render(size);
Shape2.render(size);
Shape6.render(size);
Shape7.render(size);
Shape13.render(size);
Shape10.render(size);
Shape3.render(size);
Shape11.render(size);
Shape4.render(size);
Shape12.render(size);
Shape13.render(size);
Shape14.render(size);
Shape15.render(size);
Shape8.render(size);
}

View file

@ -373,7 +373,20 @@ public class ItemRenderingHandler implements IItemRenderer
}
else if(item.getItem() instanceof ItemAtomicDisassembler)
{
if(type == ItemRenderType.EQUIPPED)
{
GL11.glRotatef(40, 0.0F, 1.0F, 0.0F);
}
if(type == ItemRenderType.INVENTORY)
{
}
GL11.glRotatef(180, 0.0F, 0.0F, 1.0F);
GL11.glRotatef(40, 0.0F, 1.0F, 0.0F);
GL11.glScalef(1.4F, 1.4F, 1.4F);
GL11.glTranslatef(0.0F, -0.7F, 0.0F);
Minecraft.getMinecraft().renderEngine.bindTexture(MekanismUtils.getResource(ResourceType.RENDER, "AtomicDisassembler.png"));
atomicDisassembler.render(0.0625F);
}