Fast calculation of the distance to cubic Bezier curves on the GPU
Bézier curves are a core building block of text and 2D shapes rendering.
There are several approaches to rendering them, but one especially challenging
problem, both mathematically and technically, is computing the distance to
a Bézier curve. For quadratic curves (one control point), this is fairly
accessible, but for cubic (two control points) we're going to see why it is
so hard.
A glyph from the Virgil font, composed of multiple Bézier curves
Having this distance field opens up many rendering...
Read more at blog.pkh.me