Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix gizmo line width issue when using perspective (bevyengine#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 ForesightMiningSoftwareCorporation/bevy_polyline#46 I'm not sure if the solution is correct but it solved the issue in my testing. Co-authored-by: François <[email protected]>
- Loading branch information