libgdx / box2dlights

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

FREQ - Light flicker #77

Closed adam-law closed 7 years ago

adam-law commented 9 years ago

I was thinking that it would be possible to simulate flickering lights, particularly for flame-like lights if light offsets could have options to be tied to box2d horizontal gravity, or have this effect be done internally in box2dlights. I know it's quite possible to do the offset calculation outside of box2dlights, but it'd be convenient if it's built in, so that everything is neatly tied to one render step.

piotr-j commented 9 years ago

Feels like something trivial to implement with Light#setDistance() unless im missing something obvious.