Skip to content

Commit

Permalink
Update main.js
Browse files Browse the repository at this point in the history
  • Loading branch information
NoTUsR authored Jun 21, 2024
1 parent 4254677 commit c27c359
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ renderer.setPixelRatio(window.devicePixelRatio);

container.appendChild( renderer.domElement );

const light = new THREE.PointLight( 0xff0000, 1, 100 );
light.position.set( 0, 1, 3 );
const directionalLight = new THREE.DirectionalLight( 0xffffff, 1 );
directionalLight.position.set( 0, 1, 3 );
directionalLight.castShadow = true
scene.add( light );

//const light1 = new THREE.AmbientLight(0xFFFFFF, 1);
Expand Down

0 comments on commit c27c359

Please sign in to comment.