private void Start()
    {
        originalOpaqueValue = VarjoRendering.GetOpaque();

        UpdateReconstructionState();
        UpdateVSTState();
    }
Ejemplo n.º 2
0
 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);
        }
    }
Ejemplo n.º 4
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;
        }
    }