| 88 | } |
| 89 | |
| 90 | inline float powerCosineSampleHemispherePDF(const float cosTheta, const float n) // TODO: order of arguments |
| 91 | { |
| 92 | return (n + 1.0f) * (0.5f / float(M_PI)) * pow(cosTheta, n); |
| 93 | } |
| 94 | |
| 95 | inline float powerCosineSampleHemispherePDF(const Vec3fa& dir, const float n) // TODO: order of arguments |
| 96 | { |
no test coverage detected