void OnDisable()
 {
     videoSeeThrough        = false;
     depthEstimation        = false;
     environmentReflections = false;
     UpdateMRFeatures();
     VarjoRendering.SetOpaque(originalOpaqueValue);
 }
예제 #2
0
 void Start()
 {
     if (mixedReality)
     {
         VarjoMixedReality.StartRender();
         mixedRealityEnabled = true;
         originalOpaqueValue = VarjoRendering.GetOpaque();
         VarjoRendering.SetOpaque(false);
     }
 }
 public void UpdateVSTState()
 {
     if (vstEnabled)
     {
         VarjoRendering.SetOpaque(false);
         VarjoMixedReality.StartRender();
     }
     else
     {
         VarjoRendering.SetOpaque(true);
         VarjoMixedReality.StopRender();
     }
 }
    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);
        }
    }
예제 #5
0
    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;
        }
    }
 private void OnDisable()
 {
     VarjoRendering.SetOpaque(originalOpaqueValue);
 }