3 ms·
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"
by ridiculous_fish 5y ago
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 https://mattdesl.svbtle.com/drawing-lines-is-hard
and then using a fragment shader to antialias them.
- wwwtyro 5y agoThanks! That's a great write up. I used this approach: https://wwwtyro.net/2019/11/18/instanced-lines.html https://wwwtyro.net/2019/11/18/instanced-lines.html