Cycles: better path termination for transparency.
[blender.git] / intern / cycles / kernel / kernel_subsurface.h
index 134f362f5e6ca350ba523316ca66c5efedc7dad1..e8553d84547d615f443bcdb924ffbf44c032413e 100644 (file)
@@ -146,7 +146,7 @@ ccl_device void subsurface_color_bump_blur(KernelGlobals *kg,
 
        if(bump || texture_blur > 0.0f) {
                /* average color and normal at incoming point */
-               shader_eval_surface(kg, sd, state, state->flag, kernel_data.integrator.max_closures);
+               shader_eval_surface(kg, sd, state, state->flag);
                float3 in_color = shader_bssrdf_sum(sd, (bump)? N: NULL, NULL);
 
                /* we simply divide out the average color and multiply with the average