InstancedMesh constructor

InstancedMesh(
  1. BufferGeometry? geometry,
  2. dynamic material,
  3. int count
)

Implementation

InstancedMesh(BufferGeometry? geometry, material, int count) : super(geometry, material) {
  type = "InstancedMesh";

  var dl = Float32Array(count * 16);
  instanceMatrix = InstancedBufferAttribute(dl, 16, false);
  instanceColor = null;

  this.count = count;

  frustumCulled = false;
}