From 6e997a103695c86e7868270cb842e0358791ecca Mon Sep 17 00:00:00 2001 From: Corey <106111373+Cresythe@users.noreply.github.com> Date: Thu, 4 Jan 2024 09:32:27 -0500 Subject: [PATCH] Added a floor to the area, bug hunting now. --- fogTesting.html | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/fogTesting.html b/fogTesting.html index e7ef11d..5c42aff 100644 --- a/fogTesting.html +++ b/fogTesting.html @@ -56,7 +56,14 @@ //Plane let PlaneGeo = new THREE.PlaneGeometry(2000,2000); + PlaneGeo.rotateX(-Math.PI /2); + const material = new THREE.MeshStandardMaterial(0x7a7a52); + let floor1 = new THREE.Mesh(planeGeo, material); + floor1.position.y = -50; + floor1.receiveShadow = true; + //Adding objects to Scene + scene.add(floor1); window.addEventListener( 'resize', onWindowResize );