toJson method

  1. @override
Map<String, dynamic> toJson({
  1. Object3dMeta? meta,
})
override

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;
}