@rings-webgpu/core 1.0.17 → 1.0.18
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/rings.es.js +100 -100
- package/dist/rings.es.js.map +2 -2
- package/dist/rings.es.max.js +14 -13
- package/dist/rings.umd.js +100 -100
- package/dist/rings.umd.js.map +2 -2
- package/dist/rings.umd.max.js +14 -13
- package/package.json +1 -1
package/dist/rings.es.max.js
CHANGED
|
@@ -41057,7 +41057,7 @@ class PostProcessingComponent extends ComponentBase {
|
|
|
41057
41057
|
}
|
|
41058
41058
|
}
|
|
41059
41059
|
|
|
41060
|
-
const version = "1.0.
|
|
41060
|
+
const version = "1.0.18";
|
|
41061
41061
|
|
|
41062
41062
|
class Engine3D {
|
|
41063
41063
|
/**
|
|
@@ -62072,11 +62072,13 @@ class TilesRenderer {
|
|
|
62072
62072
|
transform.rawData[13] = -position.y;
|
|
62073
62073
|
transform.rawData[14] = -position.z;
|
|
62074
62074
|
}
|
|
62075
|
-
const worldTransform =
|
|
62075
|
+
const worldTransform = new Matrix4();
|
|
62076
|
+
worldTransform.copyFrom(transform);
|
|
62076
62077
|
if (parentTile && parentTile.cached.worldTransform) {
|
|
62077
62078
|
worldTransform.multiplyMatrices(parentTile.cached.worldTransform, transform);
|
|
62078
62079
|
}
|
|
62079
|
-
const transformInverse =
|
|
62080
|
+
const transformInverse = new Matrix4();
|
|
62081
|
+
transformInverse.copyFrom(worldTransform);
|
|
62080
62082
|
transformInverse.invert();
|
|
62081
62083
|
tileObj.cached.transfrom = transform;
|
|
62082
62084
|
tileObj.cached.worldTransform = worldTransform;
|
|
@@ -62184,16 +62186,14 @@ class TilesRenderer {
|
|
|
62184
62186
|
const adjustmentTransform = this._upRotationMatrix;
|
|
62185
62187
|
switch (extension.toLowerCase()) {
|
|
62186
62188
|
case "b3dm":
|
|
62187
|
-
|
|
62188
|
-
|
|
62189
|
-
{
|
|
62190
|
-
onProgress: (e) => {
|
|
62191
|
-
},
|
|
62192
|
-
onComplete: (e) => {
|
|
62193
|
-
}
|
|
62189
|
+
const loader = new FileLoader();
|
|
62190
|
+
const parser = await loader.load(fullUrl, B3DMParser, {
|
|
62191
|
+
onProgress: (e) => {
|
|
62194
62192
|
},
|
|
62195
|
-
|
|
62196
|
-
|
|
62193
|
+
onComplete: (e) => {
|
|
62194
|
+
}
|
|
62195
|
+
}, adjustmentTransform);
|
|
62196
|
+
scene = parser.data;
|
|
62197
62197
|
break;
|
|
62198
62198
|
case "i3dm":
|
|
62199
62199
|
scene = await Engine3D.res.loadI3DM(
|
|
@@ -62389,7 +62389,8 @@ class TilesRenderer {
|
|
|
62389
62389
|
break;
|
|
62390
62390
|
}
|
|
62391
62391
|
this._upRotationMatrix = adjustmentTransform;
|
|
62392
|
-
const invertMatrix =
|
|
62392
|
+
const invertMatrix = new Matrix4();
|
|
62393
|
+
invertMatrix.copyFrom(adjustmentTransform);
|
|
62393
62394
|
invertMatrix.invert();
|
|
62394
62395
|
this._applyLocalTransform(this.group.transform, invertMatrix);
|
|
62395
62396
|
}
|