diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2017-11-22 02:49:12 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2017-11-22 03:59:21 +0300 |
commit | d77f1d65380d9c3a80aafcccb3b59891bd56f63b (patch) | |
tree | 59841316eac488e1e3291e76c8dcfcbe22170bb9 /intern/cycles/kernel/svm/svm_bevel.h | |
parent | 5f4058ddbcc2e5250e3f9e2d5e16960f3b611b4c (diff) |
Fix T53313: bevel shader with transmission render artifacts.
Diffstat (limited to 'intern/cycles/kernel/svm/svm_bevel.h')
-rw-r--r-- | intern/cycles/kernel/svm/svm_bevel.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/kernel/svm/svm_bevel.h b/intern/cycles/kernel/svm/svm_bevel.h index 65afe1f74ec..bbbc8dce2cf 100644 --- a/intern/cycles/kernel/svm/svm_bevel.h +++ b/intern/cycles/kernel/svm/svm_bevel.h @@ -198,7 +198,7 @@ ccl_device_noinline float3 svm_bevel( /* Normalize. */ float3 N = safe_normalize(sum_N); - return is_zero(N) ? sd->N : N; + return is_zero(N) ? sd->N : (sd->flag & SD_BACKFACING) ? -N : N; } ccl_device void svm_node_bevel( |