An A-Frame component to merge geometries to reduce draw calls.
This component is attached to a parent and will merge any meshes found in the
descendants. A-Frame transforms placed on entities will be preserved. The
merged geometry will be set on the parent entity's mesh
Useful if using vertex or face coloring as individual geometries' colors can
still be manipulated individually since this component keeps a
Doesn't support buffer geometries yet.
|preserveOriginal||Whether to remove the now-merged child goemetry or keep in scene graph. It can be useful to keep the original child entities' geometries and set their
|faceIndex||Map of child A-Frame entitites Object3D UUIDs to array of face indices indiciating which faces in the merged geometries belong to the former child geometry|
|vertexIndex||Map of child A-Frame entitites Object3D UUIDs to array of vertex indices indiciating which vertices in the merged geometries belong to the former child geometry|
Install and use by directly including the browser files:
My A-Frame Scene
Install via npm:
npm install aframe-geometry-merger-component
Then require and use.