// Token: 0x06005F5A RID: 24410 RVA: 0x00217CD0 File Offset: 0x002160D0 private IEnumerator RenderLoop() { while (Application.isPlaying) { yield return(this.waitForEndOfFrame); if (!SteamVR_Render.pauseRendering) { CVRCompositor compositor = OpenVR.Compositor; if (compositor != null) { if (!compositor.CanRenderScene()) { continue; } compositor.SetTrackingSpace(this.trackingSpace); } SteamVR_Overlay overlay = SteamVR_Overlay.instance; if (overlay != null) { overlay.UpdateOverlay(); } this.RenderExternalCamera(); } } yield break; }
public void SetOverlayTexture(Texture tex) { switch (m_OverlayMode) { case OverlayMode.Steam: m_SteamVROverlay.texture = tex; m_SteamVROverlay.UpdateOverlay(); break; case OverlayMode.OVR: #if OCULUS_SUPPORTED m_OVROverlay.textures = new[] { tex }; #endif // OCULUS_SUPPORTED break; } }