|
@@ -58,14 +58,14 @@
|
|
|
scene.add( directionalLight );
|
|
scene.add( directionalLight );
|
|
|
|
|
|
|
|
const pointLight1 = new THREE.Mesh( new THREE.SphereGeometry( 4, 8, 8 ), new THREE.MeshBasicMaterial( { color: 0xc1c1c1 } ) );
|
|
const pointLight1 = new THREE.Mesh( new THREE.SphereGeometry( 4, 8, 8 ), new THREE.MeshBasicMaterial( { color: 0xc1c1c1 } ) );
|
|
|
- pointLight1.add( new THREE.PointLight( 0xc1c1c1, 4.0 ) );
|
|
|
|
|
|
|
+ pointLight1.add( new THREE.PointLight( 0xc1c1c1, 4.0, 0, 0 ) );
|
|
|
scene.add( pointLight1 );
|
|
scene.add( pointLight1 );
|
|
|
pointLight1.position.x = 0;
|
|
pointLight1.position.x = 0;
|
|
|
pointLight1.position.y = - 50;
|
|
pointLight1.position.y = - 50;
|
|
|
pointLight1.position.z = 350;
|
|
pointLight1.position.z = 350;
|
|
|
|
|
|
|
|
const pointLight2 = new THREE.Mesh( new THREE.SphereGeometry( 4, 8, 8 ), new THREE.MeshBasicMaterial( { color: 0xc1c100 } ) );
|
|
const pointLight2 = new THREE.Mesh( new THREE.SphereGeometry( 4, 8, 8 ), new THREE.MeshBasicMaterial( { color: 0xc1c100 } ) );
|
|
|
- pointLight2.add( new THREE.PointLight( 0xc1c100, 0.75 ) );
|
|
|
|
|
|
|
+ pointLight2.add( new THREE.PointLight( 0xc1c100, 0.75, 0, 0 ) );
|
|
|
scene.add( pointLight2 );
|
|
scene.add( pointLight2 );
|
|
|
pointLight2.position.x = - 100;
|
|
pointLight2.position.x = - 100;
|
|
|
pointLight2.position.y = 20;
|
|
pointLight2.position.y = 20;
|