소스 검색

fix camera

Gregg (Greggman/GMan) Tavares 7 년 전
부모
커밋
c101b3716f
2개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 1
      threejs/threejs-scenegraph-sun-earth-orbit.html
  2. 2 2
      threejs/threejs-scenegraph-sun-earth.html

+ 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 = [];