Vixen
02b45cc4
csharp
public readonly record struct Barycentrics

A pixel's position inside a triangle, and how fast that position changes.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

Barycentrics in Barycentrics.rvn. Three weights rather than two because an interpolation is a weighted sum of three corner values, and carrying the third explicitly is what lets one struct interpolate a scalar, a vector or a matrix with no special case for which corner is the origin.

Fields and properties (3)

  • public Vector3 Weights

    The barycentric weights, summing to one, perspective-corrected.

  • public Vector3 Ddx

    How they change across one pixel in x.

  • public Vector3 Ddy

    How they change across one pixel in y.

Methods (1)

  • public Barycentrics(Vector3 Weights, Vector3 Ddx, Vector3 Ddy)

    A pixel's position inside a triangle, and how fast that position changes.

Used by (2)

  • ClusterAttributeTestsVixen.Rendering.Tests
  • ClusterAttributesVixen.Rendering