The task is to improve the shadow function. For that purpose the Earth is regarded as a sphere and the shadows as two cones. The former is taken for the umbra and the latter for the penumbra. After that the influence of the Earth´s atmosphere was taken into account: the astronomic refraction and the atmospheric absorption. The final form of the shadow function gives Eq. (17). The theory is brought to completion by numerical applications.