Bevy 0.15 no longer respects `Material2d::depth_bias`
Open
A-Rendering
C-Bug
D-Straightforward
I-Regression
S-Ready-For-Implementation
- Dominant language
- Rust
- Stars
- 48.2k
- Forks
- 4.8k
- Avg merge
- 3d 22h
- Merged PRs (30d)
- 161
Description
## Bevy version
0.15
## What you did
Enable wireframe on a 2D object with a `ColorMaterial`.
## What went wrong
The wireframe renders behind the object instead of in front of it, and only its outline is visible. This happens despite the wireframe material setting a `depth_bias` that should make it render in front of the other material:
https://github.com/bevyengine/bevy/blob/141b7673ab3b0af13d49349b97f053286bb16227/crates/bevy_sprite/src/mesh2d/wireframe2d.rs#L231-L233
This issue seems similar to https://github.com/bevyengine/bevy/issues/14169, the 3D version of this problem.
This worked properly in bevy 0.14.
Contributor guide
Assessment
This issue has not been assessed yet.