![]() # Objective Adopt code from [bevy_polyline](https://github.com/ForesightMiningSoftwareCorporation/bevy_polyline) for gizmo line-rendering. This adds configurable width and perspective rendering for the lines. Many thanks to @mtsr for the initial work on bevy_polyline. Thanks to @aevyrie for maintaining it, @nicopap for adding the depth_bias feature and the other [contributors](https://github.com/ForesightMiningSoftwareCorporation/bevy_polyline/graphs/contributors) for squashing bugs and keeping bevy_polyline up-to-date. #### Before  #### After - with line perspective  Line perspective is not on by default because with perspective there is no default line width that works for every scene. <details><summary>After - without line perspective</summary> <p>  </p> </details> Somewhat unexpectedly, the performance is improved with this PR. At 200,000 lines in many_gizmos I get ~110 FPS on main and ~200 FPS with this PR. I'm guessing this is a CPU side difference as I would expect the rendering technique to be more expensive on the GPU to some extent, but I am not entirely sure. --------- Co-authored-by: Jonas Matser <github@jonasmatser.nl> Co-authored-by: Aevyrie <aevyrie@gmail.com> Co-authored-by: Nicola Papale <nico@nicopap.ch> Co-authored-by: Nicola Papale <nicopap@users.noreply.github.com> |
||
---|---|---|
.. | ||
2d_gizmos.rs | ||
2d_shapes.rs | ||
bloom_2d.rs | ||
custom_gltf_vertex_attribute.rs | ||
mesh2d_manual.rs | ||
mesh2d_vertex_color_texture.rs | ||
mesh2d.rs | ||
move_sprite.rs | ||
pixel_perfect.rs | ||
rotation.rs | ||
sprite_flipping.rs | ||
sprite_sheet.rs | ||
sprite.rs | ||
text2d.rs | ||
texture_atlas.rs | ||
transparency_2d.rs |