Fix incorrect MIS with principled BSDF and specular roughness 0.

This commit is contained in:
Brecht Van Lommel 2017-10-07 21:43:36 +02:00
parent 440d647cc1
commit 866be3423c
Notes: blender-bot 2023-02-14 08:58:01 +01:00
Referenced by issue #54505, Difference in render
1 changed files with 1 additions and 2 deletions

View File

@ -603,8 +603,7 @@ ccl_device int bsdf_microfacet_ggx_sample(KernelGlobals *kg, const ShaderClosure
/* if fresnel is used, calculate the color with reflection_color(...) */
if(use_fresnel) {
*pdf = 1.0f;
*eval = reflection_color(bsdf, *omega_in, m);
*eval *= reflection_color(bsdf, *omega_in, m);
}
label = LABEL_REFLECT | LABEL_SINGULAR;