|
@@ -80,7 +80,7 @@ function main() {
|
|
const intensity = 1;
|
|
const intensity = 1;
|
|
const light = new THREE.DirectionalLight(color, intensity);
|
|
const light = new THREE.DirectionalLight(color, intensity);
|
|
light.position.set(-1, 2, 4);
|
|
light.position.set(-1, 2, 4);
|
|
- scene.add(light);
|
|
|
|
|
|
+ camera.add(light);
|
|
}
|
|
}
|
|
|
|
|
|
return {scene, camera, controls};
|
|
return {scene, camera, controls};
|