private void Start() { originalOpaqueValue = VarjoRendering.GetOpaque(); UpdateReconstructionState(); UpdateVSTState(); }
void Start() { if (mixedReality) { VarjoMixedReality.StartRender(); mixedRealityEnabled = true; originalOpaqueValue = VarjoRendering.GetOpaque(); VarjoRendering.SetOpaque(false); } }
private void Start() { originalOpaqueValue = VarjoRendering.GetOpaque(); VarjoRendering.SetOpaque(false); cubemapEventListenerSet = onCubemapUpdate.GetPersistentEventCount() > 0; HDCameraData = xrCamera.GetComponent <HDAdditionalCameraData>(); if (!m_skyboxProfile.TryGet(out volumeSky)) { volumeSky = m_skyboxProfile.Add <HDRISky>(true); } if (!m_skyboxProfile.TryGet(out volumeExposure)) { volumeExposure = m_skyboxProfile.Add <Exposure>(true); } if (!m_skyboxProfile.TryGet(out volumeVSTWhiteBalance)) { volumeVSTWhiteBalance = m_skyboxProfile.Add <VSTWhiteBalance>(true); } }
void Update() { if (Input.GetKeyDown(MixedRealityToggle)) { mixedReality = !mixedReality; } if (mixedReality != mixedRealityEnabled) { if (mixedReality) { VarjoMixedReality.StartRender(); originalOpaqueValue = VarjoRendering.GetOpaque(); VarjoRendering.SetOpaque(false); } else { VarjoMixedReality.StopRender(); VarjoRendering.SetOpaque(originalOpaqueValue); } mixedRealityEnabled = mixedReality; } }