solstice-solver

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

commit 643459fb2dc5ebe4ef4f3223ad5fff49b8599828
parent 13cf810c98c2620ad9fa5ec7a96fde72d26159e6
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Thu,  9 Mar 2017 16:36:01 +0100

Fix the path-tracing integrator

Stop integration if the radiative path throughput is null.

Diffstat:
Msrc/ssol_draw_pt.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/ssol_draw_pt.c b/src/ssol_draw_pt.c @@ -217,6 +217,8 @@ Li(struct ssol_scene* scn, throughput *= d3_dot(wi, N); } + if(throughput <= 0) break; + if(!russian_roulette) { russian_roulette = throughput < 0.1; }