[Bf-blender-cvs] [faca2c614b6] blender-v3.3-release: Fix T103507: Distant lights partially contribute to wrong lightgroup
Lukas Stockner
noreply at git.blender.org
Sat Jan 14 02:37:08 CET 2023
Commit: faca2c614b67a1b66e55ad20df5eb30cb009a757
Author: Lukas Stockner
Date: Fri Jan 6 01:08:17 2023 +0100
Branches: blender-v3.3-release
https://developer.blender.org/rBfaca2c614b67a1b66e55ad20df5eb30cb009a757
Fix T103507: Distant lights partially contribute to wrong lightgroup
The the BSDF-sampling half of MIS next-event estimation for distant lights was
using the background lightgroup instead of the lamp's lightgroup.
===================================================================
M intern/cycles/kernel/integrator/shade_background.h
===================================================================
diff --git a/intern/cycles/kernel/integrator/shade_background.h b/intern/cycles/kernel/integrator/shade_background.h
index a7edfffd175..cfae6805f17 100644
--- a/intern/cycles/kernel/integrator/shade_background.h
+++ b/intern/cycles/kernel/integrator/shade_background.h
@@ -185,8 +185,7 @@ ccl_device_inline void integrate_distant_lights(KernelGlobals kg,
/* Write to render buffer. */
const float3 throughput = INTEGRATOR_STATE(state, path, throughput);
- kernel_accum_emission(
- kg, state, throughput * light_eval, render_buffer, kernel_data.background.lightgroup);
+ kernel_accum_emission(kg, state, throughput * light_eval, render_buffer, ls.group);
}
}
}
More information about the Bf-blender-cvs
mailing list