@galacean/engine-loader 1.3.28 → 1.3.30
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/main.js +11 -11
- package/dist/main.js.map +1 -1
- package/dist/miniprogram.js +11 -11
- package/dist/module.js +11 -11
- package/dist/module.js.map +1 -1
- package/package.json +4 -4
package/dist/main.js
CHANGED
|
@@ -462,18 +462,18 @@ exports.Texture2DDecoder = /*#__PURE__*/ function() {
|
|
|
462
462
|
};
|
|
463
463
|
_this._loadImageBuffer(imagesData[0]).then(function(img) {
|
|
464
464
|
texture2D.setImageSource(img);
|
|
465
|
+
if (mipmap) {
|
|
466
|
+
var _loop = function(i) {
|
|
467
|
+
_this._loadImageBuffer(imagesData[i]).then(function(img) {
|
|
468
|
+
texture2D.setImageSource(img, i);
|
|
469
|
+
onComplete();
|
|
470
|
+
}, reject).catch(reject);
|
|
471
|
+
};
|
|
472
|
+
texture2D.generateMipmaps();
|
|
473
|
+
for(var i = 1; i < mipCount; i++)_loop(i);
|
|
474
|
+
}
|
|
465
475
|
onComplete();
|
|
466
|
-
}, reject);
|
|
467
|
-
if (mipmap) {
|
|
468
|
-
var _loop = function(i1) {
|
|
469
|
-
_this._loadImageBuffer(imagesData[i1]).then(function(img) {
|
|
470
|
-
texture2D.setImageSource(img, i1);
|
|
471
|
-
onComplete();
|
|
472
|
-
}, reject);
|
|
473
|
-
};
|
|
474
|
-
texture2D.generateMipmaps();
|
|
475
|
-
for(var i1 = 1; i1 < mipCount; i1++)_loop(i1);
|
|
476
|
-
}
|
|
476
|
+
}, reject).catch(reject);
|
|
477
477
|
}
|
|
478
478
|
});
|
|
479
479
|
};
|