Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2017-10-07 22:43:36 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2017-10-07 23:10:02 +0300
commitc040dedc124a413c13c62677f7d6aee0fd15668f (patch)
treec90143d107262f5f775d6f014d57f24f47bfc18f /intern/cycles/kernel/closure
parentc921c3bcd0bc7aeaaa418347891798583cd8bad2 (diff)
Fix incorrect MIS with principled BSDF and specular roughness 0.
Diffstat (limited to 'intern/cycles/kernel/closure')
-rw-r--r--intern/cycles/kernel/closure/bsdf_microfacet.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/intern/cycles/kernel/closure/bsdf_microfacet.h b/intern/cycles/kernel/closure/bsdf_microfacet.h
index b12e248f0a3..a780bd0cf28 100644
--- a/intern/cycles/kernel/closure/bsdf_microfacet.h
+++ b/intern/cycles/kernel/closure/bsdf_microfacet.h
@@ -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;