{"repo":"fslabs/bevy_polyline","free":true,"listed":false,"github":"https://github.com/fslabs/bevy_polyline","clone":"git clone https://github.com/fslabs/bevy_polyline.git","description":"Polyline Rendering for Bevy","language":"Rust","stars":221,"topics":["bevy-plugin","bevy","rendering","polyline"],"license":"Apache-2.0","category":"game-templates","readme_excerpt":"Bevy Polyline High performance instanced polyline rendering for bevy About Bevy Polyline is a plugin for Bevy Engine that adds instanced rendering of Polyline s. The plugin comes courtesy of Foresight Mining Software Corporation who sponsor its creation and maintenance. Special thanks to mtsr for the initial implementation of this plugin. Implementation Bevy Polyline closely mimics the way Mesh es are rendered in Bevy. It works internally by passing a minimal Instance Buffer to the GPU, containing only the line segment endpoints and then completely determines all vertex positions within the vertex shader, such that the triangles form a line that is rotated around it's longitudinal axis to face towards the camera. The shader code is based on this great tutorial by Rye Terrell. Usage See the minimal example for basic usage. Transform Polyline s respect positioning through GlobalTransform , so you can position them directly, or through the use of a Transform hierarchy. PolylineMaterial Currently the main way of customizing a Polyline is by changing the PolylineMaterial , which, as can be seen above, has fields for width , color and perspective . width directly correlates to screen pixels in non-perspective mode. In perspective mode width gets divided by the w component of the homogeneous coordinate, meaning it corresponds to screen pixels at the near plane and becomes progressively smaller further away. Aliasing/shimmering Bevy Polyline does some work to reduce aliasing, by impl","default_branch":null,"files":null,"tree":[],"storefront":"/r/fslabs","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/fslabs/bevy_polyline/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}