This macro is based on Geolight.net from the bonuspack cd. It was modified to take an input of Universal Time by default and latitude and longitude of sun inputs are optional.
To Do: -Accuracy checks -Find out how to light only certain objects so that glyphs behind Earth are not dark.
MODULE GeoLight CATEGORY CISM_DX_General DESCRIPTION Creates a Light Source at a Specific Geographic/Spherical Location INPUT UniversalTime; vector or vector list; [2000 1 1 0 0 0]; Universal Time in Gegorian Calendar [YYYY MM DY HR MIN SEC] INPUT latitude[visible:0]; value list or field or string or string list; {-999}; latitude (degrees north) of light source (UT input ignored if lat and long set) INPUT longitude[visible:0]; value list or field or string or string list; {-999}; longitude (degrees east) of light source (UT input ignored if long and lat set) INPUT altitude; value list or field or string or string list; 150000000; altitude of light source in km above a sphere of a given radius (4th parameter) INPUT radius; value list or field or string or string list; {6382.}; radius of sphere for geographic location of light source INPUT color[visible:0]; vector or string; [1.0 1.0 0.75]; color of light source OUTPUT light; light; resulting light
EXAMPLE VPE: SEE ALSO