Fix incorrect MIS with principled BSDF and specular roughness 0.
This commit is contained in:
parent
440d647cc1
commit
866be3423c
Notes:
blender-bot
2023-02-14 08:58:01 +01:00
Referenced by issue #54505, Difference in render
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue