Skip to content

Commit

Permalink
Set the ground to green
Browse files Browse the repository at this point in the history
  • Loading branch information
Croquetx committed Aug 7, 2024
1 parent b263aee commit 9230e1c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@
nozzle.castShadow = true;

this.baseGeometry = new THREE.BoxGeometry( 30, 1, 30 );
this.baseMaterial = new THREE.MeshStandardMaterial( {color: new THREE.Color(0.7,0.7,0.7)} );
this.baseMaterial = new THREE.MeshStandardMaterial( {color: new THREE.Color(0.35,0.75,0.25)} );
this.baseMaterial.side = THREE.DoubleSide;
this.baseMaterial.shadowSide = THREE.DoubleSide;

Expand Down Expand Up @@ -492,7 +492,7 @@
group.add(ambient);

const sun = new THREE.DirectionalLight( 0xffffff, 0.7 );
sun.position.set(100, 100, 100);
sun.position.set(50, 200, 100);
sun.castShadow = true;
sun.shadow.mapSize.width = 4096;
sun.shadow.mapSize.height = 4096;
Expand Down

0 comments on commit 9230e1c

Please sign in to comment.