MCPcopy Create free account
hub / github.com/TheRealMJP/BakingLab / HemisphereMonteCarloFactor

Function HemisphereMonteCarloFactor

BakingLab/MeshBaker.cpp:52–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50}
51
52static float HemisphereMonteCarloFactor(uint64 numSamples)
53{
54 // The area of a unit hemisphere is 2 * Pi, so the PDF is 1 / (2 * Pi)
55 return ((2.0f * Pi) / numSamples);
56}
57
58static float SphereMonteCarloFactor(uint64 numSamples)
59{

Callers 11

FinalResultMethod · 0.85
ProgressiveResultMethod · 0.85
FinalResultMethod · 0.85
ProgressiveResultMethod · 0.85
FinalResultMethod · 0.85
ProgressiveResultMethod · 0.85
FinalResultMethod · 0.85
ProgressiveResultMethod · 0.85
FinalResultMethod · 0.85
ProgressiveResultMethod · 0.85
ProgressiveResultMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected