| 102 | } |
| 103 | |
| 104 | float SampleableSphericalFunction::Pdf(const Vector &w) const { |
| 105 | const float theta = SphericalTheta(w); |
| 106 | const float phi = SphericalPhi(w); |
| 107 | |
| 108 | return uvDistrib->Pdf(phi * INV_TWOPI, theta * INV_PI) / |
| 109 | (2.f * M_PI * M_PI * sinf(theta)); |
| 110 | } |
| 111 | |
| 112 | float SampleableSphericalFunction::Average() const { |
| 113 | return average; |
nothing calls this directly
no test coverage detected