MCPcopy Create free account
hub / github.com/TheRealMJP/BakingLab / UpdateUnitVector

Function UpdateUnitVector

BakingLab/AppSettings.h:528–535  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

526 }
527
528 inline void UpdateUnitVector()
529 {
530 Float3 newDir;
531 newDir.x = cos(DegToRad(SunAzimuth)) * cos(DegToRad(SunElevation));
532 newDir.y = sin(DegToRad(SunElevation));
533 newDir.z = sin(DegToRad(SunAzimuth)) * cos(DegToRad(SunElevation));
534 SunDirection.SetValue(newDir);
535 }
536
537 inline uint32 NumMSAASamples(MSAAModes mode)
538 {

Callers 1

UpdateUIFunction · 0.85

Calls 4

cosFunction · 0.85
DegToRadFunction · 0.85
sinFunction · 0.85
SetValueMethod · 0.45

Tested by

no test coverage detected