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

Function IlluminanceIntegral

BakingLab/AppSettings.cpp:707–711  ·  view source on GitHub ↗

Returns the result of performing a irradiance/illuminance integral over the portion of the hemisphere covered by a region with angular radius = theta

Source from the content-addressed store, hash-verified

705 // Returns the result of performing a irradiance/illuminance integral over the portion
706 // of the hemisphere covered by a region with angular radius = theta
707 static float IlluminanceIntegral(float theta)
708 {
709 float cosTheta = std::cos(theta);
710 return Pi * (1.0f - (cosTheta * cosTheta));
711 }
712
713 Float3 SunLuminance(bool& cached)
714 {

Callers 3

SunLuminanceFunction · 0.85
SunIlluminanceFunction · 0.85
UpdateAreaLightUnitsFunction · 0.85

Calls 1

cosFunction · 0.85

Tested by

no test coverage detected