Rendering/DayNight

From wowdev
Revision as of 06:09, 24 April 2017 by Fallenoak (talk | contribs) (Adding basic explanation)
Jump to navigation Jump to search

In World of Warcraft, the DayNight system governs most of the general appearance of the world. Things like area lighting, zone lighting, clouds, the sky sphere, stars (ie sky boxes), and so on are all managed by DayNight.

DayNight::SetDirection

DayNight::SetDirection calculates a C3Vector containing the direction for the global light, aka sunDir.