@driftengine/assets 4.7.3 → 4.8.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/dist/gltfAccessor.js +0 -9
- package/package.json +4 -4
- package/src/gltfAccessor.ts +0 -10
package/dist/gltfAccessor.js
CHANGED
|
@@ -95,12 +95,3 @@ function normalisedScale(componentType) {
|
|
|
95
95
|
return 1;
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
|
-
/**
|
|
99
|
-
* The matrix a skinned primitive is built with: none.
|
|
100
|
-
*
|
|
101
|
-
* A palette entry already carries its joint's inverse bind, so it takes a vertex from model space
|
|
102
|
-
* to where the joint moved it — and `uModel` then places the character. Baking the node's world
|
|
103
|
-
* matrix in as well applies that placement twice and throws the rig across the scene. See
|
|
104
|
-
* `gltfSkin.ts`.
|
|
105
|
-
*/
|
|
106
|
-
const IDENTITY = [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@driftengine/assets",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.8.0",
|
|
4
4
|
"description": "Model readers and the streaming loader for the .drft container",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -27,11 +27,11 @@
|
|
|
27
27
|
],
|
|
28
28
|
"sideEffects": false,
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@driftengine/drft": "4.
|
|
31
|
-
"@driftengine/texture": "4.
|
|
30
|
+
"@driftengine/drft": "4.8.0",
|
|
31
|
+
"@driftengine/texture": "4.8.0"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
|
-
"@driftengine/core": "4.
|
|
34
|
+
"@driftengine/core": "4.8.0"
|
|
35
35
|
},
|
|
36
36
|
"author": "Drift Technologies",
|
|
37
37
|
"repository": {
|
package/src/gltfAccessor.ts
CHANGED
|
@@ -115,13 +115,3 @@ function normalisedScale(componentType: number): number {
|
|
|
115
115
|
return 1;
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
|
-
|
|
119
|
-
/**
|
|
120
|
-
* The matrix a skinned primitive is built with: none.
|
|
121
|
-
*
|
|
122
|
-
* A palette entry already carries its joint's inverse bind, so it takes a vertex from model space
|
|
123
|
-
* to where the joint moved it — and `uModel` then places the character. Baking the node's world
|
|
124
|
-
* matrix in as well applies that placement twice and throws the rig across the scene. See
|
|
125
|
-
* `gltfSkin.ts`.
|
|
126
|
-
*/
|
|
127
|
-
const IDENTITY: readonly number[] = [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1];
|