Radiative transfer in the cloudy atmosphere