Skip to content

Commit 63efd80

Browse files
committed
Changed the lighting
1 parent af8c0b5 commit 63efd80

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

js/ModelViewer.js

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,11 @@ function ModelViewer(container) {
4343

4444
var light
4545

46-
light = new THREE.DirectionalLight(0x080808)
47-
light.position.set(2, 10, 1)
46+
light = new THREE.AmbientLight(0xffffff, 0.97)
4847
this.scene.add(light)
4948

50-
light = new THREE.DirectionalLight(0x040404)
51-
light.position.set(1, 8, -2)
52-
this.scene.add(light)
53-
54-
light = new THREE.AmbientLight(0xf3f3f3)
49+
light = new THREE.DirectionalLight(0xffffff, 0.1)
50+
light.position.set(4, 10, 6)
5551
this.scene.add(light)
5652

5753

0 commit comments

Comments
 (0)