The polarized internal radiation field of a planetary atmosphere