3 Matching Annotations
  1. Feb 2024
    1. You have not configured the shadow frustum for your instance of DirectionalLight correctly. Try it with this code: var dlight = new THREE.DirectionalLight( 0xaabbff, 0.3 ); dlight.position.x = 0; dlight.position.y = 750; dlight.position.z = 0; dlight.castShadow = true; dlight.shadow.camera.top = 2500; dlight.shadow.camera.bottom = - 2500; dlight.shadow.camera.left = - 2500; dlight.shadow.camera.right = 2500; dlight.shadow.camera.near = 1; dlight.shadow.camera.far = 1000; dlight.shadow.mapSize.set( 2048, 2048 );