Closed vignalbrice closed 2 years ago
Hi everyone, My issue is the next one, i want to clone my ProjectMaterial, but when I do material.clone() I get this error :
"Error: Invalid camera passed to the ProjectedMaterial"
This is my code:
let cloneActiveMaterial; let cloneMaterial; if (this.activeMesh.name === mesh.name) { mesh.camera = projectionCamera cloneActiveMaterial = mesh.material.clone(); } else { cloneMaterial = mesh.material.clone() } if (this.activeMesh.name === mesh.name && properties.elem === "Texture") { this.activeMesh.material.map = currTexture; this.activeMesh.material.camera = projectionCamera this.activeMesh.material.needsUpdate = true; }
Hi everyone, My issue is the next one, i want to clone my ProjectMaterial, but when I do material.clone() I get this error :
"Error: Invalid camera passed to the ProjectedMaterial"
This is my code: