Skip to content

lyze237-examples/LibgdxTiledLightingExample

Repository files navigation

Libgdx lighting example via two different modes:

  1. Via tiles in a tilemap to create hard shading
  2. 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

Smooth

smooth example

Tilemap

tilemap example