Fixed some z-fighting due to ponies' legs not all being at the same level

This commit is contained in:
Sollace 2018-10-11 16:41:13 +02:00
parent 882d1c5c7c
commit 192a34745e
2 changed files with 6 additions and 6 deletions

View file

@ -109,7 +109,7 @@ public class RenderPlayerModel<M extends EntityPlayerModel> extends RenderLiving
GL11.glPushAttrib(GL11.GL_ALL_ATTRIB_BITS);
double offset = entity.getYOffset() + entity.posY + 0.01;
double offset = entity.getYOffset() + entity.posY;
if (player.isSneak) {
y -= 0.125D;
@ -130,7 +130,7 @@ public class RenderPlayerModel<M extends EntityPlayerModel> extends RenderLiving
GL11.glPushAttrib(GL11.GL_ALL_ATTRIB_BITS);
pushMatrix();
scale(1, -1, 1);
translate(0, offset, 0);
translate(0.001, offset, 0.001);
super.doRender(entity, x, y, z, entityYaw, partialTicks);
popMatrix();

View file

@ -56,7 +56,7 @@ public enum PonyTransformation {
translate(0, -0.2F, 0.08F);
break;
case LEGS:
translate(0, -0.14F, 0);
translate(0, -0.18F, 0);
scale(1.15F, 1.12F, 1.15F);
break;
case BACK:
@ -84,7 +84,7 @@ public enum PonyTransformation {
scale(1.3F, 1.3F, 1.3F);
break;
case LEGS:
translate(0, 0.1F, 0);
translate(0, 0.15F, 0);
scale(1, 0.81F, 1);
break;
case BACK:
@ -116,7 +116,7 @@ public enum PonyTransformation {
translate(0, -0.1F, 0);
break;
case LEGS:
translate(0, -0.25F, 0.03F);
translate(0, -0.27F, 0.03F);
scale(1, 1.18F, 1);
if (model.isGoingFast()) translate(0, 0.05F, 0);
break;
@ -149,7 +149,7 @@ public enum PonyTransformation {
translate(0, -0.1F, 0);
break;
case LEGS:
translate(0, -0.25F, 0.03F);
translate(0, -0.265F, 0.03F);
scale(1, 1.18F, 1);
if (model.isGoingFast()) translate(0, 0.05F, 0);
break;