Skip to content

Commit

Permalink
fix fire and totem of undying animation
Browse files Browse the repository at this point in the history
  • Loading branch information
fayer3 committed Jul 14, 2024
1 parent 24ef360 commit 349b232
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,6 @@ private static void renderVRSelfEffects(float par1) {

public static void renderFireInFirstPerson() {
PoseStack posestack = new PoseStack();
RenderHelper.applyVRModelView(dataHolder.currentPass, posestack);
RenderHelper.applyStereo(dataHolder.currentPass, posestack);
BufferBuilder bufferbuilder = Tesselator.getInstance().getBuilder();
RenderSystem.depthFunc(GL11C.GL_ALWAYS);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -466,15 +466,14 @@ public abstract class GameRendererVRMixin
float m = 10.25f * l * h - 24.95f * h * h + 25.5f * l - 13.8f * h + 4.0f * g;
float n = m * (float) Math.PI;
float sinN = Mth.sin(n) * 0.5F;
poseStack.translate(0, 0, sinN - 1.0);
RenderHelper.applyStereo(ClientDataHolderVR.getInstance().currentPass, poseStack);
poseStack.mulPose(Axis.YP.rotationDegrees(-ClientDataHolderVR.getInstance().vrPlayer.getVRDataWorld().getEye(ClientDataHolderVR.getInstance().currentPass).getYaw()));
poseStack.mulPose(Axis.XP.rotationDegrees(-ClientDataHolderVR.getInstance().vrPlayer.getVRDataWorld().getEye(ClientDataHolderVR.getInstance().currentPass).getPitch()));
poseStack.translate(0, 0, sinN + 1.0);
if (ClientDataHolderVR.getInstance().currentPass == RenderPass.THIRD) {
sinN *= (float) (ClientDataHolderVR.getInstance().vrSettings.mixedRealityFov / 70.0);
}
RenderHelper.applyVRModelView(ClientDataHolderVR.getInstance().currentPass, poseStack);
RenderHelper.applyStereo(ClientDataHolderVR.getInstance().currentPass, poseStack);
poseStack.scale(sinN, sinN, sinN);
poseStack.mulPose(Axis.YP.rotationDegrees(-ClientDataHolderVR.getInstance().vrPlayer.getVRDataWorld().getEye(ClientDataHolderVR.getInstance().currentPass).getYaw()));
poseStack.mulPose(Axis.XP.rotationDegrees(-ClientDataHolderVR.getInstance().vrPlayer.getVRDataWorld().getEye(ClientDataHolderVR.getInstance().currentPass).getPitch()));
}
}

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ minecraft_version=1.20.6
enabled_platforms=fabric,forge,neoforge

archives_base_name=vivecraft
mod_version=1.1.11-b1
mod_version=1.1.11-b2
maven_group=org.vivecraft

architectury_version=12.0.26
Expand Down

0 comments on commit 349b232

Please sign in to comment.