@pixiv/three-vrm-materials-mtoon 3.0.0-beta.2 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -20,7 +20,10 @@ The NodeMaterial system of Three.js is still under development, so we may break
|
|
|
20
20
|
import { MToonMaterialLoaderPlugin } from '@pixiv/three-vrm-materials-mtoon';
|
|
21
21
|
import { MToonNodeMaterial } from '@pixiv/three-vrm-materials-mtoon/nodes';
|
|
22
22
|
|
|
23
|
-
// ...
|
|
23
|
+
// ... Setup renderer, camera, scene ...
|
|
24
|
+
|
|
25
|
+
// Create a GLTFLoader
|
|
26
|
+
const loader = new GLTFLoader();
|
|
24
27
|
|
|
25
28
|
// Register a MToonMaterialLoaderPlugin with MToonNodeMaterial
|
|
26
29
|
loader.register((parser) => {
|
|
@@ -34,4 +37,8 @@ loader.register((parser) => {
|
|
|
34
37
|
});
|
|
35
38
|
|
|
36
39
|
});
|
|
40
|
+
|
|
41
|
+
// ... Load the VRM and perform the render loop ...
|
|
37
42
|
```
|
|
43
|
+
|
|
44
|
+
See the example for the complete code: https://github.com/pixiv/three-vrm/blob/release/packages/three-vrm-materials-mtoon/examples/webgpu-loader-plugin.html
|
package/lib/nodes/index.cjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pixiv/three-vrm-materials-mtoon",
|
|
3
|
-
"version": "3.0.0
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "MToon (toon material) module for @pixiv/three-vrm",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "pixiv",
|
|
@@ -55,8 +55,8 @@
|
|
|
55
55
|
]
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
|
-
"@pixiv/types-vrm-0.0": "3.0.0
|
|
59
|
-
"@pixiv/types-vrmc-materials-mtoon-1.0": "3.0.0
|
|
58
|
+
"@pixiv/types-vrm-0.0": "3.0.0",
|
|
59
|
+
"@pixiv/types-vrmc-materials-mtoon-1.0": "3.0.0"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"@types/three": "^0.167.0",
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
"peerDependencies": {
|
|
66
66
|
"three": ">=0.137"
|
|
67
67
|
},
|
|
68
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "56deda5955201e83e3380f40e44d3d8afd941e05"
|
|
69
69
|
}
|