Spaces:
Running
Running
Update index.html
Browse files- index.html +5 -5
index.html
CHANGED
@@ -40,13 +40,13 @@
|
|
40 |
'the_hidden_city_known_as_civilization4.png',
|
41 |
];
|
42 |
|
43 |
-
Promise.all(imageUrls.map(url => asyncTextureLoader.load(url)))
|
44 |
-
|
45 |
-
|
46 |
// Once all textures are loaded, create cards
|
47 |
createCards();
|
48 |
-
|
49 |
-
|
50 |
|
51 |
function createCards() {
|
52 |
var cardGeometry = new THREE.BoxGeometry(5, 0.1, 7);
|
|
|
40 |
'the_hidden_city_known_as_civilization4.png',
|
41 |
];
|
42 |
|
43 |
+
//Promise.all(imageUrls.map(url => asyncTextureLoader.load(url)))
|
44 |
+
// .then(loadedTextures => {
|
45 |
+
// textures.push(...loadedTextures);
|
46 |
// Once all textures are loaded, create cards
|
47 |
createCards();
|
48 |
+
// })
|
49 |
+
// .catch(error => console.error('Error loading textures:', error));
|
50 |
|
51 |
function createCards() {
|
52 |
var cardGeometry = new THREE.BoxGeometry(5, 0.1, 7);
|