csharp
public readonly record struct GrassBladeMeshThe blade every grass instance is drawn from.
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 VerticesIts vertex buffer: position, normal, texcoord.
public BufferHandle IndicesIts index buffer, 32-bit.
public int IndexCountHow 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