Quantcast
Channel: Question and Answer » libgdx
Viewing all articles
Browse latest Browse all 434

How do I query a LibGDX Box2DLights “light” and “dark” regions?

$
0
0

I have lighting implemented using Box2dLight. I want to update/render things inside the player’s PointLight area. Stuff in the dark area should not be rendered.

How can I find which areas are lit or dark?


My PointLights and Body look like this:

lighting illustration


Viewing all articles
Browse latest Browse all 434

Trending Articles