mirror of
https://github.com/storytold/AniCraft.git
synced 2026-11-23 11:02:29 +01:00
The stroker builds each run of segments as its own outline (inner edges cut where they cross, through the bend's point where they can't) and unites the loops, so the renderers' sum of signed areas is the stroke's true coverage: no pixel is darker where pieces overlapped (it was up to about half a pixel at round joins, caps and the joints of wide curves). The GPU stage draws the oracle's polygons, so it follows. Fourteen corpus goldens change, all at stroke edges (lighter; the dark knots at corners go). Measured, median of 80 renders, before -> after: 2,000 stroked shapes at 1080p 9.3 -> 9.0 ms; the demo 2.5 -> 2.6 ms; 300 self-crossing scribbles at 720p 5.9 -> 6.4 ms; edges handed to the rasterizers down 3 to 4 times.