Example #1
0
        public static DepthProjectorCamera GetOrCreateProjectorCamera()
        {
            if (depthProjectorCamera)
            {
                return(depthProjectorCamera);
            }

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

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

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

            return(depthProjectorCamera);
        }
Example #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;
        }