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:
parent
7b5221c6da
commit
0b5fda5678
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue