[Bf-blender-cvs] [bc5337a05a2] master: Fix T103507: Distant lights partially contribute to wrong lightgroup
Lukas Stockner
noreply at git.blender.org
Fri Jan 6 01:42:56 CET 2023
Commit: bc5337a05a22518051f71f26ac1948e327c2ebd9
Author: Lukas Stockner
Date: Fri Jan 6 01:08:17 2023 +0100
Branches: master
https://developer.blender.org/rBbc5337a05a22518051f71f26ac1948e327c2ebd9
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 a3dec6a7c74..3c01a162d01 100644
--- a/intern/cycles/kernel/integrator/shade_background.h
+++ b/intern/cycles/kernel/integrator/shade_background.h
@@ -180,8 +180,7 @@ ccl_device_inline void integrate_distant_lights(KernelGlobals kg,
/* Write to render buffer. */
guiding_record_background(kg, state, light_eval, mis_weight);
- film_write_surface_emission(
- kg, state, light_eval, mis_weight, render_buffer, kernel_data.background.lightgroup);
+ film_write_surface_emission(kg, state, light_eval, mis_weight, render_buffer, ls.group);
}
}
}
More information about the Bf-blender-cvs
mailing list