mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
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:
parent
8a11f0f3a2
commit
623cb023b9
1 changed files with 1 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue