Skip to content

Commit 00cbf0b

Browse files
committed
test3
1 parent 6982a00 commit 00cbf0b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,12 @@ const mat = new THREE.MeshStandardMaterial(
9090
);
9191
// === Scene setup ===
9292
async function init() {
93-
const tile_mesh = (await loadGLB("/models/box.glb")).children[0]!;
94-
93+
// const tile_mesh = (await loadGLB("/models/box.glb")).children[0]!;
94+
const tile_mesh = new THREE.BoxGeometry(1, 1, 1);
9595
for (let x = 0; x < boardSize; x++) {
9696
for (let z = 0; z < boardSize; z++) {
9797

98-
const tile = tile_mesh.clone() as THREE.Mesh;
98+
const tile = new THREE.Mesh(tile_mesh);
9999
tile.scale.multiplyScalar(0.98);
100100
//tile.castShadow = false;
101101
//tile.receiveShadow = true;

0 commit comments

Comments
 (0)