libgdx / box2dlights

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

Directional Light has "sides" #98

Open nanodeath opened 7 years ago

nanodeath commented 7 years ago

This might be the same issue as #61, which is for top/bottom, but I'm not sure.

When creating a directional light (pointing downwards), if you pan the camera far enough to the left or right, you get darkness. I'm working around this for now by periodically dirtying all the static lights, but that's sorta ugly.

wall of darkness

Is this expected? Am I supposed to poke static lights periodically, or should they "know" that the camera is panning near/past the last calculated light area?