Skip to content

Commit

Permalink
ambient light
Browse files Browse the repository at this point in the history
  • Loading branch information
AlvarezAriel committed May 9, 2024
1 parent 536f181 commit 307eea7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions model.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ const svgScale = 1 / 5000;
const svgPosition = new Vector3(0.55, 0.56, 0.25);

export function loadModel(loader, scene, showRoom = false) {
const light = new THREE.AmbientLight( 0xAAAAAA, 4 ); // soft white light
scene.add( light );

loader.load('Desk.glb', function (gltf) {
applyShadows(gltf.scene);
scene.add(gltf.scene);
Expand Down

0 comments on commit 307eea7

Please sign in to comment.