Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RenderKit/embree
/ uniformSampleConePDF
Function
uniformSampleConePDF
tutorials/common/math/sampling.h:110–113 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
108
}
109
110
inline float uniformSampleConePDF(const float cosAngle)
111
{
112
return rcp(float(two_pi)*(1.0f - cosAngle));
113
}
114
115
inline float _uniformSampleConePDF(const float cosAngle)
116
{
Callers
4
updateLight
Method · 0.85
Light_SampleRes PointLight_sample
Function · 0.85
Light_EvalRes PointLight_eval
Function · 0.85
DirectionalLight_set
Function · 0.85
Calls
1
rcp
Function · 0.50
Tested by
no test coverage detected