libgdx/box2dlights

setActive(false) for Cone Light issue

adam-law opened this issue · 1 comments

When I set a PointLight to be inactive through PositionalLight.setActive(false), it doesn't get rendered, as expected. But when I do the same for a cone light, some part of it remains. The effect is as if the light was dimmed, not turned off.
light

As seen in the picture, only one of the lights is active, the one that is separate from the others, to the left; but all the other cone lights don't disappear at all, just get dimmed.

Sorry for this. It was due to the light being added to the Rayhandler 2x.