Removing the last instance of a certain light type (point, spot or directional) can break light parameter updates for other lights in the scene. For example, a rotating spot light will not have its rotation updated anymore.
To reproduce, add two directional lights to the MeshLab example:
Then remove one during runtime by deleting the element from the DOM. The spotlight should continue to behave normally. Remove the second directional light. The spotlight should now stop rotating. Adding new lights also has no effect anymore.
Removing the last instance of a certain light type (point, spot or directional) can break light parameter updates for other lights in the scene. For example, a rotating spot light will not have its rotation updated anymore.
To reproduce, add two directional lights to the MeshLab example:
Then remove one during runtime by deleting the element from the DOM. The spotlight should continue to behave normally. Remove the second directional light. The spotlight should now stop rotating. Adding new lights also has no effect anymore.