The process by which radiation energy is absorbed or scattered as it passes through different mediums.