llGetSunDirection
LSLvector llGetSunDirection()
Returns a normalized vector of the direction of the sun in the region.\ Returns the sun's direction on the simulator.
Takes no parameters.
Energy
10
The Linden Scripting Library — what every SL-compatible grid provides.