clone method

data - This object holds shared array buffers required for properly cloning geometries with interleaved attributes.

Implementation

@override
InstancedInterleavedBuffer clone(InterleavedBuffer data) {
  //if(data is InterleavedBuffer) throw('data must be InstancedInterleavedBuffer');
  final ib = super.clone(data);
  ib.meshPerAttribute = meshPerAttribute;
  return ib as InstancedInterleavedBuffer;
}