This is my predicament: I’m importing an OBJ to my scene, which has an associated material that’s also imported. I can cast shadows from the object just fine, but what I’m trying to do is add a shadowMethod in order to cast shadows onto other objects in the scene. Here’s the associated code:
obj = Mesh(loader.getChildAt(0));
obj.castsShadows = true;
obj.material.bothSides = false;
obj.material.lightPicker = lightPicker;
My light source is a directionalLight, if relevant. obj.material.shadowMethod throws an error, so is there another way of adding shadowMethod to an imported material? Any help is much appreciated. Thanks.