Use VRM on Three.js
@pixiv/three-vrmYou will need:
.module ones are ESM, otherwise it's UMD and injects its modules into global THREE.min ones are minified (for production), otherwise it's not minified and it comes with source mapsYou can import all the dependencies via CDN like jsDelivr.
…See the Three.js document if you are not familiar with Three.js yet: https://threejs.org/docs/#manual/en/introduction/Creating-a-scene
See the example for the complete code: https://github.com/pixiv/three-vrm/blob/release/packages/three-vrm/examples/basic.html
Install three and @pixiv/three-vrm :
npm install three @pixiv/three-vrmStarting from v3, we provide WebGPURenderer compatibility.
To use three-vrm with WebGPURenderer, specify the WebGPU-compatible MToonNodeMaterial for the materialType option of MToonMaterialLoaderPlugin.
MToonNodeMaterial only supports Three.js r167 or later.
The NodeMaterial system of Three.js is still under development, so we may break compatibility with older versions of Three.js more frequently than other parts of three-vrm.
…See the example for the complete code: https://github.com/pixiv/three-vrm/blob/release/packages/three-vrm/examples/webgpu-dnd.html
See: CONTRIBUTING.md
No open issues yet, or sync has not completed.