@pixiv/three-vrm 3.1.5 → 3.2.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/lib/nodes/index.cjs +11 -11
- package/lib/nodes/index.min.cjs +2 -2
- package/lib/nodes/index.module.js +11 -11
- package/lib/nodes/index.module.min.js +2 -2
- package/lib/three-vrm.cjs +143 -51
- package/lib/three-vrm.min.cjs +10 -10
- package/lib/three-vrm.module.js +143 -51
- package/lib/three-vrm.module.min.js +10 -10
- package/package.json +8 -8
- package/types/VRMUtils/combineSkeletons.d.ts +10 -0
- package/types/VRMUtils/index.d.ts +2 -0
- package/types/VRMUtils/removeUnnecessaryJoints.d.ts +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pixiv/three-vrm",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.2.0",
|
|
4
4
|
"description": "VRM file loader for three.js.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "pixiv",
|
|
@@ -56,12 +56,12 @@
|
|
|
56
56
|
]
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
|
-
"@pixiv/three-vrm-core": "3.
|
|
60
|
-
"@pixiv/three-vrm-materials-hdr-emissive-multiplier": "3.
|
|
61
|
-
"@pixiv/three-vrm-materials-mtoon": "3.
|
|
62
|
-
"@pixiv/three-vrm-materials-v0compat": "3.
|
|
63
|
-
"@pixiv/three-vrm-node-constraint": "3.
|
|
64
|
-
"@pixiv/three-vrm-springbone": "3.
|
|
59
|
+
"@pixiv/three-vrm-core": "3.2.0",
|
|
60
|
+
"@pixiv/three-vrm-materials-hdr-emissive-multiplier": "3.2.0",
|
|
61
|
+
"@pixiv/three-vrm-materials-mtoon": "3.2.0",
|
|
62
|
+
"@pixiv/three-vrm-materials-v0compat": "3.2.0",
|
|
63
|
+
"@pixiv/three-vrm-node-constraint": "3.2.0",
|
|
64
|
+
"@pixiv/three-vrm-springbone": "3.2.0"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
67
|
"@types/three": "^0.169.0",
|
|
@@ -70,5 +70,5 @@
|
|
|
70
70
|
"peerDependencies": {
|
|
71
71
|
"three": ">=0.137"
|
|
72
72
|
},
|
|
73
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "3588ce8881f54676fa640ef1355fcaa3a5441b46"
|
|
74
74
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as THREE from 'three';
|
|
2
|
+
/**
|
|
3
|
+
* Traverses the given object and combines the skeletons of skinned meshes.
|
|
4
|
+
*
|
|
5
|
+
* Each frame the bone matrices are computed for every skeleton. Combining skeletons
|
|
6
|
+
* reduces the number of calculations needed, improving performance.
|
|
7
|
+
*
|
|
8
|
+
* @param root Root object that will be traversed
|
|
9
|
+
*/
|
|
10
|
+
export declare function combineSkeletons(root: THREE.Object3D): void;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
import { combineSkeletons } from './combineSkeletons';
|
|
1
2
|
import { deepDispose } from './deepDispose';
|
|
2
3
|
import { removeUnnecessaryJoints } from './removeUnnecessaryJoints';
|
|
3
4
|
import { removeUnnecessaryVertices } from './removeUnnecessaryVertices';
|
|
4
5
|
import { rotateVRM0 } from './rotateVRM0';
|
|
5
6
|
export declare class VRMUtils {
|
|
6
7
|
private constructor();
|
|
8
|
+
static combineSkeletons: typeof combineSkeletons;
|
|
7
9
|
static deepDispose: typeof deepDispose;
|
|
8
10
|
static removeUnnecessaryJoints: typeof removeUnnecessaryJoints;
|
|
9
11
|
static removeUnnecessaryVertices: typeof removeUnnecessaryVertices;
|
|
@@ -9,6 +9,8 @@ import * as THREE from 'three';
|
|
|
9
9
|
* Also, this function might significantly improve the performance of mesh skinning.
|
|
10
10
|
*
|
|
11
11
|
* @param root Root object that will be traversed
|
|
12
|
+
*
|
|
13
|
+
* @deprecated `removeUnnecessaryJoints` is deprecated. Use `combineSkeletons` instead. `combineSkeletons` contributes more to the performance improvement. This function will be removed in the next major version.
|
|
12
14
|
*/
|
|
13
15
|
export declare function removeUnnecessaryJoints(root: THREE.Object3D, options?: {
|
|
14
16
|
/**
|