Dynamically add mesh to ShadowGenerator #160
Replies: 2 comments 2 replies
-
There is a property called What you are able to do can be seen in this PG - the IcoSpheres can be shown/hidden and also the model mesh names are unknown: |
Beta Was this translation helpful? Give feedback.
-
Thank you @brianzinn, I tried the Thank you for these great library you share with us, I am refactoring an house editor and the code is so much readable with the declarative way!!! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I'm new to react-babylonjs, and I would like to know the best way to add a mesh generated at runtime to a specific shadowGenerator?
For what i saw in the playground examples, the
shadowGenerator.shadowCasters
needs an array of mesh's name, but what if the mesh is created at runtime and can have any random name?Does mesh have a special property like a
castShadowFrom={"shadowGeneratorName"}
?Thank you
Beta Was this translation helpful? Give feedback.
All reactions