Vixen
02b45cc4
csharp
public readonly record struct GrassBladeMesh

The blade every grass instance is drawn from.

Read the guide page for this →

Remarks

⚠ One mesh for every blade in the world, which is what makes the field one draw per cell. A blade differs from its neighbour by its instance record — position, rotation, height, tint — and by nothing in its geometry, so uploading a mesh per blade would be uploading the same eight vertices fifty thousand times.

Fields and properties (3)

  • public BufferHandle Vertices

    Its vertex buffer: position, normal, texcoord.

  • public BufferHandle Indices

    Its index buffer, 32-bit.

  • public int IndexCount

    How many indices one blade is.

Methods (1)

  • public GrassBladeMesh(BufferHandle Vertices, BufferHandle Indices, int IndexCount)

    The blade every grass instance is drawn from.

Used by (1)

  • GrassDrawPassVixen.Rendering.Terrain