@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.
@@ -41064,7 +41064,7 @@ else if (typeof exports === 'object')
41064
41064
  }
41065
41065
  }
41066
41066
 
41067
- const version = "1.0.17";
41067
+ const version = "1.0.18";
41068
41068
 
41069
41069
  class Engine3D {
41070
41070
  /**
@@ -62079,11 +62079,13 @@ fn frag(){
62079
62079
  transform.rawData[13] = -position.y;
62080
62080
  transform.rawData[14] = -position.z;
62081
62081
  }
62082
- const worldTransform = transform.clone();
62082
+ const worldTransform = new Matrix4();
62083
+ worldTransform.copyFrom(transform);
62083
62084
  if (parentTile && parentTile.cached.worldTransform) {
62084
62085
  worldTransform.multiplyMatrices(parentTile.cached.worldTransform, transform);
62085
62086
  }
62086
- const transformInverse = worldTransform.clone();
62087
+ const transformInverse = new Matrix4();
62088
+ transformInverse.copyFrom(worldTransform);
62087
62089
  transformInverse.invert();
62088
62090
  tileObj.cached.transfrom = transform;
62089
62091
  tileObj.cached.worldTransform = worldTransform;
@@ -62191,16 +62193,14 @@ fn frag(){
62191
62193
  const adjustmentTransform = this._upRotationMatrix;
62192
62194
  switch (extension.toLowerCase()) {
62193
62195
  case "b3dm":
62194
- scene = await Engine3D.res.loadB3DM(
62195
- fullUrl,
62196
- {
62197
- onProgress: (e) => {
62198
- },
62199
- onComplete: (e) => {
62200
- }
62196
+ const loader = new FileLoader();
62197
+ const parser = await loader.load(fullUrl, B3DMParser, {
62198
+ onProgress: (e) => {
62201
62199
  },
62202
- adjustmentTransform
62203
- );
62200
+ onComplete: (e) => {
62201
+ }
62202
+ }, adjustmentTransform);
62203
+ scene = parser.data;
62204
62204
  break;
62205
62205
  case "i3dm":
62206
62206
  scene = await Engine3D.res.loadI3DM(
@@ -62396,7 +62396,8 @@ fn frag(){
62396
62396
  break;
62397
62397
  }
62398
62398
  this._upRotationMatrix = adjustmentTransform;
62399
- const invertMatrix = adjustmentTransform.clone();
62399
+ const invertMatrix = new Matrix4();
62400
+ invertMatrix.copyFrom(adjustmentTransform);
62400
62401
  invertMatrix.invert();
62401
62402
  this._applyLocalTransform(this.group.transform, invertMatrix);
62402
62403
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rings-webgpu/core",
3
- "version": "1.0.17",
3
+ "version": "1.0.18",
4
4
  "description": "Rings webgpu Engine",
5
5
  "main": "index.js",
6
6
  "exports": {