InstancedMesh constructor

InstancedMesh({
  1. required Geometry geometry,
  2. required Material material,
})

Creates an instanced mesh that draws geometry shaded by material. It starts with no instances; add them with addInstance.

Implementation

InstancedMesh({required this.geometry, required this.material});