| 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 | { |
no test coverage detected