csharp
public readonly record struct ImpostorMeshThe geometry one bake photographs.
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 VerticesPosition and normal, interleaved, twenty-four bytes a vertex.
public BufferHandle IndicesIts index buffer, 32-bit.
public int IndexCountHow many indices to draw.
public Vector3 CentreWhere the mesh's bounding sphere is, in the mesh's own space.
public float RadiusAnd how far it reaches. Positive.
Methods (1)
public ImpostorMesh(BufferHandle Vertices, BufferHandle Indices, int IndexCount, Vector3 Centre, float Radius)The geometry one bake photographs.
Used by (2)
- ImpostorCapturePassVixen.Rendering
- ImpostorCapturePassTestsVixen.Rendering.Tests