MCPcopy 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
110inline float uniformSampleConePDF(const float cosAngle)
111{
112 return rcp(float(two_pi)*(1.0f - cosAngle));
113}
114
115inline float _uniformSampleConePDF(const float cosAngle)
116{

Callers 4

updateLightMethod · 0.85
DirectionalLight_setFunction · 0.85

Calls 1

rcpFunction · 0.50

Tested by

no test coverage detected