Returns the result of performing a irradiance/illuminance integral over the portion of the hemisphere covered by a region with angular radius = theta
| 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 | { |
no test coverage detected