soiz commited on
Commit
ba7622d
·
verified ·
1 Parent(s): e3ca868

Update index.html

Browse files
Files changed (1) hide show
  1. 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);