InstancedMesh constructor

InstancedMesh({
  1. required Geometry geometry,
  2. required Material material,
  3. bool cullInstances = false,
  4. bool sortTransparentInstances = true,
})

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,
  this.cullInstances = false,
  this.sortTransparentInstances = true,
});