Energy generation around the world is shifting towards renewable sources in response to the climate emergency.