rreusser / regl-gpu-lines

Pure GPU, instanced, screen-projected lines for regl
https://rreusser.github.io/regl-gpu-lines/
MIT License
175 stars 6 forks source link

Total rewrite #2

Closed rreusser closed 2 years ago

rreusser commented 2 years ago

This PR consolidates all of the shaders into a single shader (with conditionals, obv, though not actually as many as you'd think). Degenerate lines (180 degree turns) are really hard to get right and aren't quite there yet, but everything else is a real improvement. Miter dashes and sdf order now work!!! 🎉

Screen Shot 2021-11-12 at 13 45 38 Screen Shot 2021-11-12 at 13 45 12