From 2c00a00b012aa5b08f2a0bbb0e42fa4d7729ce6f Mon Sep 17 00:00:00 2001 From: jrbudda Date: Wed, 20 Jul 2016 03:40:51 -0400 Subject: [PATCH] close enuf --- .../client/renderer/EntityRenderer.java.patch | 2 +- .../minecrift/render/RenderVRPlayer.java | 33 ++++++++++++++----- 2 files changed, 25 insertions(+), 10 deletions(-) diff --git a/patches/net/minecraft/client/renderer/EntityRenderer.java.patch b/patches/net/minecraft/client/renderer/EntityRenderer.java.patch index 85d760f..6406d24 100644 --- a/patches/net/minecraft/client/renderer/EntityRenderer.java.patch +++ b/patches/net/minecraft/client/renderer/EntityRenderer.java.patch @@ -1227,7 +1227,7 @@ + { + if (!this.mc.vrSettings.hideGui || this.mc.currentScreen != null) + { -+ GL11.glAlphaFunc(GL11.GL_GREATER, 0.1F); ++ GlStateManager.alphaFunc(GL11.GL_GREATER, 0.1F); + boolean var12 = this.mc.gameSettings.fancyGraphics; + + if (!Config.isVignetteEnabled()) diff --git a/src/com/mtbs3d/minecrift/render/RenderVRPlayer.java b/src/com/mtbs3d/minecrift/render/RenderVRPlayer.java index f57da21..eab5478 100644 --- a/src/com/mtbs3d/minecrift/render/RenderVRPlayer.java +++ b/src/com/mtbs3d/minecrift/render/RenderVRPlayer.java @@ -54,14 +54,21 @@ public void renderRightArm(AbstractClientPlayer clientPlayer) modelplayer.bipedRightArm.rotateAngleX = 0; modelplayer.bipedRightArm.rotateAngleY = 0; modelplayer.bipedRightArm.rotateAngleZ = 0; - modelplayer.bipedRightArm.rotateAngleX = 0.0F; +// modelplayer.bipedRightArm.offsetX = 0; +// modelplayer.bipedRightArm.offsetY = 0; +// modelplayer.bipedRightArm.offsetZ = 0; modelplayer.bipedRightArm.render(0.0625F); - modelplayer.bipedRightArmwear.offsetX = 0; - modelplayer.bipedRightArmwear.offsetY = 0; - modelplayer.bipedRightArmwear.offsetZ = 0; - modelplayer.bipedRightArmwear.rotateAngleX = 0.0F; +// modelplayer.bipedRightArmwear.offsetX = 0; +// modelplayer.bipedRightArmwear.offsetY = 0; +// modelplayer.bipedRightArmwear.offsetZ = 0; + modelplayer.bipedRightArmwear.rotateAngleY = 0.0F; modelplayer.bipedRightArmwear.rotateAngleX = 0.0F; + modelplayer.bipedRightArmwear.rotateAngleZ = 0.0F; +// modelplayer.bipedRightArmwear.rotationPointX = 0.0F; +// modelplayer.bipedRightArmwear.rotationPointY = 0.0F; + modelplayer.bipedRightArmwear.rotationPointZ = 0.0F; modelplayer.bipedRightArmwear.render(0.0625F); + GlStateManager.disableBlend(); } @@ -79,12 +86,20 @@ public void renderLeftArm(AbstractClientPlayer clientPlayer) modelplayer.bipedLeftArm.rotateAngleX = 0; modelplayer.bipedLeftArm.rotateAngleY = 0; modelplayer.bipedLeftArm.rotateAngleZ = 0; - modelplayer.bipedLeftArm.rotateAngleX = 0.0F; +// modelplayer.bipedLeftArm.offsetX = 0; +// modelplayer.bipedLeftArm.offsetY = 0; +// modelplayer.bipedLeftArm.offsetZ = 0; modelplayer.bipedLeftArm.render(0.0625F); - modelplayer.bipedLeftArmwear.offsetX = 0; - modelplayer.bipedLeftArmwear.offsetY = 0; - modelplayer.bipedLeftArmwear.offsetZ = 0; +// modelplayer.bipedLeftArmwear.offsetX = 0; +// modelplayer.bipedLeftArmwear.offsetY = 0; +// modelplayer.bipedLeftArmwear.offsetZ = 0; modelplayer.bipedLeftArmwear.rotateAngleX = 0.0F; + modelplayer.bipedLeftArmwear.rotateAngleY = 0.0F; + modelplayer.bipedLeftArmwear.rotateAngleZ = 0.0F; +// modelplayer.bipedLeftArmwear.rotationPointX = 0.0F; +// modelplayer.bipedLeftArmwear.rotationPointY = 0.0F; + modelplayer.bipedLeftArmwear.rotationPointZ = 0.0F; + modelplayer.bipedLeftArmwear.render(0.0625F); GlStateManager.disableBlend(); }