Is it possible to script/port a Daylight System

Hi
I know we may not need a real daylight system in games, But for Arch Viz, it’s very often required and beneficial, and if combined with a directional light we can create the light/shadow study of any give time .

I guess it would require setting the sun position and the sun intensity and temperature.

Any thoughts?