Switch lighting of THREE.MeshPhongMaterial on / off dynamically
问题 I wonder if there is a way to turn off the lighting from a MeshPhongMaterial on runtime. I'm working on a scene with big distances between the meshes and because of this it's impossible to work with the implemented shadow of three.js. So now I wanna try to turn off the light on a certain object, when it's behind another, which I'll determine by ray collision. In the next step it would be nice to ease in and out, instead of just switching the light off. Any hints? Thank you in advance! 来源: