Vixen
02b45cc4
csharp
public readonly record struct ImpostorMesh

The geometry one bake photographs.

Read the guide page for this →

Remarks

⚠ The bounding sphere is the mesh's rather than the bake's, and both halves of the atlas depend on it. Every cell of a grid is fitted to one radius — see Record — so a radius that is too small clips the silhouette on every view at once, and one that is too large shrinks the tree inside its cell and spends the atlas on empty texels.

Fields and properties (5)

  • public BufferHandle Vertices

    Position and normal, interleaved, twenty-four bytes a vertex.

  • public BufferHandle Indices

    Its index buffer, 32-bit.

  • public int IndexCount

    How many indices to draw.

  • public Vector3 Centre

    Where the mesh's bounding sphere is, in the mesh's own space.

  • public float Radius

    And how far it reaches. Positive.

Methods (1)

Used by (2)

  • ImpostorCapturePassVixen.Rendering
  • ImpostorCapturePassTestsVixen.Rendering.Tests