Vixen
02b45cc4
csharp
public readonly record struct GrassDraw

One grass type and the templates its levels are drawn with.

Read the guide page for this →

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 Type

    The type.

  • public DrawCommand[] Levels

    One draw template per level, nearest first.

  • public float[] Distances

    Where 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