mirror of
https://github.com/bevyengine/bevy
synced 2024-11-22 04:33:37 +00:00
3c8c257fa3
# Objective It is currently impossible to control the relative ordering of two 2D materials at the same depth. This is required to implement wireframes for 2D meshes correctly (https://github.com/bevyengine/bevy/issues/5881). ## Solution Add a `Material2d::depth_bias` function that mirrors the existing 3D `Material::depth_bias` function. (this is pulled out of https://github.com/bevyengine/bevy/pull/10489) --- ## Changelog ### Added - Added `Material2d::depth_bias` ## Migration Guide `PreparedMaterial2d` has a new `depth_bias` field. A value of 0.0 can be used to get the previous behavior. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |