solstice-solver

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

commit 6282cc9c81992df7f49451731e438ca78a207e75
parent 761a37e4e725c721ef99ea1eb44af2cb56437515
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Wed, 22 Mar 2017 17:59:32 +0100

Fix the path-tracing renderer

Radiative random walks stopped when a transmissive ray was generated.

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

diff --git a/src/ssol_draw_pt.c b/src/ssol_draw_pt.c @@ -216,7 +216,7 @@ Li(struct ssol_scene* scn, f3_set_d3(ray_dir, wi); if(!russian_roulette) { - throughput *= d3_dot(wi, N) * R; + throughput *= fabs(d3_dot(wi, N)) * R; } else { if(ssp_rng_canonical(ctx->rng) >= R) break; throughput *= d3_dot(wi, N);