Fix T47727: Weird bake results with non integer color values

This commit is contained in:
Sergey Sharybin 2016-05-18 15:08:48 +02:00
parent 7a8bd2eaea
commit f74c7fcca2
Notes: blender-bot 2023-02-14 08:07:43 +01:00
Referenced by issue #47727, Weird bake results with non integer color values
1 changed files with 2 additions and 2 deletions

View File

@ -242,11 +242,11 @@ ccl_device float3 kernel_bake_evaluate_direct_indirect(KernelGlobals *kg,
}
if(is_direct) {
out += safe_divide_color(direct, color);
out += safe_divide_even_color(direct, color);
}
if(is_indirect) {
out += safe_divide_color(indirect, color);
out += safe_divide_even_color(indirect, color);
}
return out;