|
@@ -58,6 +58,7 @@
|
|
|
renderer.setClearColor( 0x000000 );
|
|
|
renderer.setPixelRatio( devicePixelRatio );
|
|
|
renderer.setSize( width, height );
|
|
|
+ renderer.useLegacyLights = false;
|
|
|
document.body.appendChild( renderer.domElement );
|
|
|
|
|
|
camera = new THREE.PerspectiveCamera( 65, width / height, 3, 10 );
|
|
@@ -68,25 +69,25 @@
|
|
|
group = new THREE.Object3D();
|
|
|
scene.add( group );
|
|
|
|
|
|
- const light = new THREE.PointLight( 0xefffef, 0.8 );
|
|
|
- light.position.z = 70;
|
|
|
- light.position.y = - 70;
|
|
|
- light.position.x = - 70;
|
|
|
+ const light = new THREE.PointLight( 0xefffef, 500 );
|
|
|
+ light.position.z = 10;
|
|
|
+ light.position.y = - 10;
|
|
|
+ light.position.x = - 10;
|
|
|
scene.add( light );
|
|
|
|
|
|
- const light2 = new THREE.PointLight( 0xffefef, 0.8 );
|
|
|
- light2.position.z = 70;
|
|
|
- light2.position.x = - 70;
|
|
|
- light2.position.y = 70;
|
|
|
+ const light2 = new THREE.PointLight( 0xffefef, 500 );
|
|
|
+ light2.position.z = 10;
|
|
|
+ light2.position.x = - 10;
|
|
|
+ light2.position.y = 10;
|
|
|
scene.add( light2 );
|
|
|
|
|
|
- const light3 = new THREE.PointLight( 0xefefff, 0.8 );
|
|
|
- light3.position.z = 70;
|
|
|
- light3.position.x = 70;
|
|
|
- light3.position.y = - 70;
|
|
|
+ const light3 = new THREE.PointLight( 0xefefff, 500 );
|
|
|
+ light3.position.z = 10;
|
|
|
+ light3.position.x = 10;
|
|
|
+ light3.position.y = - 10;
|
|
|
scene.add( light3 );
|
|
|
|
|
|
- const light4 = new THREE.AmbientLight( 0xffffff, 0.05 );
|
|
|
+ const light4 = new THREE.AmbientLight( 0xffffff, 0.2 );
|
|
|
scene.add( light4 );
|
|
|
|
|
|
const geometry = new THREE.SphereGeometry( 3, 48, 24 );
|