@rings-webgpu/core 1.0.23 → 1.0.24
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 +2 -2
- package/dist/rings.es.js.map +3 -3
- package/dist/rings.es.max.js +15 -3
- package/dist/rings.umd.js +2 -2
- package/dist/rings.umd.js.map +3 -3
- package/dist/rings.umd.max.js +15 -3
- package/package.json +1 -1
package/dist/rings.umd.max.js
CHANGED
|
@@ -37085,6 +37085,7 @@ else if (typeof exports === 'object')
|
|
|
37085
37085
|
}
|
|
37086
37086
|
}
|
|
37087
37087
|
}
|
|
37088
|
+
const promiseList = [];
|
|
37088
37089
|
for (const key in this.matLibs) {
|
|
37089
37090
|
const mat2 = this.matLibs[key];
|
|
37090
37091
|
if (mat2.textures && mat2.textures.length > 0) {
|
|
@@ -37092,10 +37093,16 @@ else if (typeof exports === 'object')
|
|
|
37092
37093
|
const texUrl = StringUtil.normalizePath(
|
|
37093
37094
|
this.baseUrl + mat2.textures[i]
|
|
37094
37095
|
);
|
|
37095
|
-
|
|
37096
|
+
promiseList.push(Engine3D.res.loadTexture(texUrl).catch(
|
|
37097
|
+
(error) => {
|
|
37098
|
+
console.error(`Failed to load texture: ${texUrl}`, error);
|
|
37099
|
+
return null;
|
|
37100
|
+
}
|
|
37101
|
+
));
|
|
37096
37102
|
}
|
|
37097
37103
|
}
|
|
37098
37104
|
}
|
|
37105
|
+
await Promise.all(promiseList);
|
|
37099
37106
|
sourceData = null;
|
|
37100
37107
|
return true;
|
|
37101
37108
|
}
|
|
@@ -40960,7 +40967,12 @@ else if (typeof exports === 'object')
|
|
|
40960
40967
|
}
|
|
40961
40968
|
let texture = new BitmapTexture2D();
|
|
40962
40969
|
texture.flipY = flipY;
|
|
40963
|
-
|
|
40970
|
+
try {
|
|
40971
|
+
await texture.load(url, loaderFunctions);
|
|
40972
|
+
} catch (error) {
|
|
40973
|
+
console.error(`Failed to load texture: ${url}`, error);
|
|
40974
|
+
return null;
|
|
40975
|
+
}
|
|
40964
40976
|
this._texturePool.set(url, texture);
|
|
40965
40977
|
return texture;
|
|
40966
40978
|
}
|
|
@@ -41260,7 +41272,7 @@ else if (typeof exports === 'object')
|
|
|
41260
41272
|
}
|
|
41261
41273
|
}
|
|
41262
41274
|
|
|
41263
|
-
const version = "1.0.
|
|
41275
|
+
const version = "1.0.23";
|
|
41264
41276
|
|
|
41265
41277
|
class Engine3D {
|
|
41266
41278
|
/**
|