blender/intern/cycles/kernel/sample
Weizhen Huang 8d6b935466 Fix #144711: Cycles: rescale throughput when density is above the majorant
The one-sample Monte Carlo estimator of the radiative transfer equation
is
       <L> = T(t) / p(t) * (L_e + σ_s * L_s + σ_n * L),
Which means we can also use another p(t) than majorant * exp(-majorant * t)
for sampling the distance. Thus, we use the baked σ_max for distance
sampling, but adjust the majorant when we encounter a density that is
larger than σ_max.

Note that this is not really unbiased because such scaling is not always
applied, but seems to work well in practice when the majorant is
reasonable.

Pull Request: https://projects.blender.org/blender/blender/pulls/146589
2025-09-23 11:17:19 +02:00
..
lcg.h Cycles: use one-tap stochastic interpolation for volume 2025-08-14 15:22:44 +02:00
mapping.h Fix #144711: Cycles: rescale throughput when density is above the majorant 2025-09-23 11:17:19 +02:00
mis.h Refactor: Cycles: Add const keyword to more function parameters 2025-01-03 10:23:24 +01:00
pattern.h Build: Cycles fails to build with debug correlation macro 2025-05-26 10:59:49 +02:00
sobol_burley.h Cleanup: use full sentences in text editor code-comments 2025-08-02 13:33:05 +10:00
tabulated_sobol.h Refactor: Cycles: Add const keyword to more function parameters 2025-01-03 10:23:24 +01:00
util.h Refactor: Cycles: Add const keyword to more function parameters 2025-01-03 10:23:24 +01:00