While solar panels perform best under direct sunlight, they can still produce solar energy in the shade, during cloudy weather, in the rain, and while it snows. The impact of shade can be mitigated by using half-cell solar panels and MLPE (microinverters and power optimizers).