InstancedMesh constructor
InstancedMesh(
- BufferGeometry? geometry,
- dynamic material,
- 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;
}