RenderProviderOutput class final

What a RenderProvider hands the renderer for one entity: meshes and batches placed in the entity's own space — the renderer moves them with the entity.

Constructors

RenderProviderOutput()

Properties

batches → List<(GpuPrimitive, GpuMaterial, List<Matrix4>, double, bool)>
The batches added: primitive, material, placements, reach, shadows.
no setter
hashCode → int
The hash code for this object.
no setterinherited
meshes → List<(GpuPrimitive, GpuMaterial, Matrix4, bool)>
The meshes added: primitive, material, placement, shadows.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

addBatch(GpuPrimitive primitive, GpuMaterial material, List<Matrix4> locals, {double maxDistance = double.infinity, bool castShadows = true}) → void
Draws primitive in material once at each of locals (entity from copy), in one call: grass, posts, tiles. Not drawn beyond maxDistance metres from the camera.
addMesh(GpuPrimitive primitive, GpuMaterial material, {Matrix4? local, bool castShadows = true}) → void
Draws primitive in material at local (entity from mesh; the entity's origin when null).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited