Can't castShadow when creating instances and use Merged for gltf models #2594
-
I recently refactored my gltf models as instances and now I am having trouble figuring out where I need to place the castShadow prop to show up. Here is how updated my gltf file.
This is how my file looked before where I was able to castShadows (although if I rendered the the same model, the same instance would render, hence why I refactored with instance/merge)
Any suggestions would be greatly appreciated! |
Beta Was this translation helpful? Give feedback.
Answered by
sho-yasuda-06
Mar 14, 2023
Replies: 1 comment
-
adding
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
jobaa11
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
adding
castShadow
to<Merged/>
solved the problem.<Merged castShadow receiveShadow meshes={instances} {...props}>