Browse Source

fix camera

Gregg (Greggman/GMan) Tavares 7 years ago
parent
commit
c101b3716f

+ 1 - 1
threejs/threejs-scenegraph-sun-earth-orbit.html

@@ -32,7 +32,7 @@ function main() {
   const zNear = 0.1;
   const zFar = 1000;
   const camera = new THREE.PerspectiveCamera(fov, aspect, zNear, zFar);
-  camera.position.set(0, 50, 0);
+  camera.position.set(0, 150, 0);
   camera.up.set(0, 0, 1);
   camera.lookAt(0, 0, 0);
 

+ 2 - 2
threejs/threejs-scenegraph-sun-earth.html

@@ -32,7 +32,7 @@ function main() {
   const zNear = 0.1;
   const zFar = 1000;
   const camera = new THREE.PerspectiveCamera(fov, aspect, zNear, zFar);
-  camera.position.set(0, 150, 0);
+  camera.position.set(0, 50, 0);
   camera.up.set(0, 0, 1);
   camera.lookAt(0, 0, 0);
 
@@ -42,7 +42,7 @@ function main() {
     const color = 0xFFFFFF;
     const intensity = 3;
     const light = new THREE.PointLight(color, intensity);
-    scene.add(light);
+    scene.add(light);/* j */
   }
 
   const objects = [];