Bevy Fast Light
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
PointLight2dlight source withfalloffconfigurable via inner and outer radius. - Simple and fast
AmbientLight2dlight source.
Limitations
- There is currently no light occluders or shadow casting at all.
PointLight2ddoes not look nice with low ambient light.
Usage
Take a look at /examples to find out how to use this crate.
Examples
ambient_light.rs
Basic scene with a blue AmbientLight2d, a red rectangle as background and a PointLight2d of the same color.
point_light.rs
Basic scene with a green rectangle as background and a PointLight2d of the same color.
Alternatives
Inspired by
- Bevy Example - CPU Drawing
- Bevy Example - 2d Shapes
- Bevy Example - Extended Material
- aarthificial - Deferred Lights - Pixel Renderer Devlog #1
- Barney Codes - Introduction to shaders: Learn the basics!
- Inkbox - Creating My Own 3D Graphics Engine
- JohnBrx - Creating 3D Lighting for my 2D Game
- Shirley Leisurely Games - Overcoming Godot’s 2D Light Limit With a Custom Light System
- tEEvy - Understanding shaders is easy, actually
- github - motion-canvas/examples
- MDN - GLSL shaders
- slembcke.net - 2D Lighting Techniques
- slembcke.net - 2D Lighting with Hard Shadows