Fix: KillerJoe Sword z-Fighting

* Moved sword a little bit to remove z-fighting with blocks in front of
the KillerJoe.
* Changed inward sword swing to use different (otherwiese unused) value
than forward swing. Doesn't make a big difference either way, but I
think it looks a little bit better this way. More like swinging in a
tiny arc instead of a line.
This commit is contained in:
HenryLoenwind committed 2015-04-27 21:43:51 +02:00
1 parent 91c51f340b
commit 43b5249dbc
1 file changed
+2 -2
@@ -87,10 +87,10 @@ public class KillerJoeRenderer extends TileEntitySpecialRenderer implements IIte
if(swingProgress > 0) {
float f6 = MathHelper.sin(swingProgress * swingProgress * (float) Math.PI);
float f7 = MathHelper.sin(MathHelper.sqrt_float(swingProgress) * (float) Math.PI);
GL11.glRotatef(f7 * 5.0F, 1.0F, 0.0F, 0.0F);
GL11.glRotatef(f6 * 5.0F, 1.0F, 0.0F, 0.0F);
GL11.glRotatef(f7 * 50.0F, 0.0F, 0.0F, 1.0F);
}
GL11.glTranslatef(-0.25f, 0.2f, 0.05f);
GL11.glTranslatef(-0.255f, 0.2f, 0.05f);
RenderUtil.bindItemTexture();