csharp
public readonly record struct GrassDrawOne grass type and the templates its levels are drawn with.
Remarks
FoliageDraw's shape, deliberately: a field of grass is culled and binned by the same InstanceCuller, so it is described the same way. Most grass has one level and passes an empty .
Fields and properties (3)
public GrassType TypeThe type.
public DrawCommand[] LevelsOne draw template per level, nearest first.
public float[] DistancesWhere each level takes over, ascending, one fewer than the levels.
Methods (1)
public GrassDraw(GrassType Type, DrawCommand[] Levels, float[] Distances)One grass type and the templates its levels are drawn with.
Used by (2)
- GrassRendererVixen.Rendering.Terrain
- GrassRendererTestsVixen.Rendering.Terrain.Tests