
bevy_lit
A simple 2D lighting library designed for Bevy.
Features
- Multiple light sources including
PointLight2d,SpotLight2dandTextureLight2d - Includes primitives
CustomLight2dPluginandLight2dMaterialfor defining custom light sources - Light occlusion through
LightOccluder2dthat can be used along side anyMesh2d - Per camera fine grain control over lighting parameters such as shadow softness and more
- Terraria-like light penetration effect
- Web support for WebGPU
Getting started
Installation
Install it using the CLI:
Or add bevy_lit to your Cargo.lock:
[]
= "*"
Usage
Below is a basic example demonstrating how to set up and use bevy_lit in your project:
use *;
use *;
Compatibility
bevy |
bevy_lit |
|---|---|
0.17.3 |
0.9 |
0.17 |
0.8 |
0.16 |
0.7 |
0.15 |
0.4..0.6 |
0.14 |
0.3 |
License
bevy_lit is licensed under the MIT License. See LICENSE for more details.