Per-light shadow casting control for meshes
- Dominant language
- Rust
- Stars
- 48.2k
- Forks
- 4.8k
- Avg merge
- 4d 8m
- Merged PRs (30d)
- 147
Description
## What problem does this solve or what need does it fill?
Allow a light to only cast shadows for certain meshes.
Currently, you can only prevent shadow casting for _all_ lights for a _specific_ mesh via the NotShadowCaster component on a mesh.
## What solution would you like?
Add an optional component to lights that allows filtering what meshes will be drawn as part of the shadow mapping pass for specifically that light.
Open question: What happens if the specified meshes have a NotShadowCaster component?
## What alternative(s) have you considered?
Instead of a component on the light listing shadow casting meshes, we could have a component on the mesh listing lights for which the mesh should cast shadows.
Contributor guide
Assessment
This issue has not been assessed yet.