diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-04-29 23:20:17 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-04-29 23:20:17 +0300 |
commit | 7aab5c6ca99c04447dc57645d781e9e445be8616 (patch) | |
tree | aa96f962ab2ce5a4aa906a4db6ff8cfcbabe8be0 /intern | |
parent | e5f3193df30edbdcbc7111c1e3b9ccf7aa6ddfe2 (diff) |
Cycles: Fix wrong termination criteria in SSS volume stack update
Another issue spotted with Thomas.
Diffstat (limited to 'intern')
-rw-r--r-- | intern/cycles/kernel/kernel_volume.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/intern/cycles/kernel/kernel_volume.h b/intern/cycles/kernel/kernel_volume.h index 3d3d871a702..32c7e4eef09 100644 --- a/intern/cycles/kernel/kernel_volume.h +++ b/intern/cycles/kernel/kernel_volume.h @@ -1107,8 +1107,8 @@ ccl_device void kernel_volume_stack_update_for_subsurface(KernelGlobals *kg, Ray volume_ray = *ray; Intersection isect; int step = 0; - while(step < VOLUME_STACK_SIZE && - scene_intersect_volume(kg, &volume_ray, &isect)) + while(step < 2 * VOLUME_STACK_SIZE && + scene_intersect_volume(kg, &volume_ray, &isect)) { ShaderData sd; shader_setup_from_ray(kg, &sd, &isect, &volume_ray, 0, 0); |