libgdx / box2dlights

Fork of box2dlights by Kalle Hamalainen
Apache License 2.0
256 stars 82 forks source link

setActive(false) for Cone Light issue #82

Closed adam-law closed 9 years ago

adam-law commented 9 years ago

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.

adam-law commented 9 years ago

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