[Bf-blender-cvs] [db989e1f118] master: Fix more Cycles incorrect principled BSDF mixing due to missing initialization.

Brecht Van Lommel noreply at git.blender.org
Sat Feb 3 13:44:17 CET 2018


Commit: db989e1f118071aae6dcd9f29d10182bd5ebed0b
Author: Brecht Van Lommel
Date:   Sat Feb 3 13:29:44 2018 +0100
Branches: master
https://developer.blender.org/rBdb989e1f118071aae6dcd9f29d10182bd5ebed0b

Fix more Cycles incorrect principled BSDF mixing due to missing initialization.

Spotted by Ha Hyung-jin, thanks!

===================================================================

M	intern/cycles/kernel/svm/svm_closure.h

===================================================================

diff --git a/intern/cycles/kernel/svm/svm_closure.h b/intern/cycles/kernel/svm/svm_closure.h
index 7fc96f7e47f..578434792e4 100644
--- a/intern/cycles/kernel/svm/svm_closure.h
+++ b/intern/cycles/kernel/svm/svm_closure.h
@@ -333,6 +333,8 @@ ccl_device void svm_node_closure_bsdf(KernelGlobals *kg, ShaderData *sd, float *
 							}
 
 							bsdf->N = N;
+							bsdf->T = make_float3(0.0f, 0.0f, 0.0f);
+							bsdf->extra = NULL;
 
 							if(distribution == CLOSURE_BSDF_MICROFACET_GGX_GLASS_ID)
 								transmission_roughness = 1.0f - (1.0f - refl_roughness) * (1.0f - transmission_roughness);



More information about the Bf-blender-cvs mailing list