Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
60
inline float cosineSampleHemispherePDF(const Vec3fa &dir)
61
{
62
return dir.z / float(M_PI);
63
}
64
65
inline float cosineSampleHemispherePDF(float cosTheta)
66
{
Callers
4
Light_SampleRes PointLight_sample
Function · 0.85
Light_SampleRes AmbientLight_sample
Function · 0.85
Light_EvalRes AmbientLight_eval
Function · 0.85
cosineSampleHemisphere
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected