LTBL icon indicating copy to clipboard operation
LTBL copied to clipboard

Let There Be Light - A 2D Dynamic soft shadows system written using SFML and OpenGL directly. Uses quad trees for accelerated region queries.

Let There Be Light

Checkout the new and official LTBL2: https://github.com/222464/LTBL2

Let There Be Light is a 2D dynamic soft shadows system that uses SFML.

LTBL

The related post on the SFML forum can be found here.

About this port

The official repository or rather website of Let There Be Light can be found on SourceForge.

The goal of this port are the following:

  • Keep as much as possible of the history.
  • Bring the code base up to speed with the latest version of SFML.
  • Add support for CMake to have a solid build system.
  • Provide a place to collaborate.

Features

  • Physically accurate soft shadows
  • Quad tree scene graph
  • Light texture caching
  • Emissive lights
  • Light beams
  • Directional lights
  • Adjustable light color, attenuation, spread, source size, cone angle, bloom, and cone edge softness
  • Ambient light setting
  • Extendable light shape rendering
  • Light bloom rendering

Usage

Checkout the official but over time slightly outdated documentation in the Git repository to understand how Let There Be Light should be used.

Refer to the example code in the example directory to learn how to use Let There Be Light.

In Action

Let There Be Light has first been used in Gore Factor (SFML forum), but by now it's used in one or the other way by a number of other games.

Gore Factor

License

See the file: license.txt