4 ms·
A few of the previous approaches are mentioned in Other work near the end. And from reading a few articles on the topic I got the impression that, yes, drawing
by ygra 4y ago
A few of the previous approaches are mentioned in Other work near the end. And from reading a few articles on the topic I got the impression that, yes, drawing a single shape in a shader seems almost trivial, vector graphics in general means mostly what PostScript/PDF/SVG are capable of these days. This means you don't just need filled shapes, but also strokes (and stroking in itself is a quite complicated problem), including dashed lines, line caps, etc. Gradients, image fills, blending modes are probably on the more trivial end, since I think those can all be easily solved in shaders.
- bXVsbGVy 4y agoIn SVG, strokes has a separated specification only for them [1]. The specification has images that highlights some of the challenges. [1] https://svgwg.org/specs/strokes/ https://svgwg.org/specs/strokes/