bevy/crates/bevy_gizmos/src
ira 5b0798f029 Fix gizmo lines deforming or disappearing when partially behind the camera (#9470)
If a line has one point behind the camera(near plane) then it would
deform or, if the `depth_bias` setting was set to a negative value,
disappear.

## Solution

The issue is that performing a perspective divide does not work
correctly for points behind the near plane and a perspective divide is
used inside the shader to define the line width in screen space.
The solution is to perform near plane clipping manually inside the
shader before the perspective divide is done.
2023-08-17 14:40:52 -07:00
..
gizmos.rs Clarify immediate mode in Gizmos documentation (#9183) 2023-08-09 18:06:01 -07:00
lib.rs Fix crash when drawing line gizmo with less than 2 vertices (#9101) 2023-08-17 14:37:44 -07:00
lines.wgsl Fix gizmo lines deforming or disappearing when partially behind the camera (#9470) 2023-08-17 14:40:52 -07:00
pipeline_2d.rs Fix gizmo draw order in 2D (#9129) 2023-08-09 18:01:36 -07:00
pipeline_3d.rs Remove unused shader define (#8981) 2023-07-04 21:38:35 +00:00