private void Start() { StartCoroutine(GetSettingsWhenInitialized()); 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); } }
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); } }