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 <brecht@blender.org>2021-09-20 21:03:08 +0300
committerBrecht Van Lommel <brecht@blender.org>2021-09-20 21:03:08 +0300
commit342cdb03ee066a47c3e4aed978831c7a07d8c61a (patch)
treec1b764b3c9f12ed78a06e2bf9f8553937c34e5d2
parent0afa258b0472ba2294b34e8c62e904d926f4d574 (diff)
Fix swapped glossy direct/indirect passescycles-x
-rw-r--r--intern/cycles/kernel/kernel_accumulate.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/intern/cycles/kernel/kernel_accumulate.h b/intern/cycles/kernel/kernel_accumulate.h
index 35e87d4fbf2..9e12d24dcf4 100644
--- a/intern/cycles/kernel/kernel_accumulate.h
+++ b/intern/cycles/kernel/kernel_accumulate.h
@@ -401,10 +401,10 @@ ccl_device_inline void kernel_accum_light(INTEGRATOR_STATE_CONST_ARGS,
if (path_flag & (PATH_RAY_REFLECT_PASS | PATH_RAY_TRANSMISSION_PASS)) {
/* Indirectly visible through reflection. */
const int glossy_pass_offset = (path_flag & PATH_RAY_REFLECT_PASS) ?
- ((INTEGRATOR_STATE(shadow_path, bounce) == 1) ?
+ ((INTEGRATOR_STATE(shadow_path, bounce) == 0) ?
kernel_data.film.pass_glossy_direct :
kernel_data.film.pass_glossy_indirect) :
- ((INTEGRATOR_STATE(shadow_path, bounce) == 1) ?
+ ((INTEGRATOR_STATE(shadow_path, bounce) == 0) ?
kernel_data.film.pass_transmission_direct :
kernel_data.film.pass_transmission_indirect);