`bevy_sprite` picking backend does not honor render layers
- Dominant language
- Rust
- Stars
- 48.2k
- Forks
- 4.8k
- Avg merge
- 3d 16h
- Merged PRs (30d)
- 171
Description
## Bevy version
0.15
## What you did
Create multiple sprites, multiple cameras, selectively render some of the sprites in some of the cameras using render layers. Use `bevy_picking`.
## What went wrong
Sprites are picked across all cameras (that have the window as a render target) regardless of render layers.
---
(Also, if #16886 is merged, this should probably also apply to that.)
Contributor guide
Research direction
Start in the bevy_sprite picking backend and trace how sprites are selected across cameras with window render targets. Reproduce the multiple-camera, multiple-render-layer case described in the issue, and verify that picking only considers sprites visible through the applicable render layers; also check whether the behavior described by #16886 needs the same treatment.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- game-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100