diff --git a/README.md b/README.md index 17db9a01f..b309fd36b 100644 --- a/README.md +++ b/README.md @@ -102,7 +102,8 @@ To use three-vrm with WebGPURenderer, specify the WebGPU-compatible `MToonNodeMa 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. ```js -import { VRMLoaderPlugin } from '@pixiv/three-vrm'; +import { GLTFLoader } from 'three/addons/loaders/GLTFLoader.js'; +import { MToonMaterialLoaderPlugin, VRMLoaderPlugin } from '@pixiv/three-vrm'; import { MToonNodeMaterial } from '@pixiv/three-vrm/nodes'; // ... Setup renderer, camera, scene ... diff --git a/packages/three-vrm-materials-mtoon/README.md b/packages/three-vrm-materials-mtoon/README.md index 148ced800..9ea9aa5e0 100644 --- a/packages/three-vrm-materials-mtoon/README.md +++ b/packages/three-vrm-materials-mtoon/README.md @@ -17,6 +17,7 @@ To use MToon with WebGPURenderer, specify the WebGPU-compatible `MToonNodeMateri 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. ```js +import { GLTFLoader } from 'three/addons/loaders/GLTFLoader.js'; import { MToonMaterialLoaderPlugin } from '@pixiv/three-vrm-materials-mtoon'; import { MToonNodeMaterial } from '@pixiv/three-vrm-materials-mtoon/nodes'; diff --git a/packages/three-vrm/README.md b/packages/three-vrm/README.md index 17db9a01f..b309fd36b 100644 --- a/packages/three-vrm/README.md +++ b/packages/three-vrm/README.md @@ -102,7 +102,8 @@ To use three-vrm with WebGPURenderer, specify the WebGPU-compatible `MToonNodeMa 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. ```js -import { VRMLoaderPlugin } from '@pixiv/three-vrm'; +import { GLTFLoader } from 'three/addons/loaders/GLTFLoader.js'; +import { MToonMaterialLoaderPlugin, VRMLoaderPlugin } from '@pixiv/three-vrm'; import { MToonNodeMaterial } from '@pixiv/three-vrm/nodes'; // ... Setup renderer, camera, scene ...