diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-09-19 16:14:21 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-01-20 13:25:00 +0300 |
commit | a9b92fc29baeb55314f92092293b82b2d8b64d29 (patch) | |
tree | 0f0363f3d37ef531f2b5439ab4ca384039c19431 /intern/cycles/kernel/bvh | |
parent | c526932b31e6de4543e968afdf3bd45a60aa36dc (diff) |
Cycles: Avoid redundant intersection pre-calculation
Diffstat (limited to 'intern/cycles/kernel/bvh')
-rw-r--r-- | intern/cycles/kernel/bvh/qbvh_volume_all.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/intern/cycles/kernel/bvh/qbvh_volume_all.h b/intern/cycles/kernel/bvh/qbvh_volume_all.h index e1ca27a4fae..413f49ec181 100644 --- a/intern/cycles/kernel/bvh/qbvh_volume_all.h +++ b/intern/cycles/kernel/bvh/qbvh_volume_all.h @@ -402,7 +402,6 @@ ccl_device uint BVH_FUNCTION_FULL_NAME(QBVH)(KernelGlobals *kg, # else bvh_instance_pop_factor(kg, object, ray, &P, &dir, &idir, &t_fac); # endif - triangle_intersect_precalc(dir, &isect_precalc); /* Scale isect->t to adjust for instancing. */ for(int i = 0; i < num_hits_in_instance; i++) { (isect_array-i-1)->t *= t_fac; @@ -415,7 +414,6 @@ ccl_device uint BVH_FUNCTION_FULL_NAME(QBVH)(KernelGlobals *kg, # else bvh_instance_pop(kg, object, ray, &P, &dir, &idir, &ignore_t); # endif - triangle_intersect_precalc(dir, &isect_precalc); } if(idir.x >= 0.0f) { near_x = 0; far_x = 1; } else { near_x = 1; far_x = 0; } |