Update index.html
Browse files- index.html +2 -2
index.html
CHANGED
@@ -109,8 +109,8 @@ function createCubesFromImage() {
|
|
109 |
const cube = new THREE.Mesh(geometry, material);
|
110 |
|
111 |
cube.position.set(
|
112 |
-
(x - canvas.width / 2) * cubeSize * 1.2,
|
113 |
-
(canvas.height / 2 - y) * cubeSize * 1.2,
|
114 |
Math.random() * 2200 - 100
|
115 |
);
|
116 |
scene.add(cube);
|
|
|
109 |
const cube = new THREE.Mesh(geometry, material);
|
110 |
|
111 |
cube.position.set(
|
112 |
+
(x - canvas.width / 2) * cubeSize * 1.2+Math.random() * 2200 - 100,
|
113 |
+
(canvas.height / 2 - y) * cubeSize * 1.2+Math.random() * 2200 - 100,
|
114 |
Math.random() * 2200 - 100
|
115 |
);
|
116 |
scene.add(cube);
|