Cycles: better path termination for transparency.
[blender.git] / intern / cycles / kernel / kernel_path.h
index 4728a25a3bc6a8bb5c044a1a34a39a050f8db478..aef350b065815e368cc010c1c270e1d9d77dc212 100644 (file)
@@ -446,11 +446,8 @@ ccl_device void kernel_path_indirect(KernelGlobals *kg,
                }
 
                /* Setup and evaluate shader. */
-               shader_setup_from_ray(kg,
-                                     sd,
-                                     &isect,
-                                     ray);
-               shader_eval_surface(kg, sd, state, state->flag, kernel_data.integrator.max_closures);
+               shader_setup_from_ray(kg, sd, &isect, ray);
+               shader_eval_surface(kg, sd, state, state->flag);
                shader_prepare_closures(sd, state);
 
                /* Apply shadow catcher, holdout, emission. */
@@ -610,7 +607,7 @@ ccl_device_forceinline void kernel_path_integrate(
 
                /* Setup and evaluate shader. */
                shader_setup_from_ray(kg, &sd, &isect, ray);
-               shader_eval_surface(kg, &sd, state, state->flag, kernel_data.integrator.max_closures);
+               shader_eval_surface(kg, &sd, state, state->flag);
                shader_prepare_closures(&sd, state);
 
                /* Apply shadow catcher, holdout, emission. */