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:
@@ -201,7 +201,7 @@ ccl_device_inline float path_state_continuation_probability(KernelGlobals *kg, c
|
|||||||
|
|
||||||
/* Probalistic termination: use sqrt() to roughly match typical view
|
/* Probalistic termination: use sqrt() to roughly match typical view
|
||||||
* transform and do path termination a bit later on average. */
|
* 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 */
|
/* TODO(DingTo): Find more meaningful name for this */
|
||||||
|
Reference in New Issue
Block a user