A 2D lighting framework for libgdx games that uses Box2D for raycasting and OpenGL ES 2.0 for rendering.
Box2DLights is a 2D lighting framework that integrates with libgdx to add dynamic, soft lighting effects to physics-based games. It uses Box2D for raycasting to create realistic shadows and OpenGL ES 2.0 for rendering, solving the problem of implementing performant and visually appealing lighting in 2D game environments.
Game developers using libgdx who need to add dynamic lighting and shadows to their 2D physics-based games, particularly those focused on creating immersive visual experiences.
Developers choose Box2DLights because it seamlessly integrates with libgdx and Box2D, offering an easy-to-use solution for soft dynamic lighting with accurate raycasting, without requiring low-level OpenGL programming.
Fork of box2dlights by Kalle Hamalainen
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Supports point, cone, directional, and chain lights, allowing for diverse lighting scenarios in games, as listed in the features section.
Uses Gaussian blurred light maps to create realistic, smooth-edged shadows, enhancing visual immersion in 2D environments.
Designed specifically for libgdx with straightforward jar addition or Maven/Gradle dependencies, making setup quick, as detailed in the usage section.
Includes culling and query methods to optimize rendering by testing if points are inside light or shadow areas, improving efficiency in complex scenes.
As per the maintenance note, the libgdx team does not fix bugs or ensure compatibility with newer libgdx versions, posing risks for long-term projects.
Tightly coupled with libgdx and Box2D, making it unsuitable for games not using these technologies and reducing flexibility for other frameworks.
Dynamic raycasting and OpenGL ES 2.0 rendering can be resource-intensive, potentially impacting performance on low-end devices or with many lights.