When the Sun is below the horizon, sunlight has no direct path to reach a mountain. Unlike the direct sunlight around sunrise or sunset, the light that causes alpenglow is reflected off airborne precipitation, ice crystals, or particulates in the lower atmosphere. These conditions differentiate between direct sunlight around sunrise or sunset and alpenglow.
