I can set visible = false for the material on objects (meshes/lines), so that these objects are hidden, but they will still work for raycasting. I wanted to do the same for sprites, but the visible property for THREE.SpriteMaterial does not work as expected; when setting it to false the sprite is still visible.
Description of the problem (three.js r78)
I can set
visible = false
for the material on objects (meshes/lines), so that these objects are hidden, but they will still work for raycasting. I wanted to do the same for sprites, but thevisible
property forTHREE.SpriteMaterial
does not work as expected; when setting it to false the sprite is still visible.Here is a fiddle to demonstrate this