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.
This commit is contained in:
Sergey Sharybin 2014-06-30 16:54:52 +06:00
parent 7b5221c6da
commit 0b5fda5678
1 changed files with 1 additions and 1 deletions

View File

@ -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 */