blender/intern/cycles/bvh/CMakeLists.txt
Sergey Sharybin b03e66e75f Cycles: Implement unaligned nodes BVH builder
This is a special builder type which is allowed to orient nodes to
strands direction, hence minimizing their surface area in comparison
with axis-aligned nodes. Such nodes are much more efficient for hair
rendering.

Implementation of BVH builder is based on Embree, and generally idea
there is to calculate axis-aligned SAH and oriented SAH and if SAH
of oriented node is smaller than axis-aligned SAH we create unaligned
node.

We store both aligned and unaligned nodes in the same tree (which
seems to be different from what Embree is doing) so we don't have
any any extra calculations needed to set up hair ray for BVH
traversal, hence avoiding any possible negative effect of this new
BVH nodes type.

This new builder is currently not in use, still need to make BVH
traversal code aware of unaligned nodes.
2016-07-07 17:25:48 +02:00

40 lines
447 B
CMake

set(INC
.
../graph
../kernel
../kernel/svm
../render
../util
../device
)
set(INC_SYS
)
set(SRC
bvh.cpp
bvh_binning.cpp
bvh_build.cpp
bvh_node.cpp
bvh_sort.cpp
bvh_split.cpp
bvh_unaligned.cpp
)
set(SRC_HEADERS
bvh.h
bvh_binning.h
bvh_build.h
bvh_node.h
bvh_params.h
bvh_sort.h
bvh_split.h
bvh_unaligned.h
)
include_directories(${INC})
include_directories(SYSTEM ${INC_SYS})
add_library(cycles_bvh ${SRC} ${SRC_HEADERS})