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
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue