소스 검색

Extract light from control into light section

Wermeille Bastien 4 년 전
부모
커밋
1a6d8e3e92
1개의 변경된 파일6개의 추가작업 그리고 4개의 파일을 삭제
  1. 6 4
      examples/webgl_geometry_convex.html

+ 6 - 4
examples/webgl_geometry_convex.html

@@ -43,11 +43,13 @@
 				controls.minDistance = 20;
 				controls.maxDistance = 50;
 				controls.maxPolarAngle = Math.PI / 2;
-
+				
+				// ambient light
+				
 				scene.add( new THREE.AmbientLight( 0x222222 ) );
-
-				// light
-
+				
+				// point light
+				
 				const light = new THREE.PointLight( 0xffffff, 1 );
 				camera.add( light );