solstice-solver

Solver library of the solstice app
git clone git://git.meso-star.com/solstice-solver.git
Log | Files | Refs | README | LICENSE

commit 74a0cbcd96f8254f3ef41baa95fa5c3798c391e2
parent 95440d240d759b8b4ab38bb3f9ef82bf37cc288f
Author: Christophe Coustet <christophe.coustet@meso-star.com>
Date:   Fri, 10 Mar 2017 17:16:33 +0100

BugFix: weight/sqr_weight mismatch in MC accum.

Diffstat:
Msrc/ssol_solver.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/ssol_solver.c b/src/ssol_solver.c @@ -657,7 +657,7 @@ trace_radiative_path if(!is_lit) { /* The starting point is not lit */ pt.mc_samp->shadowed.weight += pt.weight; - pt.mc_samp->shadowed.sqr_weight += pt.weight; + pt.mc_samp->shadowed.sqr_weight += pt.weight * pt.weight; thread_ctx->shadowed.weight += pt.weight; thread_ctx->shadowed.sqr_weight += pt.weight * pt.weight; } else {