Maybe this example from the Collection of examples from discourse.threejs.org can help.
See 2020 https://hofk.de/main/discourse.threejs/2020/index2020.html