At the moment, my project involves utilizing three.js with several objects in the scene. One of the key features I am working on is the ability to select an object and have all other objects between the camera and the selected one hidden or removed.
I am seeking advice on how this functionality could be achieved. Any suggestions?