Bevy 0.15 no longer respects Material2d::depth_bias
#17355
Labels
A-Rendering
Drawing game state to the screen
C-Bug
An unexpected or incorrect behavior
D-Straightforward
Simple bug fixes and API improvements, docs, test and examples
P-Regression
Functionality that used to work but no longer does. Add a test for this!
S-Ready-For-Implementation
This issue is ready for an implementation PR. Go for it!
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:bevy/crates/bevy_sprite/src/mesh2d/wireframe2d.rs
Lines 231 to 233 in 141b767
This issue seems similar to #14169, the 3D version of this problem.
This worked properly in bevy 0.14.
The text was updated successfully, but these errors were encountered: