mrdoob/three.js — Issue #1067: Much darker scene when adding a shadowmap ?
Author: remoe
Created: 2012-01-10 18:21:34+00:00
State: open

Hi

When i enable shadow with following:

```javascript
this.renderer = new THREE.WebGLRenderer({ antialias: true, clearAlpha: 1 });
this.renderer.sortObjects = true;
this.renderer.setClearColorHex( background_color, 1 );

this.renderer.shadowMapEnabled = true;
this.renderer.shadowMapSoft = true;
this.renderer.shadowMapCullFrontFaces = true;

var light = new THREE.SpotLight( 0xffffff);
light.position.copy(pos);
light.target.position.set( 0, 0, 0 );
light.castShadow = true;

//light.shadowCameraVisible = true;
light.shadowCameraNear = 0.1;
light.shadowCameraFar = 5000;
light.shadowCameraFov = fov*2;

light.shadowMapBias = -0.00125;
light.shadowMapDarkness = 0.5;
light.shadowMapWidth = 1024;
light.shadowMapHeight = 1024;

this.scene.add( light );

```

my scene is much darker then without it. What can i do ?

Thanks.