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 c921c3bcd0
commit c040dedc12

@ -605,8 +605,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;