Update index.html
Browse files- index.html +2 -2
index.html
CHANGED
@@ -143,8 +143,8 @@
|
|
143 |
const cube = new THREE.Mesh(geometry, material);
|
144 |
|
145 |
cube.position.set(
|
146 |
-
(x - canvas.width / 2) * cubeSize * 1.2 + Math.random() * 2200 - 100,
|
147 |
-
(canvas.height / 2 - y) * cubeSize * 1.2 + Math.random() * 2200 - 100,
|
148 |
Math.random() * 2200 - 100
|
149 |
);
|
150 |
scene.add(cube);
|
|
|
143 |
const cube = new THREE.Mesh(geometry, material);
|
144 |
|
145 |
cube.position.set(
|
146 |
+
(x - canvas.width / 2) * cubeSize * 1.2 + (Math.random()-0.5) * 2200 - 100,
|
147 |
+
(canvas.height / 2 - y) * cubeSize * 1.2 + (Math.random()-0.5) * 2200 - 100,
|
148 |
Math.random() * 2200 - 100
|
149 |
);
|
150 |
scene.add(cube);
|