Rendering/DayNight: Difference between revisions

From wowdev
Jump to navigation Jump to search
(Initial commit)
 
(Adding basic explanation)
Line 1: Line 1:
In World of Warcraft, the <tt>DayNight</tt> 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 <tt>DayNight</tt>.
== DayNight::SetDirection ==
== DayNight::SetDirection ==


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

Revision as of 06:09, 24 April 2017

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.