commit a8267b9da8eec0203d1840860a6ef9c9c51b2245
parent 7f46565cc10b8dc6b5674e99b059ab6f697ba8b6
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Fri, 28 Jul 2017 10:58:10 +0200
Merge branch 'release-0.2.2'
Diffstat:
3 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
@@ -26,6 +26,11 @@ variable the install directories of its dependencies.
## Release notes
+### Version 0.2.2
+
+- Fix the estimation of the cosine factor for the sampled instances: it was
+ not correctly reported and was thus always equal to 0.
+
### Version 0.2
- Add normal maps to describe spatially varying normals in the tangent space of
diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt
@@ -51,7 +51,7 @@ rcmake_append_runtime_dirs(_runtime_dirs RSys Star3D Star3DUT StarCPR StarSF Sta
################################################################################
set(VERSION_MAJOR 0)
set(VERSION_MINOR 2)
-set(VERSION_PATCH 1)
+set(VERSION_PATCH 2)
set(VERSION ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH})
set(SSOL_FILES_SRC
diff --git a/src/ssol_solver.c b/src/ssol_solver.c
@@ -598,6 +598,7 @@ accum_mc_sampled(struct mc_sampled* dst, struct mc_sampled* src)
dst->Name.weight += src->Name.weight; \
dst->Name.sqr_weight += src->Name.sqr_weight; \
} (void)0
+ ACCUM_WEIGHT(cos_factor);
ACCUM_WEIGHT(shadowed);
#undef ACCUM_WEIGHT
@@ -746,7 +747,7 @@ trace_radiative_path
view_samp, view_rt, ran_sun_dir, ran_sun_wl, thread_ctx->rng, &is_lit);
if(res != RES_OK) goto error;
-if(tracker) {
+ if(tracker) {
/* Add the first point of the starting segment */
if(tracker->sun_ray_length > 0) {
double pos[3], wi[3];