Cycles: enable light tree again
Bugs that caused wrong renders should be fixed now, and tests that showed minor floating point differences on platforms were tweaked to sidestep the problem. Ref T77889
This commit is contained in:
parent
bc9548da80
commit
7d99c51e17
Notes:
blender-bot
2023-02-13 22:07:48 +01:00
Referenced by issue #77889, Cycles: Many Lights Sampling
|
@ -410,10 +410,10 @@ class CYCLES_RENDER_PT_sampling_lights(CyclesButtonsPanel, Panel):
|
|||
cscene = scene.cycles
|
||||
|
||||
col = layout.column(align=True)
|
||||
#col.prop(cscene, "use_light_tree")
|
||||
col.prop(cscene, "use_light_tree")
|
||||
sub = col.row()
|
||||
sub.prop(cscene, "light_sampling_threshold", text="Light Threshold")
|
||||
#sub.active = not cscene.use_light_tree
|
||||
sub.active = not cscene.use_light_tree
|
||||
|
||||
|
||||
class CYCLES_RENDER_PT_subdivision(CyclesButtonsPanel, Panel):
|
||||
|
|
|
@ -347,7 +347,7 @@ void BlenderSync::sync_integrator(BL::ViewLayer &b_view_layer, bool background)
|
|||
integrator->set_motion_blur(view_layer.use_motion_blur);
|
||||
}
|
||||
|
||||
bool use_light_tree = false; // get_boolean(cscene, "use_light_tree");
|
||||
bool use_light_tree = get_boolean(cscene, "use_light_tree");
|
||||
integrator->set_use_light_tree(use_light_tree);
|
||||
integrator->set_light_sampling_threshold(
|
||||
(use_light_tree) ? 0.0f : get_float(cscene, "light_sampling_threshold"));
|
||||
|
|
Loading…
Reference in New Issue