bevy/crates/bevy_gizmos/src
Sean Kim c87ec09674
Fix 2D Gizmos not always drawn on top (#17085)
# Objective

- As stated in the linked issue, if a Mesh2D is drawn with elements with
a positive Z value, resulting gizmos get drawn behind instead of in
front of them.
- Fixes #17053

## Solution

- Similar to the change done for the `SpritePipeline` in the relevant
commit (5abc32ceda), this PR changes both
line gizmos to avoid writing to the depth buffer and always pass the
depth test to ensure they are not filtered out.

## Testing

- Tested with the provided snippet in #17053 
- I looked over the `2d_gizmos` example, but it seemed like adding more
elements there to demonstrate this might not be the best idea? Looking
for guidance here on if that should be updated or if a new gizmo example
needs to be made.
2025-01-05 02:02:30 +00:00
..
primitives ✏️ Fix typos across bevy (#16702) 2024-12-08 01:18:39 +00:00
aabb.rs Reflect derived traits on all components and resources: bevy_gizmos (#15217) 2024-09-15 14:41:49 +00:00
arcs.rs Retained Gizmos (#15473) 2024-12-04 21:21:06 +00:00
arrows.rs Retained Gizmos (#15473) 2024-12-04 21:21:06 +00:00
circles.rs Retained Gizmos (#15473) 2024-12-04 21:21:06 +00:00
config.rs Add dashed lines (#16884) 2024-12-18 20:43:58 +00:00
cross.rs Retained Gizmos (#15473) 2024-12-04 21:21:06 +00:00
curves.rs Refactor non-core Curve methods into extension traits (#16930) 2024-12-29 19:26:49 +00:00
gizmos.rs Retained Gizmos (#15473) 2024-12-04 21:21:06 +00:00
grid.rs Retained Gizmos (#15473) 2024-12-04 21:21:06 +00:00
lib.rs Add dashed lines (#16884) 2024-12-18 20:43:58 +00:00
light.rs Implement From translation and rotation for isometries (#15733) 2024-10-08 16:09:28 +00:00
line_joints.wgsl Retained Gizmos (#15473) 2024-12-04 21:21:06 +00:00
lines.wgsl Add dashed lines (#16884) 2024-12-18 20:43:58 +00:00
pipeline_2d.rs Fix 2D Gizmos not always drawn on top (#17085) 2025-01-05 02:02:30 +00:00
pipeline_3d.rs Add dashed lines (#16884) 2024-12-18 20:43:58 +00:00
retained.rs Add dashed lines (#16884) 2024-12-18 20:43:58 +00:00
rounded_box.rs Retained Gizmos (#15473) 2024-12-04 21:21:06 +00:00