Comment on Show HN: CandyGraph, a flexible, fast-by-default WebGL plotting libraryComments−ridiculous_fish5yAwesome project! I'm curious how you draw lines? I found that drawing nice lines is quite painful in WebGL; I ended up using the "Screen-Space Projected Lines" technique here:https://mattdesl.svbtle.com/drawing-lines-is-hardand then using a fragment shader to antialias them.−wwwtyroOP5yThanks!That's a great write up. I used this approach: https://wwwtyro.net/2019/11/18/instanced-lines.html
Comments
Awesome project! I'm curious how you draw lines? I found that drawing nice lines is quite painful in WebGL; I ended up using the "Screen-Space Projected Lines" technique here:
https://mattdesl.svbtle.com/drawing-lines-is-hard
and then using a fragment shader to antialias them.
Thanks!
That's a great write up. I used this approach: https://wwwtyro.net/2019/11/18/instanced-lines.html