diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-03-25 00:30:43 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-03-25 00:33:49 +0300 |
commit | 87cff57207ca05602794e5dd1d7f08cd7818fbb6 (patch) | |
tree | f4542ede2f23936609ae25119f238e2b7e5764aa /intern/cycles/kernel/closure/bsdf_diffuse.h | |
parent | 41ed59e0ebe23d99f3cc394d03ff629417e6115a (diff) |
Fix T44123: Cycles SSS renders black in recent builds
Issue was introduced in 01ee21f where i didn't notice *_setup()
function only doing partial initialization, and some of parameters
are expected to be initialized by callee function.
This was hitting only some setups, so tests with benchmark scenes
didn't unleash issues. Now it should all be fine.
This is to go to the 2.74 branch and we actually might re-AHOY.
Diffstat (limited to 'intern/cycles/kernel/closure/bsdf_diffuse.h')
-rw-r--r-- | intern/cycles/kernel/closure/bsdf_diffuse.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/intern/cycles/kernel/closure/bsdf_diffuse.h b/intern/cycles/kernel/closure/bsdf_diffuse.h index 29725c5b5da..4b29bb096d1 100644 --- a/intern/cycles/kernel/closure/bsdf_diffuse.h +++ b/intern/cycles/kernel/closure/bsdf_diffuse.h @@ -40,8 +40,6 @@ CCL_NAMESPACE_BEGIN ccl_device int bsdf_diffuse_setup(ShaderClosure *sc) { sc->type = CLOSURE_BSDF_DIFFUSE_ID; - sc->data0 = 0.0f; - sc->data1 = 0.0f; return SD_BSDF|SD_BSDF_HAS_EVAL; } @@ -85,8 +83,6 @@ ccl_device int bsdf_diffuse_sample(const ShaderClosure *sc, float3 Ng, float3 I, ccl_device int bsdf_translucent_setup(ShaderClosure *sc) { sc->type = CLOSURE_BSDF_TRANSLUCENT_ID; - sc->data0 = 0.0f; - sc->data1 = 0.0f; return SD_BSDF|SD_BSDF_HAS_EVAL; } |