bevy/crates/bevy_gizmos/src
IceSentry 0d7e81ee81
Fix gizmo line width issue when using perspective (#9067)
# Objective

- In bevy_polyline, we discovered an issue that happens when line width
is smaller than 1.0 and using perspective. It would sometimes end up
negative or NaN. I'm not entirely sure _why_ it happens.

## Solution

- Make sure the width doesn't go below 0 before multiplying it with the
alpha

# Notes 

Here's a link to the bevy_polyline issue
https://github.com/ForesightMiningSoftwareCorporation/bevy_polyline/issues/46

I'm not sure if the solution is correct but it solved the issue in my
testing.

Co-authored-by: François <mockersf@gmail.com>
2023-07-31 18:57:59 +00:00
..
gizmos.rs Fix typos throughout the project (#9090) 2023-07-10 00:11:51 +00:00
lib.rs gizmo plugin lag bugfix (#9166) 2023-07-23 01:01:45 +00:00
lines.wgsl Fix gizmo line width issue when using perspective (#9067) 2023-07-31 18:57:59 +00:00
pipeline_2d.rs Fix gizmo draw order in 2D (#9129) 2023-07-15 21:18:13 +00:00
pipeline_3d.rs Remove unused shader define (#8981) 2023-07-04 21:38:35 +00:00