Extract light from control into light section
@@ -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>
@@ -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 );