MCPcopy Create free account
hub / github.com/BabylonJS/BabylonNative / _loop_2

Function _loop_2

Apps/BabylonScripts/babylon.glTF2FileLoader.js:199–208  ·  view source on GitHub ↗
(face)

Source from the content-addressed store, hash-verified

197 var faces = light.specularImages[mipmap];
198 imageData_1[mipmap] = new Array(faces.length);
199 var _loop_2 = function (face) {
200 var specularImageContext = context + "/specularImages/" + mipmap + "/" + face;
201 this_1._loader.logOpen("" + specularImageContext);
202 var index = faces[face];
203 var image = _glTFLoader__WEBPACK_IMPORTED_MODULE_1__["ArrayItem"].Get(specularImageContext, this_1._loader.gltf.images, index);
204 promises.push(this_1._loader.loadImageAsync("#/images/" + index, image).then(function (data) {
205 imageData_1[mipmap][face] = data;
206 }));
207 this_1._loader.logClose();
208 };
209 for (var face = 0; face < faces.length; face++) {
210 _loop_2(face);
211 }

Callers 2

_loop_1Function · 0.85

Calls 1

GetMethod · 0.45

Tested by

no test coverage detected