Example #1
0
        internal static void BeginLateLatching(Camera camera, XRPassUniversal xrPass)
        {
#if ENABLE_VR && ENABLE_XR_MODULE
            XR.XRDisplaySubsystem xrDisplay = XRSystem.GetActiveDisplay();

            if (xrDisplay != null && xrPass.viewCount == 2) // multiview only
            {
                xrDisplay.BeginRecordingIfLateLatched(camera);
                xrPass.isLateLatchEnabled = true;
            }
#endif
        }
Example #2
0
        internal static void EndLateLatching(Camera camera, XRPassUniversal xrPass)
        {
#if ENABLE_VR && ENABLE_XR_MODULE
            XR.XRDisplaySubsystem xrDisplay = XRSystem.GetActiveDisplay();

            if (xrDisplay != null && xrPass.isLateLatchEnabled)
            {
                xrDisplay.EndRecordingIfLateLatched(camera);
                xrPass.isLateLatchEnabled = false;
            }
#endif
        }