blender/intern/cycles/subd/CMakeLists.txt
Mai Lavelle 697fd86506 Cycles: Stitching of subdivided and displaced meshes
This patch stitches the vertices along patch edges so that cracks can
no longer form when applying subdivision or displacement a mesh.

Subpatches are now formed in a way that ensures vertex indices along
subpatch edges are equal for adjacent subpatches. A mapping of vertices
along patch edges is built to preform stitching. Overall performance is
roughly the same, some gains were made in splitting, but some was lost
in stitching.

This fixes:
- T49049 (cracks between patches from material and uv seams)
- T49048 (discontinuous normals with true displacement)

Reviewers: sergey, brecht

Differential Revision: https://developer.blender.org/D3692
2019-08-27 14:27:53 -04:00

33 lines
362 B
CMake

set(INC
..
)
set(INC_SYS
)
set(SRC
subd_dice.cpp
subd_patch.cpp
subd_split.cpp
subd_patch_table.cpp
)
set(SRC_HEADERS
subd_dice.h
subd_patch.h
subd_patch_table.h
subd_split.h
subd_subpatch.h
)
set(LIB
)
include_directories(${INC})
include_directories(SYSTEM ${INC_SYS})
cycles_add_library(cycles_subd "${LIB}" ${SRC} ${SRC_HEADERS})