How to add and remove different light types at run time in three.js?
I have some checkboxes, each representing a light type and I want to add a certain light type to the scene when its checkbox is checked and remove the light when unchecked.
I tried: scene.remove(light)
and light.visible = false
, but did not work.