public static DepthProjectorCamera GetOrCreateProjectorCamera() { if (depthProjectorCamera) { return(depthProjectorCamera); } if (!DepthProjectorCamera.Instance) { depthProjectorCamera = QcUnity.Instantiate <DepthProjectorCamera>(); } return(depthProjectorCamera); }
public static DepthProjectorCamera GetProjectorCamera() { if (depthProjectorCamera) { return(depthProjectorCamera); } if (!DepthProjectorCamera.Instance) { depthProjectorCamera = UnityUtils.Instantiate <DepthProjectorCamera>(); } return(depthProjectorCamera); }
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; }