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
Notes: blender-bot 2023-12-22 20:14:11 +01:00
Referenced by issue #53683, 2.79a release
1 changed files with 1 additions and 2 deletions

View File

@ -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;