Currently, I am in the process of creating a diagramming tool using THREE.js. To add text labels to my diagrams, I have been utilizing the CSS2D feature provided by THREE.js, which allows for text that is both rotatable and MathJax-friendly.
For regular mesh objects such as cubes, spheres, and lines, I have successfully implemented object picking using the THREE.js raycaster. Everything works smoothly, with the mouse cursor changing to the text cursor when hovering over a CSS2D text label. However, I have encountered an issue where the raycaster doesn't recognize CSS2D label objects. Instead, it seems to "see through" these labels and picks up mesh objects even if they are situated behind the labels.
I am now seeking advice on whether it is possible to enable object picking for CSS2D objects and what steps I should take to achieve this functionality.