Cycles: Fix light tree sampling of multiple large distant lights

This fixes an issue where the light tree sampling algorithm would
discard light samples from groups of distance lights with an angle
greater than 0 when it shouldn't.

Pull Request: https://projects.blender.org/blender/blender/pulls/108832
This commit is contained in:
Alaska
2023-06-13 15:36:05 +02:00
committed by Sergey Sharybin
parent 8a11f0f3a2
commit 623cb023b9

View File

@@ -316,7 +316,7 @@ ccl_device void light_tree_node_importance(KernelGlobals kg,
return;
}
point_to_centroid = -bcone.axis;
cos_theta_u = fast_cosf(bcone.theta_o);
cos_theta_u = fast_cosf(bcone.theta_o + bcone.theta_e);
distance = 1.0f;
}
else {