While solar panels perform best in direct sunlight, they can still generate power on cloudy days in the UK. However, the energy output will be lower compared to sunny days.