Irradiation effects in a comet's outer layers