I was trying to create shadows using a simple directional light & a shadow material, the problem is that the shadows seem to work properly, in a box and when model outside that zone it just disappear ???
image of the shadow at the bounds
here's the code :
var light = new THREE.DirectionalLight(0xffffff, 0);
renderer.shadowMap.enabled = true;
light.position.x = 100;
light.position.y = 150;
light.position.z = 0;
light.castShadow = true;
scene.add(light);
plane.receiveShadow = true;
plane.material = new THREE.ShadowMaterial({color: 0, opacity:1});