I was more interested on the formulas to calculate the position of a light given the date and time. I did a search two days ago but couldn't found a good example.
The idea is have a similar function on Vue with it's own sun, so it will be easier to match it with KRay Sun.
David
There are no formulas for this in the script. However it should all be in the paper I posted.