Hi all. I’m importing a gltf file into my scene. When I keep the original material, shadows cast on the ground just fine. But if I replace the material with another one, the shadows vanish. Here’s a playground example that illustrates what I mean:
Toggle the “replaceMatOnGLTF” variable to retain or replace the material. That way you can see for yourself that the shadows appear and disappear.
Any ideas how to modify the new material so it casts shadows too? Thanks!