csharp
public readonly record struct FoliageDrawThe draw templates one foliage type's levels are drawn with.
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 TypeWhich palette entry.
public DrawCommand[] LevelsOne draw template per level, nearest first: index count, first index, vertex offset.
public float[] DistancesWhere 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