Libgdx lighting example via two different modes:
- Via tiles in a tilemap to create hard shading
- Via a small framebuffer (-> texture) which uses blending to create smooth shading
Left click to destroy tiles.
Right click to add tiles
This example is based on: https://gamedev.stackexchange.com/questions/126078/how-can-i-implement-smooth-tile-based-lighting
Assets used: https://opengameart.org/content/dirt-tiles