private void EnableDepthOcclusion(bool enable)
 {
     ViveSR_DualCameraImageCapture.ChangeDepthCase(enable ? DepthCase.CLOSE_RANGE : DepthCase.DEFAULT);
     ViveSR_DualCameraImageCapture.EnableDepthProcess(enable);
     ViveSR_DualCameraImageCapture.EnableDepthRefinement(enable);
     ViveSR_DualCameraImageRenderer.UpdateDepthMaterial   = enable;
     ViveSR_DualCameraImageRenderer.DepthImageOcclusion   = enable;
     ViveSR_DualCameraImageRenderer.OcclusionNearDistance = 0.05f;
     occlusionEnabled = enable;
 }
Пример #2
0
        void SetRefinement(bool isOn)
        {
            ViveSR_DualCameraImageCapture.EnableDepthRefinement(isOn);

            switches_status[(int)ControlMode.Refinement - sliders.Count].text = ViveSR_DualCameraImageCapture.DepthRefinement ? "On" : "Off";
        }