The angle at which a light strikes an object affects the size and shape of its shadow. Shadows are longer when the light source is at a low angle (side on) and shorter when the light source is at a higher angle (overhead).
In this set of images, the red X marks the light source and the yellow arrow shows the direction of the light.