Rain itself doesn’t affect solar panel output, but the heavy cloud cover that accompanies rain does. When rain clouds are blocking sunlight and darkening the sky, system output will be 40–90% lower.
Despite that, though precipitation can cause short-term output losses, rainfall actually has a positive side effect: it helps to clean the solar panels. If you live in a dusty climate, the solar output boost from a good downpour can be significant.