Ejemplo n.º 1
0
 /// 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();
     }
 }
Ejemplo n.º 2
0
 /// 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);
     }
 }
Ejemplo n.º 3
0
 /// 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);
     }
 }
Ejemplo n.º 4
0
    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;
        }
    }
Ejemplo n.º 5
0
 /// 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);
 }