MCPcopy Create free account
hub / github.com/LuxCoreRender/LuxCore / PowerHeuristic

Function PowerHeuristic

include/luxrays/utils/mc.h:74–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72 return BalanceHeuristic(1, fPdf, 1, gPdf);
73 }
74 inline float PowerHeuristic(const u_int nf, const float fPdf, const u_int ng, const float gPdf) {
75 const float f = nf * fPdf, g = ng * gPdf;
76 return (f * f) / (f * f + g * g);
77 }
78 inline float PowerHeuristic(const float fPdf, const float gPdf) {
79 return PowerHeuristic(1, fPdf, 1, gPdf);
80 }

Callers 3

DirectLightSamplingMethod · 0.85
DirectHitFiniteLightMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected