diff options
Diffstat (limited to 'src/3d/bvh.cc')
| -rw-r--r-- | src/3d/bvh.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/3d/bvh.cc b/src/3d/bvh.cc index 0c6bf9a..5f7abef 100644 --- a/src/3d/bvh.cc +++ b/src/3d/bvh.cc @@ -72,7 +72,8 @@ int build_recursive(std::vector<BVHNode>& nodes, if (extent.z > (axis == 0 ? extent.x : extent.y)) axis = 2; - float split = (centroid_bounds.min[axis] + centroid_bounds.max[axis]) * 0.5f; + float split = + (centroid_bounds.min[axis] + centroid_bounds.max[axis]) * 0.5f; // Partition int mid = start; |
