@@ -55,7 +55,7 @@
light.position.set( 200, 100, 150 );
scene.add( light );
- scene.add( new THREE.PointLightHelper( light, 15 ) );
+ scene.add( new THREE.PointLightHelper( light, 1 ) );
const gridHelper = new THREE.GridHelper( 400, 40, 0x0000ff, 0x808080 );
gridHelper.position.y = - 150;
@@ -45,9 +45,9 @@
function createLight( color ) {
- const intensity = 200;
+ const intensity = 400;
- const light = new THREE.PointLight( color, intensity );
+ const light = new THREE.PointLight( color, intensity, 0, 3 );
light.castShadow = true;
light.shadow.bias = - 0.005; // reduces self-shadowing on double-sided objects
light.shadow.mapSize.width = 128;