bevyengine / bevyengine/bevy

Use const arrays with dynamic indexes, shader code cleanup

Open
#16,174 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.