private Material _mat; //the material for the shader // Start is called before the first frame update void Start() { //fetch the component _depthSourceManager = _originalPointCloud.GetComponent <DepthSourceManagerMy>(); _mesh = GetComponent <MeshFilter>().mesh; _mat = GetComponent <Renderer>().material; //duplicate the mesh _mesh = _originalPointCloud.GetComponent <MeshFilter>().mesh; }
// Start is called before the first frame update void Start() { //fetch components depthManager = livepointCloudFeed.GetComponent <DepthSourceManagerMy>(); //referece to the depth manager for the texture cpature }