|
|
|
|
|
by ninetenfour
1744 days ago
|
|
SDF 2D fields are fun though. Give you can create them from any cubic curve and it gives you offsets from it. https://www.iquilezles.org/www/articles/distfunctions2d/dist... If you offset in both direction from a curve, you can pick a start and end threshold to fill an outline. This only gives you rounded outline strokes. If you had separable tangential versus normal SDFs you could vary your end cap types. Now how do you handle an arbitrary set of knots/control points in one shader? That is a separate problems for which there are a bunch of solutions. |
|