2D lighting #4756
-
I hope this is the right spot dose bevy support 2D lighting ? There appears to be 3D support in bevy_pbr and unity supports 2D lighting. I am trying change the global lighting in a 2D game as well as adding some spot lights |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
I don't think it does |
Beta Was this translation helpful? Give feedback.
-
We don't yet support 2d lighting, but I'd definitely like to at some point. While you wait for a first party solution, this could be accomplished as a 3rd party plugin by writing custom shaders and adding RenderApp systems to extract, process, and queue the relevant 2d data. Bevy's rendering is very modular + configurable. |
Beta Was this translation helpful? Give feedback.
-
I've built a prototype for top-down 2D games which works exactly as @cart explained: https://github.com/zaycev/bevy-magic-light-2d, it's not production ready, but I'm open for PRs :) |
Beta Was this translation helpful? Give feedback.
-
I recently published |
Beta Was this translation helpful? Give feedback.
We don't yet support 2d lighting, but I'd definitely like to at some point. While you wait for a first party solution, this could be accomplished as a 3rd party plugin by writing custom shaders and adding RenderApp systems to extract, process, and queue the relevant 2d data. Bevy's rendering is very modular + configurable.