Преглед на файлове

Fix mismatch info

I should have sent pull request together, but I discovered this later.

same as previous, `light` should be child of `camera` not `scene`.
Seemspyo преди 5 години
родител
ревизия
a0656c6b5a
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      threejs/threejs-multiple-scenes-copy-canvas.html

+ 1 - 1
threejs/threejs-multiple-scenes-copy-canvas.html

@@ -80,7 +80,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);
     }
 
     return {scene, camera, controls};