From 938160f0536b15a3f9f43c83fee9ea2e2ab09edc Mon Sep 17 00:00:00 2001 From: adrien Date: Wed, 9 Aug 2023 20:46:26 +0200 Subject: [PATCH] deeper ground --- main.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/main.js b/main.js index b5448f3..5092d26 100644 --- a/main.js +++ b/main.js @@ -126,7 +126,7 @@ if (!dev) { // Ground -const groundGeometry = new THREE.BoxGeometry(mazeWidth, mazeWidth, 1) +const groundGeometry = new THREE.BoxGeometry(mazeWidth, mazeWidth, 20) const groundMaterial = new THREE.MeshStandardMaterial({ map: loader.load( 'textures/angled-blocks-vegetation/albedo.png', @@ -177,10 +177,10 @@ sideGroundMaterial.map.wrapS = sideGroundMaterial.map.wrapT = THREE.RepeatWrappi sideGroundMaterial.normalMap.wrapS = sideGroundMaterial.normalMap.wrapT = THREE.RepeatWrapping sideGroundMaterial.aoMap.wrapS = sideGroundMaterial.aoMap.wrapT = THREE.RepeatWrapping sideGroundMaterial.roughnessMap.wrapS = sideGroundMaterial.roughnessMap.wrapT = THREE.RepeatWrapping -sideGroundMaterial.map.repeat.set(mazeWidth, 1) -sideGroundMaterial.normalMap.repeat.set(mazeWidth, 1) -sideGroundMaterial.aoMap.repeat.set(mazeWidth, 1) -sideGroundMaterial.roughnessMap.repeat.set(mazeWidth, 1) +sideGroundMaterial.map.repeat.set(mazeWidth, 20) +sideGroundMaterial.normalMap.repeat.set(mazeWidth, 20) +sideGroundMaterial.aoMap.repeat.set(mazeWidth, 20) +sideGroundMaterial.roughnessMap.repeat.set(mazeWidth, 20) sideGroundMaterial.map.rotation = Math.PI sideGroundMaterial.normalMap.rotation = Math.PI sideGroundMaterial.aoMap.rotation = Math.PI @@ -198,7 +198,7 @@ const ground = new THREE.Mesh( ] ) ground.rotation.x = -Math.PI / 2; -ground.position.y = -0.5 +ground.position.y = -10 ground.receiveShadow = true; ground.matrixAutoUpdate = false ground.updateMatrix();