diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2012-12-02 02:00:25 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2012-12-02 02:00:25 +0400 |
commit | 9865ee7637cd58622329c7dbe05c78bc4fe65308 (patch) | |
tree | 67403fb864a3854e4c2e879085e460c0fe287a7f /intern/cycles | |
parent | 7c0a0bae79bb8f842a575fe83975c6d34d73c64a (diff) |
Fix another cycles SVM issue with closures, was not using correct sample weight
leading to some extra noise compared to a few revisions ago.
Diffstat (limited to 'intern/cycles')
-rw-r--r-- | intern/cycles/kernel/svm/svm_closure.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/kernel/svm/svm_closure.h b/intern/cycles/kernel/svm/svm_closure.h index 564c0957c68..b5bd2b42cb4 100644 --- a/intern/cycles/kernel/svm/svm_closure.h +++ b/intern/cycles/kernel/svm/svm_closure.h @@ -73,7 +73,7 @@ __device_inline ShaderClosure *svm_node_closure_get_bsdf(ShaderData *sd, float m #ifdef __MULTI_CLOSURE__ ShaderClosure *sc = &sd->closure[sd->num_closure]; float3 weight = sc->weight * mix_weight; - float sample_weight = fabsf(average(sc->weight)); + float sample_weight = fabsf(average(weight)); if(sample_weight > 1e-5f && sd->num_closure < MAX_CLOSURE) { sc->weight = weight; |