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:
Brecht Van Lommel 2017-09-12 02:27:02 +02:00
parent 467d92b8f1
commit d454a44e96
Notes: blender-bot 2023-02-14 06:17:12 +01:00
Referenced by issue #53683, 2.79a release
1 changed files with 1 additions and 1 deletions

View File

@ -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 */