marcofugaro / three-projected-material

📽 Three.js Material which lets you do Texture Projection on a 3d Model
https://marcofugaro.github.io/three-projected-material/
MIT License
671 stars 57 forks source link

Update ProjectedMaterial.js #70

Open EliseeCode opened 2 months ago

EliseeCode commented 2 months ago

Fix projection direction of the camera when camera translate. I had an issue with a camera I was translating but always facing down. and some faces of the object I was projecting to were not projected to due to "isFacingProjector" in shader. This was because this.uniforms.projDirection should not take into account the translation of the camera.