LegacyContentMitigation: fixed culling issue

This commit is contained in:
NotAKidoS 2025-01-07 02:37:14 -06:00
parent 5c8c724b58
commit 5d77eb61a5
4 changed files with 17 additions and 1 deletions

View file

@ -6,6 +6,8 @@ using ABI_RC.Core.Player;
using ABI_RC.Core.Player.LocalClone;
using ABI_RC.Core.Player.TransformHider;
using ABI.CCK.Components;
using cohtml;
using cohtml.Net;
using HarmonyLib;
using UnityEngine;
using UnityEngine.Rendering.PostProcessing;
@ -125,4 +127,15 @@ internal static class HeadHiderManager_Patches
transformHiderManager._resetAfterThisRender = flag;
}
}
}
internal static class CVRMirror_Patches
{
[HarmonyPostfix]
[HarmonyPatch(typeof(CVRMirror), nameof(CVRMirror.CopyCameraProperties))]
private static void Postfix_CVRMirror_CopyCameraProperties(ref CVRMirror __instance)
{
__instance.m_ReflectionCamera.ResetCullingMatrix();
}
}