Get changing light color of sun in sky.js shader?

I also seem to have gotten 90% of the way towards getting the light colours from the sun and sky dynamically - code here: Getting realistic light colours from three sky shader