diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2017-09-06 14:46:27 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2017-09-06 14:51:48 +0300 |
commit | 2d407fc288bbdf840d81bcc20fcfca60b9d14d4e (patch) | |
tree | 34ee8b7e4c2fec51bc746faa2f407721d32c6b6f | |
parent | dd8016f7081fb502b969b3c1f7512e00466879eb (diff) |
Fix T52661: mesh light shader using backfacing not working, after new sampling.
-rw-r--r-- | intern/cycles/kernel/kernel_light.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/kernel/kernel_light.h b/intern/cycles/kernel/kernel_light.h index e481468ea18..59db6cbd430 100644 --- a/intern/cycles/kernel/kernel_light.h +++ b/intern/cycles/kernel/kernel_light.h @@ -891,7 +891,7 @@ ccl_device_forceinline void triangle_light_sample(KernelGlobals *kg, int prim, i /* flip normal if necessary */ const int object_flag = kernel_tex_fetch(__object_flag, object); - if(!(object_flag & SD_OBJECT_NEGATIVE_SCALE_APPLIED)) { + if(object_flag & SD_OBJECT_NEGATIVE_SCALE_APPLIED) { ls->Ng = -ls->Ng; } ls->eval_fac = 1.0f; |