MCPcopy Create free account
hub / github.com/Bloom-Engine/engine / mis_balance

Function mis_balance

tools/bloom-reference/src/main.rs:1768–1770  ·  view source on GitHub ↗

Balance heuristic for MIS — weights a sample from strategy A by p_a / (p_a + p_b). Standard in PBRT / Eric Veach's thesis.

(pdf_this: f32, pdf_other: f32)

Source from the content-addressed store, hash-verified

1766/// Balance heuristic for MIS — weights a sample from strategy A by
1767/// p_a / (p_a + p_b). Standard in PBRT / Eric Veach's thesis.
1768fn mis_balance(pdf_this: f32, pdf_other: f32) -> f32 {
1769 pdf_this / (pdf_this + pdf_other + 1e-6)
1770}
1771
1772fn trace_path(
1773 scenario: &Scenario,

Callers 1

trace_pathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected