소스 검색

Update index.js

I tested it on my local machine. Now the Envelopment map is downloaded correctly
tolkanabroski 9 년 전
부모
커밋
4478df73d9
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      Playground/index.js

+ 2 - 2
Playground/index.js

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