[Bf-blender-cvs] [769ba42] master: Cycles: Fix for the BSDF evaluation init
Sergey Sharybin
noreply at git.blender.org
Sat Sep 6 10:31:38 CEST 2014
Commit: 769ba428999ed13e0f64c9a2335f29a4ccb1e011
Author: Sergey Sharybin
Date: Sat Sep 6 14:30:58 2014 +0600
Branches: master
https://developer.blender.org/rB769ba428999ed13e0f64c9a2335f29a4ccb1e011
Cycles: Fix for the BSDF evaluation init
===================================================================
M intern/cycles/kernel/kernel_accumulate.h
===================================================================
diff --git a/intern/cycles/kernel/kernel_accumulate.h b/intern/cycles/kernel/kernel_accumulate.h
index f493b38..4f759b3 100644
--- a/intern/cycles/kernel/kernel_accumulate.h
+++ b/intern/cycles/kernel/kernel_accumulate.h
@@ -36,7 +36,7 @@ ccl_device_inline void bsdf_eval_init(BsdfEval *eval, ClosureType type, float3 v
if(type == CLOSURE_BSDF_TRANSPARENT_ID)
eval->transparent = value;
- else if(CLOSURE_IS_BSDF_DIFFUSE(type) || CLOSURE_IS_PHASE(type))
+ else if(CLOSURE_IS_BSDF_DIFFUSE(type))
eval->diffuse = value;
else if(CLOSURE_IS_BSDF_GLOSSY(type))
eval->glossy = value;
More information about the Bf-blender-cvs
mailing list