A novel thin-film technology enables solar panels to generate electricity from both sunlight and raindrops.