Feature Request: Support for 2D lighting
- Dominant language
- Rust
- Stars
- 48.2k
- Forks
- 4.8k
- Avg merge
- 3d 22h
- Merged PRs (30d)
- 161
Description
## What problem does this solve or what need does it fill?
Currently, 2D games do not support Lighting such as `PointLight` and `SpotLight`, but could greatly benefit from them. The current solution for 2D games is to convert to a 3D camera, and convert all their sprites, etc to 3D.
## What solution would you like?
It would be great to be able to use lighting in 2D settings; supporting `PointLight` and `SpotLight` along X and Y axis would be great. Im not sure how much further we could take this support, i'm not an expert on lighting in games, and it might be better to convert to a 3D setting for more advanced lighting usage (for example, bouncing lights off collidable objects, walls, etc)
## What alternative(s) have you considered?
Currently, I will be converting my game to 3D to support lights.
## Additional context
This is in the context of wanting to make a top down 2D/2.5D tile-based open world survival game, akin to Core Keeper. I would love to support lights to allow for a more 3D feel while in a top down 2D setting. I'm now convinced going the 3D route is a great option for my game as a whole, but It got me thinking about the possibility of 2D light support for other use-cases :)
Contributor guide
Assessment
This issue has not been assessed yet.