csharp
public readonly record struct PathVertexOne corner of a tessellated triangle.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
⚠ The coverage is what antialiases a path, and it has to be interpolated rather than computed. A box and a glyph both carry a distance the shader evaluates per pixel; a triangle carries no distance to its own boundary, so the only thing it can hand a fragment is a number that was already 1 at one end of an edge and 0 at the other. That is the whole of the technique and the whole of its limitation: it antialiases the outline and nothing else.
Fields and properties (2)
public Vector2 PositionWhere it is, in the path's own units.
public float CoverageHow much of the pixel the shape covers there: one inside, falling to zero across the fringe.
Methods (1)
public PathVertex(Vector2 Position, float Coverage)One corner of a tessellated triangle.
Used by (4)
- PathTessellatorVixen.Ui
- PathTessellatorTestsVixen.Ui.Tests
- TessellationVixen.Ui
- UiGeometryBuilderVixen.Ui