Absorption of starlight