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

@ -207,9 +207,11 @@ public class FakeMultiPassHack : MonoBehaviour
eyeCamera.targetTexture = targetTexture;
eyeCamera.cullingMask = CachedCullingMask;
eyeCamera.stereoTargetEye = StereoTargetEyeMask.None;
eyeCamera.cullingMatrix = _mainCamera.cullingMatrix;
eyeCamera.projectionMatrix = _mainCamera.GetStereoProjectionMatrix(eye);
eyeCamera.worldToCameraMatrix = _mainCamera.GetStereoViewMatrix(eye);
eyeCamera.Render();
eyeCamera.ResetCullingMatrix();
}
}