gl-vis / regl-line2d

:part_alternation_mark: Draw 2d polyline with regl
https://gl-vis.github.io/regl-line2d
MIT License
59 stars 15 forks source link

Stencil buffer cutoff? #9

Closed dy closed 7 years ago

dy commented 7 years ago

Now cutoffs use fragment shader strategy, which overcalculates them, esp. for sharp angles or small scales. Engaging stencil buffer would allow to avoid conditions in fragment shader, in theory.

dy commented 7 years ago

There is no way to make an absolute stencil buffer as segments can overlap and therefore cutoff.