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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user