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

Function SunIlluminance

BakingLab/AppSettings.cpp:812–821  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

810 }
811
812 Float3 SunIlluminance()
813 {
814 Float3 sunLuminance = SunLuminance();
815
816 // Compute partial integral over the hemisphere in order to compute illuminance
817 float theta = DegToRad(AppSettings::SunSize);
818 float integralFactor = IlluminanceIntegral(theta);
819
820 return sunLuminance * integralFactor;
821 }
822
823 static void UpdateAreaLightUnits()
824 {

Callers 2

RenderHUDMethod · 0.85
RenderMainPassMethod · 0.85

Calls 3

SunLuminanceFunction · 0.85
DegToRadFunction · 0.85
IlluminanceIntegralFunction · 0.85

Tested by

no test coverage detected