x.shadowMapWidth/x.shadowMapHeight,x.shadowCameraNear,x.shadowCameraFar);elseif(xinstanceofTHREE.DirectionalLight)x.shadowCamera=newTHREE.OrthographicCamera(x.shadowCameraLeft,x.shadowCameraRight,x.shadowCameraTop,x.shadowCameraBottom,x.shadowCameraNear,x.shadowCameraFar);else{console.error("Unsupported light type for shadow");continue}e.add(x.shadowCamera);!0===e.autoUpdate&&e.updateMatrixWorld()}x.shadowCameraVisible&&!x.cameraHelper&&(x.cameraHelper=newTHREE.CameraHelper(x.shadowCamera),x.shadowCamera.add(x.cameraHelper));