Use const arrays with dynamic indexes, shader code cleanup
Open
A-Rendering
C-Code-Quality
D-Shaders
S-Ready-For-Implementation
- Dominant language
- Rust
- Stars
- 48.2k
- Forks
- 4.8k
- Avg merge
- 3d 22h
- Merged PRs (30d)
- 161
Description
Something we can finally now do is use const arrays with dynamic indexes, for e.g. shadow sampling patterns.
We should take advantage of this to cleanup a bunch of shader code.
_Originally posted by @JMS55 in https://github.com/bevyengine/bevy/pull/15988#issuecomment-2447965956_
Contributor guide
Assessment
This issue has not been assessed yet.