PcoWSkbVqDnWTu_dm2ix
We use cookies on this site to enhance your user experience
Collapse Sidebar

GeographicLatitude

Lighting

float

The geographic latitude, in degrees, of the scene, influencing the result of Lightings time on the position of the sun and moon.

When calculating the position of the sun, the earth’s tilt is also taken into account.

Changing GeographicLatitude will alter the position of the sun at every Lighting/TimeOfDay. Developers looking to obtain the sun or moon’s position should use Lighting/GetSunDirection or Lighting/GetMoonDirection.


Code Samples


Sun direction

The following code sample is an example of the how the direction of the sun is calculated. This is the calculation that Lighting/GetSunDirection uses.