mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-12-02 00:37:59 +01:00
Fixed more rendering shenanigans
This commit is contained in:
parent
c89ba10a5b
commit
4e77f96fa5
2 changed files with 10 additions and 13 deletions
|
@ -479,22 +479,19 @@ public class GuiSkins extends GameGui {
|
||||||
pushMatrix();
|
pushMatrix();
|
||||||
translate(xPosition, yPosition, 300);
|
translate(xPosition, yPosition, 300);
|
||||||
|
|
||||||
scale(-scale, scale, scale);
|
scale(scale, scale, scale);
|
||||||
rotate(180, 0, 0, 1);
|
rotate(-15, 1, 0, 0);
|
||||||
rotate(15, 1, 0, 0);
|
|
||||||
|
|
||||||
RenderHelper.enableStandardItemLighting();
|
RenderHelper.enableStandardItemLighting();
|
||||||
|
|
||||||
rotate(((updateCounter + partialTick) * 2.5F) % 360, 0, 1, 0);
|
rotate(((updateCounter + partialTick) * 2.5F) % 360, 0, 1, 0);
|
||||||
|
|
||||||
thePlayer.rotationYawHead = (float)Math.atan(mouseX / 20) * 30;
|
thePlayer.rotationYawHead = (float)Math.atan(mouseX / 20) * -30;
|
||||||
thePlayer.rotationPitch = (float)Math.atan(mouseY / 40) * -20;
|
thePlayer.rotationPitch = (float)Math.atan(mouseY / 40) * -20;
|
||||||
|
|
||||||
translate(0, thePlayer.getYOffset(), 0);
|
translate(0, thePlayer.getYOffset(), 0);
|
||||||
|
|
||||||
RenderManager rm = Minecraft.getMinecraft().getRenderManager();
|
mc.getRenderManager().renderEntity(thePlayer, 0, 0, 0, 0, 1, false);
|
||||||
rm.playerViewY = 180;
|
|
||||||
rm.renderEntity(thePlayer, 0, 0, 0, 0, 1, false);
|
|
||||||
|
|
||||||
popMatrix();
|
popMatrix();
|
||||||
RenderHelper.disableStandardItemLighting();
|
RenderHelper.disableStandardItemLighting();
|
||||||
|
|
|
@ -14,7 +14,6 @@ import net.minecraft.init.Items;
|
||||||
import net.minecraft.inventory.EntityEquipmentSlot;
|
import net.minecraft.inventory.EntityEquipmentSlot;
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
import net.minecraft.util.ResourceLocation;
|
import net.minecraft.util.ResourceLocation;
|
||||||
import org.lwjgl.opengl.GL11;
|
|
||||||
|
|
||||||
import com.mojang.authlib.minecraft.MinecraftProfileTexture.Type;
|
import com.mojang.authlib.minecraft.MinecraftProfileTexture.Type;
|
||||||
|
|
||||||
|
@ -105,17 +104,18 @@ public class RenderPlayerModel<M extends EntityPlayerModel> extends RenderLiving
|
||||||
player.leftArmPose = ArmPose.EMPTY;
|
player.leftArmPose = ArmPose.EMPTY;
|
||||||
player.rightArmPose = ArmPose.EMPTY;
|
player.rightArmPose = ArmPose.EMPTY;
|
||||||
|
|
||||||
super.doRender(entity, x, y, z, entityYaw, partialTicks);
|
enableBlend();
|
||||||
|
|
||||||
pushMatrix();
|
|
||||||
scale(1, -1, 1);
|
|
||||||
|
|
||||||
color(1, 1, 1, 0.3F);
|
color(1, 1, 1, 0.3F);
|
||||||
|
|
||||||
super.doRender(entity, x, y, z, entityYaw, partialTicks);
|
super.doRender(entity, x, y, z, entityYaw, partialTicks);
|
||||||
|
|
||||||
color(1, 1, 1, 1);
|
color(1, 1, 1, 1);
|
||||||
|
disableBlend();
|
||||||
|
|
||||||
|
pushMatrix();
|
||||||
|
scale(1, -1, 1);
|
||||||
|
|
||||||
|
super.doRender(entity, x, y, z, entityYaw, partialTicks);
|
||||||
popMatrix();
|
popMatrix();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue