Most of the objects in my scene I want to cast shadows. So I set castShadow=true and the shadows all render properly. However, a handful of objects I do NOT want to cast a shadow. Yet castShadow=false is notworking . They still cast a shadow.
But that’s what I want. I want MOST of the objects to cast a shadow. But I want the transparent ones to not cast a shadow. Won’t the traverse turn off everything?
OH… I misunderstood. When we talk about casting shadows, we usually mean the shadow cast by an object onto the rest of the scene… not the shading on the side of the object facing away from the light.
This more of a lighting issue. You could try switching off your DirectionalLight , and switching on an AmbientLight
Ambient lights light things uniformly from all directions… but it can make it had to differentiate between similar colored objects. so something a combination of lights helps.
I am a little embarassed: -( There was a castShadow setting buried deep in the code which escaped my attention and that was causing the issue. It’s not a threejs issue. Thanks for taking the time to try and assist. I did learn something new with the traverse, so that was useful.