diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2014-06-30 14:54:52 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2014-06-30 15:00:51 +0400 |
commit | 0b5fda56781027fbfbc0bc9cad4f99663ce034d5 (patch) | |
tree | 2bcf39bf065f18f9e54600662d76a58688973056 | |
parent | 7b5221c6dab6c5d45b358865e8839c3c7e3d4fa6 (diff) |
Condition was inverted in the previous transparent shadows commit
Handbook example what happens when you've got loads of patches
and not double-check stuff before committing.
-rw-r--r-- | intern/cycles/kernel/kernel_shadow.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/kernel/kernel_shadow.h b/intern/cycles/kernel/kernel_shadow.h index 3d76f4321d3..439e8bbd585 100644 --- a/intern/cycles/kernel/kernel_shadow.h +++ b/intern/cycles/kernel/kernel_shadow.h @@ -66,7 +66,7 @@ ccl_device_inline bool shadow_blocked(KernelGlobals *kg, PathState *state, Ray * if(kernel_data.integrator.transparent_shadows) { /* check transparent bounces here, for volume scatter which can do * lighting before surface path termination is checked */ - if(state->transparent_bounce < kernel_data.integrator.transparent_max_bounce) + if(state->transparent_bounce >= kernel_data.integrator.transparent_max_bounce) return true; /* intersect to find an opaque surface, or record all transparent surface hits */ |