[Bf-blender-cvs] [342cdb03ee0] cycles-x: Fix swapped glossy direct/indirect passes
Brecht Van Lommel
noreply at git.blender.org
Mon Sep 20 20:08:42 CEST 2021
Commit: 342cdb03ee066a47c3e4aed978831c7a07d8c61a
Author: Brecht Van Lommel
Date: Mon Sep 20 20:03:08 2021 +0200
Branches: cycles-x
https://developer.blender.org/rB342cdb03ee066a47c3e4aed978831c7a07d8c61a
Fix swapped glossy direct/indirect passes
===================================================================
M intern/cycles/kernel/kernel_accumulate.h
===================================================================
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);
More information about the Bf-blender-cvs
mailing list