From 5fef1a4881e327adb5b10118eb41779688f63a52 Mon Sep 17 00:00:00 2001 From: fayer3 Date: Wed, 29 May 2024 01:24:24 +0200 Subject: [PATCH] fix missing spots in the DH projection fix --- .../mod_compat_vr/iris/mixin/IrisDHCompatVRMixin.java | 3 +++ .../mod_compat_vr/iris/mixin/IrisLodRenderEventsVRMixin.java | 2 ++ 2 files changed, 5 insertions(+) diff --git a/common/src/main/java/org/vivecraft/mod_compat_vr/iris/mixin/IrisDHCompatVRMixin.java b/common/src/main/java/org/vivecraft/mod_compat_vr/iris/mixin/IrisDHCompatVRMixin.java index 80f738a34..3be1e32a7 100644 --- a/common/src/main/java/org/vivecraft/mod_compat_vr/iris/mixin/IrisDHCompatVRMixin.java +++ b/common/src/main/java/org/vivecraft/mod_compat_vr/iris/mixin/IrisDHCompatVRMixin.java @@ -23,6 +23,9 @@ public class IrisDHCompatVRMixin { Matrix4f vrProjection = CapturedRenderingState.INSTANCE.getGbufferProjection(); Matrix4f dhProjection = cir.getReturnValue(); + + dhProjection.m00(vrProjection.m00()); + dhProjection.m11(vrProjection.m11()); dhProjection.m20(vrProjection.m20()); dhProjection.m21(vrProjection.m21()); cir.setReturnValue(dhProjection); diff --git a/common/src/main/java/org/vivecraft/mod_compat_vr/iris/mixin/IrisLodRenderEventsVRMixin.java b/common/src/main/java/org/vivecraft/mod_compat_vr/iris/mixin/IrisLodRenderEventsVRMixin.java index bec80afda..310b3332e 100644 --- a/common/src/main/java/org/vivecraft/mod_compat_vr/iris/mixin/IrisLodRenderEventsVRMixin.java +++ b/common/src/main/java/org/vivecraft/mod_compat_vr/iris/mixin/IrisLodRenderEventsVRMixin.java @@ -33,6 +33,8 @@ public class IrisLodRenderEventsVRMixin { Matrix4f vrProjection = CapturedRenderingState.INSTANCE.getGbufferProjection(); + dhProjection.m00(vrProjection.m00()); + dhProjection.m11(vrProjection.m11()); dhProjection.m20(vrProjection.m20()); dhProjection.m21(vrProjection.m21()); }