Constructors

Properties

deepDispose: ((object3D) => void) = deepDispose

Type declaration

    • (object3D): void
    • Parameters

      • object3D: Object3D<Object3DEventMap>

      Returns void

removeUnnecessaryJoints: ((root) => void) = removeUnnecessaryJoints

Type declaration

    • (root): void
    • Traverse given object and remove unnecessarily bound joints from every THREE.SkinnedMesh. Some environments like mobile devices have a lower limit of bones and might be unable to perform mesh skinning, this function might resolve such an issue. Also this function might greatly improve the performance of mesh skinning.

      Parameters

      • root: Object3D<Object3DEventMap>

        Root object that will be traversed

      Returns void

removeUnnecessaryVertices: ((root) => void) = removeUnnecessaryVertices

Type declaration

    • (root): void
    • 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

      Parameters

      • root: Object3D<Object3DEventMap>

        Root object that will be traversed

      Returns void

rotateVRM0: ((vrm) => void) = rotateVRM0

Type declaration

    • (vrm): void
    • If the given VRM is VRM0.0, rotate the vrm.scene by 180 degrees around the Y axis.

      Parameters

      • vrm: VRM

        The target VRM

      Returns void

Generated using TypeDoc