toJson method
Convert the buffer geometry to three.js JSON Object/Scene format.
Implementation
@override
Map<String, dynamic> toJson({Object3dMeta? meta}) {
final data = super.toJson(meta: meta);
data['instanceCount'] = instanceCount;
data['isInstancedBufferGeometry'] = true;
return data;
}