Browse Source

Merge pull request #20923 from Ph0tonic/patch-1

Extract light from control into light section
Mr.doob 4 years ago
parent
commit
de52c8a0ba
2 changed files with 7 additions and 5 deletions
  1. 1 1
      docs/api/en/core/Layers.html
  2. 6 4
      examples/webgl_geometry_convex.html

+ 1 - 1
docs/api/en/core/Layers.html

@@ -69,7 +69,7 @@
 		<p>
 			layers - a Layers object<br /><br />
 
-			Returns true if this and the passed *layers* object are members of the same set of layers.
+			Returns true if this and the passed *layers* object have at least one layer in common.
 		</p>
 
 		<h3>[method:null toggle]( [param:Integer layer] )</h3>

+ 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 );