Skip to content

Commit

Permalink
Added a floor to the area, bug hunting now.
Browse files Browse the repository at this point in the history
  • Loading branch information
Cresythe authored Jan 4, 2024
1 parent d9d13d8 commit 6e997a1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions fogTesting.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 );

Expand Down

0 comments on commit 6e997a1

Please sign in to comment.