/// Presents the #StereoScreen to the device for distortion correction and display. /// @note This function is only used if #DistortionCorrection is set to _Native_, /// and it only has an effect if the device supports it. public void PostRender() { if (NativeDistortionCorrectionSupported) { device.PostRender(); } }
/// Presents the #StereoScreen to the device for distortion correction and display. /// @note This function is only used if #DistortionCorrection is set to _Native_, /// and it only has an effect if the device supports it. public void PostRender(RenderTexture stereoScreen) { if (NativeDistortionCorrectionSupported && stereoScreen != null && stereoScreen.IsCreated()) { device.PostRender(stereoScreen); } }
/// Presents the #StereoScreen to the device for distortion correction and display. /// @note This function is only used if #DistortionCorrection is set to _Native_, /// and it only has an effect if the device supports it. public void PostRender(RenderTexture stereoScreen) { if (stereoScreen != null && stereoScreen.IsCreated()) { device.PostRender(stereoScreen); } }
IEnumerator EndOfFrame() { while (true) { yield return(new WaitForEndOfFrame()); UpdateState(); device.PostRender(vrModeEnabled); if (vrModeEnabled && !NativeUILayerSupported) { if (uiLayer == null) { uiLayer = new CardboardUILayer(); } uiLayer.Draw(); } DispatchEvents(); updated = false; } }
/// Presents the #StereoScreen to the device for distortion correction and display. /// @note This function is only used if #DistortionCorrection is set to _Native_, /// and it only has an effect if the device supports it. public void PostRender(StereoScreen stereoScreen) { device.PostRender(stereoScreen); }