Do solar panels use light or heat to generate electricity?

Confusion over the impact of heat and light on solar [...]