@pixiv/three-vrm 0.6.8 → 0.6.11

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.
Files changed (37) hide show
  1. package/lib/three-vrm.js +58 -26
  2. package/lib/three-vrm.min.js +1 -1
  3. package/lib/three-vrm.module.js +58 -26
  4. package/lib/three-vrm.module.min.js +1 -1
  5. package/package.json +6 -6
  6. package/ts3.4/types/VRM.d.ts +1 -1
  7. package/ts3.4/types/VRMImporter.d.ts +1 -1
  8. package/ts3.4/types/blendshape/VRMBlendShapeImporter.d.ts +1 -1
  9. package/ts3.4/types/debug/VRMDebug.d.ts +1 -1
  10. package/ts3.4/types/debug/VRMImporterDebug.d.ts +1 -1
  11. package/ts3.4/types/debug/VRMLookAtImporterDebug.d.ts +1 -1
  12. package/ts3.4/types/debug/VRMSpringBoneImporterDebug.d.ts +1 -1
  13. package/ts3.4/types/firstperson/VRMFirstPersonImporter.d.ts +1 -1
  14. package/ts3.4/types/humanoid/VRMHumanoidImporter.d.ts +1 -1
  15. package/ts3.4/types/lookat/VRMLookAtImporter.d.ts +1 -1
  16. package/ts3.4/types/material/VRMMaterialImporter.d.ts +1 -1
  17. package/ts3.4/types/material/getTexelDecodingFunction.d.ts +4 -0
  18. package/ts3.4/types/meta/VRMMetaImporter.d.ts +1 -1
  19. package/ts3.4/types/springbone/VRMSpringBoneImporter.d.ts +1 -1
  20. package/ts3.4/types/springbone/VRMSpringBoneManager.d.ts +7 -0
  21. package/ts3.4/types/utils/gltfExtractPrimitivesFromNode.d.ts +1 -1
  22. package/types/VRM.d.ts +1 -1
  23. package/types/VRMImporter.d.ts +1 -1
  24. package/types/blendshape/VRMBlendShapeImporter.d.ts +1 -1
  25. package/types/debug/VRMDebug.d.ts +1 -1
  26. package/types/debug/VRMImporterDebug.d.ts +1 -1
  27. package/types/debug/VRMLookAtImporterDebug.d.ts +1 -1
  28. package/types/debug/VRMSpringBoneImporterDebug.d.ts +1 -1
  29. package/types/firstperson/VRMFirstPersonImporter.d.ts +1 -1
  30. package/types/humanoid/VRMHumanoidImporter.d.ts +1 -1
  31. package/types/lookat/VRMLookAtImporter.d.ts +1 -1
  32. package/types/material/VRMMaterialImporter.d.ts +1 -1
  33. package/types/material/getTexelDecodingFunction.d.ts +4 -0
  34. package/types/meta/VRMMetaImporter.d.ts +1 -1
  35. package/types/springbone/VRMSpringBoneImporter.d.ts +1 -1
  36. package/types/springbone/VRMSpringBoneManager.d.ts +7 -0
  37. package/types/utils/gltfExtractPrimitivesFromNode.d.ts +1 -1
@@ -1,4 +1,4 @@
1
- import { GLTF } from 'three/examples/jsm/loaders/GLTFLoader';
1
+ import { GLTF } from 'three/examples/jsm/loaders/GLTFLoader.js';
2
2
  import { VRMBlendShapeProxy } from './VRMBlendShapeProxy';
3
3
  /**
4
4
  * An importer that imports a [[VRMBlendShape]] from a VRM extension of a GLTF.
@@ -1,4 +1,4 @@
1
- import { GLTF } from 'three/examples/jsm/loaders/GLTFLoader';
1
+ import { GLTF } from 'three/examples/jsm/loaders/GLTFLoader.js';
2
2
  import { VRM, VRMParameters } from '../VRM';
3
3
  import { VRMImporterOptions } from '../VRMImporter';
4
4
  import { VRMDebugOptions } from './VRMDebugOptions';
@@ -1,4 +1,4 @@
1
- import { GLTF } from 'three/examples/jsm/loaders/GLTFLoader';
1
+ import { GLTF } from 'three/examples/jsm/loaders/GLTFLoader.js';
2
2
  import { VRMImporter, VRMImporterOptions } from '../VRMImporter';
3
3
  import { VRMDebug } from './VRMDebug';
4
4
  import { VRMDebugOptions } from './VRMDebugOptions';
@@ -1,4 +1,4 @@
1
- import { GLTF } from 'three/examples/jsm/loaders/GLTFLoader';
1
+ import { GLTF } from 'three/examples/jsm/loaders/GLTFLoader.js';
2
2
  import { VRMBlendShapeProxy } from '../blendshape';
3
3
  import { VRMFirstPerson } from '../firstperson';
4
4
  import { VRMHumanoid } from '../humanoid';
@@ -1,5 +1,5 @@
1
1
  import * as THREE from 'three';
2
- import { GLTF } from 'three/examples/jsm/loaders/GLTFLoader';
2
+ import { GLTF } from 'three/examples/jsm/loaders/GLTFLoader.js';
3
3
  import { VRMSpringBoneImporter } from '../springbone/VRMSpringBoneImporter';
4
4
  import { VRMSpringBoneManagerDebug } from './VRMSpringBoneManagerDebug';
5
5
  import { VRMSpringBoneDebug } from './VRMSpringBoneDebug';
@@ -1,4 +1,4 @@
1
- import { GLTF } from 'three/examples/jsm/loaders/GLTFLoader';
1
+ import { GLTF } from 'three/examples/jsm/loaders/GLTFLoader.js';
2
2
  import { VRMHumanoid } from '../humanoid';
3
3
  import { VRMFirstPerson } from './VRMFirstPerson';
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { GLTF } from 'three/examples/jsm/loaders/GLTFLoader';
1
+ import { GLTF } from 'three/examples/jsm/loaders/GLTFLoader.js';
2
2
  import { VRMHumanoid } from './VRMHumanoid';
3
3
  /**
4
4
  * An importer that imports a [[VRMHumanoid]] from a VRM extension of a GLTF.
@@ -1,4 +1,4 @@
1
- import { GLTF } from 'three/examples/jsm/loaders/GLTFLoader';
1
+ import { GLTF } from 'three/examples/jsm/loaders/GLTFLoader.js';
2
2
  import { VRMBlendShapeProxy } from '../blendshape';
3
3
  import { VRMFirstPerson } from '../firstperson';
4
4
  import { VRMHumanoid } from '../humanoid';
@@ -1,5 +1,5 @@
1
1
  import * as THREE from 'three';
2
- import { GLTF } from 'three/examples/jsm/loaders/GLTFLoader';
2
+ import { GLTF } from 'three/examples/jsm/loaders/GLTFLoader.js';
3
3
  import { VRMSchema } from '../types';
4
4
  /**
5
5
  * Options for a [[VRMMaterialImporter]] instance.
@@ -1,9 +1,13 @@
1
1
  import * as THREE from 'three';
2
2
  /**
3
+ * COMPAT: pre-r137
3
4
  * Ref: https://github.com/mrdoob/three.js/blob/r136/src/renderers/webgl/WebGLProgram.js#L22
4
5
  */
5
6
  export declare const getEncodingComponents: (encoding: THREE.TextureEncoding) => [string, string];
6
7
  /**
8
+ * COMPAT: pre-r137
9
+ * This function is no longer required beginning from r137
10
+ *
7
11
  * https://github.com/mrdoob/three.js/blob/r136/src/renderers/webgl/WebGLProgram.js#L52
8
12
  */
9
13
  export declare const getTexelDecodingFunction: (functionName: string, encoding: THREE.TextureEncoding) => string;
@@ -1,4 +1,4 @@
1
- import { GLTF } from 'three/examples/jsm/loaders/GLTFLoader';
1
+ import { GLTF } from 'three/examples/jsm/loaders/GLTFLoader.js';
2
2
  import { VRMMeta } from './VRMMeta';
3
3
  import { VRMMetaImporterOptions } from './VRMMetaImporterOptions';
4
4
  /**
@@ -1,5 +1,5 @@
1
1
  import * as THREE from 'three';
2
- import { GLTF } from 'three/examples/jsm/loaders/GLTFLoader';
2
+ import { GLTF } from 'three/examples/jsm/loaders/GLTFLoader.js';
3
3
  import { VRMSchema } from '../types';
4
4
  import { VRMSpringBone } from './VRMSpringBone';
5
5
  import { VRMSpringBoneColliderGroup, VRMSpringBoneColliderMesh } from './VRMSpringBoneColliderGroup';
@@ -32,4 +32,11 @@ export declare class VRMSpringBoneManager {
32
32
  * Reset every spring bone attached to this manager.
33
33
  */
34
34
  reset(): void;
35
+ /**
36
+ * Update worldMatrix of given object, respecting its ancestors.
37
+ * called before update springbone.
38
+ * @param updatedObjectSet Set of node which worldMatrix is updated.
39
+ * @param node target bone node.
40
+ */
41
+ private _updateWorldMatrix;
35
42
  }
@@ -1,4 +1,4 @@
1
- import type { GLTF } from 'three/examples/jsm/loaders/GLTFLoader';
1
+ import type { GLTF } from 'three/examples/jsm/loaders/GLTFLoader.js';
2
2
  import type { GLTFPrimitive } from '../types';
3
3
  /**
4
4
  * Extract primitives ( `THREE.Mesh[]` ) of a node from a loaded GLTF.