mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2025-02-13 08:14:23 +01:00
Make the reflections slightly more reflection-y
This commit is contained in:
parent
9780379a9e
commit
4770585685
1 changed files with 16 additions and 9 deletions
|
@ -88,9 +88,9 @@ public class RenderPlayerModel<M extends EntityPlayerModel> extends RenderLiving
|
|||
}
|
||||
|
||||
@Override
|
||||
public void doRender(M par1Entity, double par2, double par4, double par6, float par8, float par9) {
|
||||
ModelPlayer player = this.getEntityModel(par1Entity);
|
||||
this.mainModel = player;
|
||||
public void doRender(M entity, double x, double y, double z, float entityYaw, float partialTicks) {
|
||||
ModelPlayer player = getEntityModel(entity);
|
||||
mainModel = player;
|
||||
|
||||
Set<EnumPlayerModelParts> parts = Minecraft.getMinecraft().gameSettings.getModelParts();
|
||||
player.bipedHeadwear.isHidden = !parts.contains(EnumPlayerModelParts.HAT);
|
||||
|
@ -103,15 +103,22 @@ public class RenderPlayerModel<M extends EntityPlayerModel> extends RenderLiving
|
|||
player.leftArmPose = ArmPose.EMPTY;
|
||||
player.rightArmPose = ArmPose.EMPTY;
|
||||
|
||||
super.doRender(entity, x, y, z, entityYaw, partialTicks);
|
||||
|
||||
GL11.glPushAttrib(GL11.GL_ALL_ATTRIB_BITS);
|
||||
super.doRender(par1Entity, par2, par4, par6, par8, par9);
|
||||
popAttrib();
|
||||
|
||||
pushMatrix();
|
||||
scale(1.0F, -1.0F, 1.0F);
|
||||
GL11.glPushAttrib(GL11.GL_ALL_ATTRIB_BITS);
|
||||
super.doRender(par1Entity, par2, par4, par6, par8, par9);
|
||||
popAttrib();
|
||||
scale(1, -1, 1);
|
||||
|
||||
color(1, 1, 1, 0.3F);
|
||||
|
||||
super.doRender(entity, x, y, z, entityYaw, partialTicks);
|
||||
|
||||
color(1, 1, 1, 1);
|
||||
|
||||
popMatrix();
|
||||
|
||||
popAttrib();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue