|
|
@@ -50,6 +50,8 @@
|
|
|
const light = new THREE.PointLight( color, intensity, 20 );
|
|
|
light.castShadow = true;
|
|
|
light.shadow.bias = - 0.005; // reduces self-shadowing on double-sided objects
|
|
|
+ light.shadow.mapSize.width = 128;
|
|
|
+ light.shadow.radius = 10;
|
|
|
|
|
|
let geometry = new THREE.SphereGeometry( 0.3, 12, 6 );
|
|
|
let material = new THREE.MeshBasicMaterial( { color: color } );
|
|
|
@@ -107,7 +109,7 @@
|
|
|
renderer.setSize( window.innerWidth, window.innerHeight );
|
|
|
renderer.setAnimationLoop( animate );
|
|
|
renderer.shadowMap.enabled = true;
|
|
|
- renderer.shadowMap.type = THREE.BasicShadowMap;
|
|
|
+ // renderer.shadowMap.type = THREE.BasicShadowMap;
|
|
|
document.body.appendChild( renderer.domElement );
|
|
|
|
|
|
const controls = new OrbitControls( camera, renderer.domElement );
|