|
@@ -737,6 +737,7 @@
|
|
|
const renderer = new THREE.WebGLRenderer( { antialias: true } );
|
|
|
renderer.setPixelRatio( window.devicePixelRatio );
|
|
|
renderer.setSize( window.innerWidth, window.innerHeight );
|
|
|
+ renderer.useLegacyLights = false;
|
|
|
document.body.appendChild( renderer.domElement );
|
|
|
|
|
|
const pmremGenerator = new THREE.PMREMGenerator( renderer );
|
|
@@ -751,15 +752,15 @@
|
|
|
const ambientLight = new THREE.AmbientLight( 0x000000 );
|
|
|
scene.add( ambientLight );
|
|
|
|
|
|
- const light1 = new THREE.PointLight( 0xffffff, 1, 0 );
|
|
|
+ const light1 = new THREE.DirectionalLight( 0xffffff, 3 );
|
|
|
light1.position.set( 0, 200, 0 );
|
|
|
scene.add( light1 );
|
|
|
|
|
|
- const light2 = new THREE.PointLight( 0xffffff, 1, 0 );
|
|
|
+ const light2 = new THREE.DirectionalLight( 0xffffff, 3 );
|
|
|
light2.position.set( 100, 200, 100 );
|
|
|
scene.add( light2 );
|
|
|
|
|
|
- const light3 = new THREE.PointLight( 0xffffff, 1, 0 );
|
|
|
+ const light3 = new THREE.DirectionalLight( 0xffffff, 3 );
|
|
|
light3.position.set( - 100, - 200, - 100 );
|
|
|
scene.add( light3 );
|
|
|
|