It might be interesting for the community to compare both solutions.
Can you post the code here?
Then I can include both versions in the
Collection of examples from discourse.threejs.org .
I’m not sure if you can mark two posts as solutions here. But feel free to mark your own solution as such; “mine” is mostly just AI.