Rodrix3 Posted April 4, 2018 Share Posted April 4, 2018 Is there a way so that when loading glb files, to set ALL meshes loaded as shadowcasters =true, and receiveshadows = true? Is there a playground demo on how to do this? I am trying to understand how to setup lights and shadows from a glb file. I have way to many meshes to set them manually. Thank you so much in advance! Quote Link to comment Share on other sites More sharing options...
Guest Posted April 4, 2018 Share Posted April 4, 2018 Hello, you can just register for the onSuccessCallback and then go through scene.meshes to set all shadowcasters and shadow receivers Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.