bevy_fast_light: Simple 2D lighting for Bevy focused on performance over features #23239
leomeinel
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have been working on a crate that provides simple 2D lighting for Bevy focused on performance over features.
The crate is still in the early stages of development and this post is more meant to showcase my early progress than an actually usable crate.
The codebase is quite small so if you are interested in how I did this, please take a look. I'm not sure if I will add any other types of lights since that might bloat up the codebase, but I'm very happy if I get feedback or suggestions :)
I also want to thank all bevy contributors for their awesome work and for making this possible. 🥇
About
Features
PointLight2dlight source withfalloffconfigurable via inner and outer radius.AmbientLight2dlight source.Limitations
PointLight2ddoes not look nice with low ambient light.Usage
Take a look at
/examplesto find out how to use my crate.Examples
ambient_light.rsBasic scene with a blue
AmbientLight2d, a red rectangle as background and aPointLight2dof the same color.point_light.rsBasic scene with a green rectangle as background and a
PointLight2dof the same color.Beta Was this translation helpful? Give feedback.
All reactions