Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2017-11-07 05:28:10 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2017-11-08 00:35:12 +0300
commite74b2293422b91f8c8de8d76fcbb5241caaa7a6b (patch)
tree6666a088d7f62d48cfe741f335b56127178c57e7 /intern/cycles/kernel/kernel_types.h
parent5f2be40658a29b44f66db6369409ac4460d2ea9e (diff)
Fix incorrect MIS weights in Cycles with multiple lights.
This causes some difference in the classroom scene, where ray visibility tricks are used and break the MIS balance. Otherwise there doesn't seem to be much effect, but better to use the right formulas. Problem originally identified by Lukas.
Diffstat (limited to 'intern/cycles/kernel/kernel_types.h')
-rw-r--r--intern/cycles/kernel/kernel_types.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/intern/cycles/kernel/kernel_types.h b/intern/cycles/kernel/kernel_types.h
index 6d177816a98..65cae035f29 100644
--- a/intern/cycles/kernel/kernel_types.h
+++ b/intern/cycles/kernel/kernel_types.h
@@ -1239,8 +1239,8 @@ typedef struct KernelIntegrator {
int num_all_lights;
float pdf_triangles;
float pdf_lights;
- float inv_pdf_lights;
int pdf_background_res;
+ float light_inv_rr_threshold;
/* light portals */
float portal_pdf;
@@ -1298,9 +1298,8 @@ typedef struct KernelIntegrator {
float volume_step_size;
int volume_samples;
- float light_inv_rr_threshold;
-
int start_sample;
+ int pad;
} KernelIntegrator;
static_assert_align(KernelIntegrator, 16);