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

Function cosineSampleHemispherePDF

tutorials/common/math/sampling.h:60–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60inline float cosineSampleHemispherePDF(const Vec3fa &dir)
61{
62 return dir.z / float(M_PI);
63}
64
65inline float cosineSampleHemispherePDF(float cosTheta)
66{

Calls

no outgoing calls

Tested by

no test coverage detected