Browse Source

Update index.js

I tested it on my local machine. Now the Envelopment map is downloaded correctly
tolkanabroski 8 năm trước cách đây
mục cha
commit
4478df73d9
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      Playground/index.js

+ 2 - 2
Playground/index.js

@@ -299,7 +299,7 @@
             if (textures[index].isCube) {
                 if (textures[index]._extensions) {
                     for (var i = 0; i < 6; i++) {
-                        textures.push({ name: textures[index].name + textures[index]._extensions });
+                        textures.push({ name: textures[index].name + textures[index]._extensions[i] });
                     }
                 }
                 else {
@@ -596,4 +596,4 @@
         }
     };
     xhr.send(null);
-})();
+})();