Dimming of light by an intervening medium (the Earth's atmosphere or the interstellar medium). It is usually due to both scattering and absorption.