@pixiv/three-vrm 1.0.0-beta.8 → 1.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 +58 -56
- package/lib/three-vrm.js +1580 -920
- package/lib/three-vrm.min.js +16 -17
- package/lib/three-vrm.module.js +1577 -919
- package/lib/three-vrm.module.min.js +17 -16
- package/package.json +15 -15
- package/ts3.4/types/VRMLoaderPlugin.d.ts +1 -1
- package/ts3.4/types/VRMLoaderPluginOptions.d.ts +7 -0
- package/ts3.4/types/VRMUtils/rotateVRM0.d.ts +5 -0
- package/types/VRMLoaderPlugin.d.ts +1 -1
- package/types/VRMLoaderPluginOptions.d.ts +7 -0
- package/types/VRMUtils/rotateVRM0.d.ts +5 -0
- package/ts3.4/types/utils/renameMaterialProperty.d.ts +0 -1
- package/types/utils/renameMaterialProperty.d.ts +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pixiv/three-vrm",
|
|
3
|
-
"version": "1.0.0
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "VRM file loader for three.js.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "pixiv",
|
|
@@ -35,8 +35,9 @@
|
|
|
35
35
|
"build-types": "tsc --declaration --declarationDir ./types --emitDeclarationOnly && downlevel-dts types ts3.4/types",
|
|
36
36
|
"docs": "typedoc --entryPoints ./src/index.ts --out docs",
|
|
37
37
|
"test": "echo There is no test for three-vrm",
|
|
38
|
-
"lint": "eslint \"src/**/*.{ts,tsx}\" &&
|
|
39
|
-
"lint-
|
|
38
|
+
"lint": "eslint \"src/**/*.{ts,tsx}\" && yarn lint-examples && prettier \"src/**/*.{ts,tsx}\" --check",
|
|
39
|
+
"lint-examples": "eslint \"examples/**/*.{ts,tsx,js,html}\" --rule \"padded-blocks: error\"",
|
|
40
|
+
"lint-fix": "eslint \"src/**/*.{ts,tsx}\" --fix && eslint \"examples/**/*.{ts,tsx,js,html}\" --fix && prettier \"src/**/*.{ts,tsx}\" --write"
|
|
40
41
|
},
|
|
41
42
|
"lint-staged": {
|
|
42
43
|
"./src/**/*.{ts,tsx}": [
|
|
@@ -45,23 +46,22 @@
|
|
|
45
46
|
]
|
|
46
47
|
},
|
|
47
48
|
"dependencies": {
|
|
48
|
-
"@pixiv/three-vrm-core": "1.0.0
|
|
49
|
-
"@pixiv/three-vrm-materials-hdr-emissive-multiplier": "1.0.0
|
|
50
|
-
"@pixiv/three-vrm-materials-mtoon": "1.0.0
|
|
51
|
-
"@pixiv/three-vrm-materials-v0compat": "1.0.0
|
|
52
|
-
"@pixiv/three-vrm-node-constraint": "1.0.0
|
|
53
|
-
"@pixiv/three-vrm-springbone": "1.0.0
|
|
49
|
+
"@pixiv/three-vrm-core": "1.0.0",
|
|
50
|
+
"@pixiv/three-vrm-materials-hdr-emissive-multiplier": "1.0.0",
|
|
51
|
+
"@pixiv/three-vrm-materials-mtoon": "1.0.0",
|
|
52
|
+
"@pixiv/three-vrm-materials-v0compat": "1.0.0",
|
|
53
|
+
"@pixiv/three-vrm-node-constraint": "1.0.0",
|
|
54
|
+
"@pixiv/three-vrm-springbone": "1.0.0"
|
|
54
55
|
},
|
|
55
56
|
"devDependencies": {
|
|
56
57
|
"@rollup/plugin-node-resolve": "^13.0.0",
|
|
57
|
-
"@types/three": "^0.
|
|
58
|
+
"@types/three": "^0.140.0",
|
|
58
59
|
"lint-staged": "10.5.4",
|
|
59
|
-
"
|
|
60
|
-
"three": "^0.136.0"
|
|
60
|
+
"three": "^0.140.2"
|
|
61
61
|
},
|
|
62
62
|
"peerDependencies": {
|
|
63
|
-
"@types/three": "^0.
|
|
64
|
-
"three": "^0.
|
|
63
|
+
"@types/three": "^0.140.0",
|
|
64
|
+
"three": "^0.140.2"
|
|
65
65
|
},
|
|
66
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "4d68337eb9a48a1bc53db87c9f5db7894184ce35"
|
|
67
67
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as THREE from 'three';
|
|
2
|
-
import { GLTF, GLTFLoaderPlugin, GLTFParser } from 'three/examples/jsm/loaders/GLTFLoader';
|
|
2
|
+
import { GLTF, GLTFLoaderPlugin, GLTFParser } from 'three/examples/jsm/loaders/GLTFLoader.js';
|
|
3
3
|
import { VRMExpressionLoaderPlugin, VRMFirstPersonLoaderPlugin, VRMHumanoidLoaderPlugin, VRMLookAtLoaderPlugin, VRMMetaLoaderPlugin } from '@pixiv/three-vrm-core';
|
|
4
4
|
import { MToonMaterialLoaderPlugin } from '@pixiv/three-vrm-materials-mtoon';
|
|
5
5
|
import { VRMMaterialsHDREmissiveMultiplierLoaderPlugin } from '@pixiv/three-vrm-materials-hdr-emissive-multiplier';
|
|
@@ -22,4 +22,11 @@ export interface VRMLoaderPluginOptions {
|
|
|
22
22
|
* Will be overwritten if you use custom loader plugins for each components.
|
|
23
23
|
*/
|
|
24
24
|
helperRoot?: THREE.Object3D;
|
|
25
|
+
/**
|
|
26
|
+
* Whether it copies pose from normalizedHumanBones to rawHumanBones on {@link update}.
|
|
27
|
+
* `true` by default.
|
|
28
|
+
*
|
|
29
|
+
* @default true
|
|
30
|
+
*/
|
|
31
|
+
autoUpdateHumanBones?: boolean;
|
|
25
32
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as THREE from 'three';
|
|
2
|
-
import { GLTF, GLTFLoaderPlugin, GLTFParser } from 'three/examples/jsm/loaders/GLTFLoader';
|
|
2
|
+
import { GLTF, GLTFLoaderPlugin, GLTFParser } from 'three/examples/jsm/loaders/GLTFLoader.js';
|
|
3
3
|
import { VRMExpressionLoaderPlugin, VRMFirstPersonLoaderPlugin, VRMHumanoidLoaderPlugin, VRMLookAtLoaderPlugin, VRMMetaLoaderPlugin } from '@pixiv/three-vrm-core';
|
|
4
4
|
import { MToonMaterialLoaderPlugin } from '@pixiv/three-vrm-materials-mtoon';
|
|
5
5
|
import { VRMMaterialsHDREmissiveMultiplierLoaderPlugin } from '@pixiv/three-vrm-materials-hdr-emissive-multiplier';
|
|
@@ -22,4 +22,11 @@ export interface VRMLoaderPluginOptions {
|
|
|
22
22
|
* Will be overwritten if you use custom loader plugins for each components.
|
|
23
23
|
*/
|
|
24
24
|
helperRoot?: THREE.Object3D;
|
|
25
|
+
/**
|
|
26
|
+
* Whether it copies pose from normalizedHumanBones to rawHumanBones on {@link update}.
|
|
27
|
+
* `true` by default.
|
|
28
|
+
*
|
|
29
|
+
* @default true
|
|
30
|
+
*/
|
|
31
|
+
autoUpdateHumanBones?: boolean;
|
|
25
32
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function renameMaterialProperty(name: string): string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function renameMaterialProperty(name: string): string;
|