bevy_fast_light 0.7.0

Simple 2D lighting for Bevy focused on performance over features.
Documentation

Bevy Fast Light

License Crates.io Downloads Docs

Simple 2D lighting for Bevy focused on performance over features.

:warning: | This is still in development and not at all feature complete.

Features

  • Simple and fast AmbientLight2d light source.
  • Simple and fast Light2dOccluder that blocks any non-ambient light using the shape of any Mesh2d.
  • Simple and fast PointLight2d light source with falloff configurable via inner and outer radius.

Limitations

  • There is currently no shadow casting for light occluders.

Usage

Take a look at /examples to find out how to use this crate.

Examples

ambient_light.rs

Scene with a light sky colored AmbientLight2d with a lower intensity, a green Rectangle as background and an amber PointLight2d.

occluder.rs

Scene with a light sky colored AmbientLight2d with a lower intensity, a green Rectangle as background, an amber PointLight2d and a Light2dOccluder.

point_light.rs

Scene with a green Rectangle as background and an amber PointLight2d.

texture_scale.rs

Scene with a green Rectangle as background and an amber PointLight2d using a lower texture_scale.

Alternatives

Resources

Code

Articles