Skip to content

Comment on Show HN: CandyGraph, a flexible, fast-by-default WebGL plotting library

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

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.