mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-02 22:39:22 +00:00
LegacyContentMitigation: fixed culling issue
This commit is contained in:
parent
5c8c724b58
commit
5d77eb61a5
4 changed files with 17 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue