forked from bartvdbraak/blender
Fix Cycles bug in RR termination, probability should never be > 1.0.
This causes render differences in some scenes, for example fishy_cat and pabellon scenes render brighter in a few spots. This is an old bug, not due to recent RR changes.
This commit is contained in:
parent
467d92b8f1
commit
d454a44e96
@ -201,7 +201,7 @@ ccl_device_inline float path_state_continuation_probability(KernelGlobals *kg, c
|
||||
|
||||
/* Probalistic termination: use sqrt() to roughly match typical view
|
||||
* transform and do path termination a bit later on average. */
|
||||
return sqrtf(max3(fabs(throughput)));
|
||||
return min(sqrtf(max3(fabs(throughput))), 1.0f);
|
||||
}
|
||||
|
||||
/* TODO(DingTo): Find more meaningful name for this */
|
||||
|
Loading…
Reference in New Issue
Block a user