|
@@ -28,7 +28,7 @@
|
|
renderer.shadowMap.type = THREE.PCFSoftShadowMap; // default THREE.PCFShadowMap
|
|
renderer.shadowMap.type = THREE.PCFSoftShadowMap; // default THREE.PCFShadowMap
|
|
|
|
|
|
//Create a DirectionalLight and turn on shadows for the light
|
|
//Create a DirectionalLight and turn on shadows for the light
|
|
- const light = new THREE.DirectionalLight( 0xffffff, 1, 100 );
|
|
|
|
|
|
+ const light = new THREE.DirectionalLight( 0xffffff, 1 );
|
|
light.position.set( 0, 1, 0 ); //default; light shining from top
|
|
light.position.set( 0, 1, 0 ); //default; light shining from top
|
|
light.castShadow = true; // default false
|
|
light.castShadow = true; // default false
|
|
scene.add( light );
|
|
scene.add( light );
|