|
@@ -51,7 +51,7 @@ function main() {
|
|
|
const intensity = 1;
|
|
|
const light = new THREE.DirectionalLight(color, intensity);
|
|
|
light.position.set(-1, 2, 4);
|
|
|
- scene.add(light);
|
|
|
+ camera.add(light);
|
|
|
}
|
|
|
|
|
|
const geometry = new THREE.SphereBufferGeometry(.6, 100, 100);
|