We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6982a00 commit 00cbf0bCopy full SHA for 00cbf0b
src/main.ts
@@ -90,12 +90,12 @@ const mat = new THREE.MeshStandardMaterial(
90
);
91
// === Scene setup ===
92
async function init() {
93
- const tile_mesh = (await loadGLB("/models/box.glb")).children[0]!;
94
-
+ // const tile_mesh = (await loadGLB("/models/box.glb")).children[0]!;
+ const tile_mesh = new THREE.BoxGeometry(1, 1, 1);
95
for (let x = 0; x < boardSize; x++) {
96
for (let z = 0; z < boardSize; z++) {
97
98
- const tile = tile_mesh.clone() as THREE.Mesh;
+ const tile = new THREE.Mesh(tile_mesh);
99
tile.scale.multiplyScalar(0.98);
100
//tile.castShadow = false;
101
//tile.receiveShadow = true;
0 commit comments