ForesightMiningSoftwareCorporation / bevy_polyline

Polyline Rendering for Bevy
https://crates.io/crates/bevy_polyline
Apache License 2.0
171 stars 43 forks source link

Add depth_bias field to PolylineMaterial #26

Closed nicopap closed 2 years ago

nicopap commented 2 years ago

This let the user draw lines closer or further away from the camera than the line is really in the 3d world.

A good use case for this is making the lines draw always in front of geometry, or slightly offsetting the line so they can be shown in front of geometry it shares with other things.

Closes #25.

Note on perspective: I would like to keep the ability to set/unset the perspective independently from the depth_bias. Perspective is a good way to see "where" a line should be even when it always show up in front of other things.

nicopap commented 2 years ago

@aevyrie May I get your attention? You might have overlooked this PR.