Vixen
02b45cc4
csharp
public readonly record struct FoliageDraw

The draw templates one foliage type's levels are drawn with.

Read the guide page for this →

Remarks

⚠ The templates come from the mesh's LOD group and this assembly does not resolve them. A .vxfoliage names a mesh; turning that into index counts is the asset system's, and a renderer that looked it up would need an asset database in a class whose job is a compute dispatch.

Fields and properties (3)

  • public int Type

    Which palette entry.

  • public DrawCommand[] Levels

    One draw template per level, nearest first: index count, first index, vertex offset.

  • public float[] Distances

    Where each level takes over, ascending, one fewer than .

Methods (1)

  • public FoliageDraw(int Type, DrawCommand[] Levels, float[] Distances)

    The draw templates one foliage type's levels are drawn with.

Used by (4)

  • FoliageCullPassVixen.Rendering.Terrain
  • FoliageCullPassTestsVixen.Rendering.Terrain.Tests
  • FoliageRendererVixen.Rendering.Terrain
  • FoliageRendererTestsVixen.Rendering.Terrain.Tests