public static DepthProjectorCamera GetOrCreateProjectorCamera()
        {
            if (depthProjectorCamera)
            {
                return(depthProjectorCamera);
            }

            if (!DepthProjectorCamera.Instance)
            {
                depthProjectorCamera = QcUnity.Instantiate <DepthProjectorCamera>();
            }

            return(depthProjectorCamera);
        }
Exemple #2
0
        public static DepthProjectorCamera GetProjectorCamera()
        {
            if (depthProjectorCamera)
            {
                return(depthProjectorCamera);
            }

            if (!DepthProjectorCamera.Instance)
            {
                depthProjectorCamera = UnityUtils.Instantiate <DepthProjectorCamera>();
            }

            return(depthProjectorCamera);
        }
Exemple #3
0
        public override void OnEnable()
        {
            base.OnEnable();

            DepthProjectorCamera.TrySubscribeToDepthCamera(this);

            if (projectorCameraParams == null)
            {
                projectorCameraParams = new List <CameraMatrixParameters>();
                for (int i = 0; i < 3; i++)
                {
                    projectorCameraParams.Add(new CameraMatrixParameters("rt{0}_".F(i)));
                }
            }

            bakedDepthes.GlobalValue = _allBakedDepthesTexture;
        }