UNPKG

@pixiv/three-vrm

Version:

VRM file loader for three.js.

13 lines (12 loc) 584 B
import * as THREE from 'three'; /** * Traverse given object and remove unnecessary vertices from every BufferGeometries. * This only processes buffer geometries with index buffer. * * Three.js creates morph textures for each geometries and it sometimes consumes unnecessary amount of VRAM for certain models. * This function will optimize geometries to reduce the size of morph texture. * See: https://github.com/mrdoob/three.js/issues/23095 * * @param root Root object that will be traversed */ export declare function removeUnnecessaryVertices(root: THREE.Object3D): void;