MCPcopy Create free account
hub / github.com/RenderKit/embree / powerCosineSampleHemispherePDF

Function powerCosineSampleHemispherePDF

tutorials/common/math/sampling.h:90–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88}
89
90inline 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
95inline float powerCosineSampleHemispherePDF(const Vec3fa& dir, const float n) // TODO: order of arguments
96{

Callers 2

OBJMaterial__sampleFunction · 0.85
sampleFunction · 0.85

Calls 1

powFunction · 0.50

Tested by

no test coverage detected