blender/intern/cycles/render/CMakeLists.txt
Brecht Van Lommel de9dffc61e Cycles: initial subsurface multiple scattering support. It's not working as
well as I would like, but it works, just add a subsurface scattering node and
you can use it like any other BSDF.

It is using fully raytraced sampling compatible with progressive rendering
and other more advanced rendering algorithms we might used in the future, and
it uses no extra memory so it's suitable for complex scenes.

Disadvantage is that it can be quite noisy and slow. Two limitations that will
be solved are that it does not work with bump mapping yet, and that the falloff
function used is a simple cubic function, it's not using the real BSSRDF
falloff function yet.

The node has a color input, along with a scattering radius for each RGB color
channel along with an overall scale factor for the radii.

There is also no GPU support yet, will test if I can get that working later.

Node Documentation:
http://wiki.blender.org/index.php/Doc:2.6/Manual/Render/Cycles/Nodes/Shaders#BSSRDF

Implementation notes:
http://wiki.blender.org/index.php/Dev:2.6/Source/Render/Cycles/Subsurface_Scattering
2013-04-01 20:26:52 +00:00

78 lines
923 B
CMake

set(INC
.
../device
../kernel
../kernel/svm
../kernel/osl
../bvh
../util
)
set(INC_SYS
${GLEW_INCLUDE_PATH}
)
set(SRC
attribute.cpp
background.cpp
buffers.cpp
bssrdf.cpp
camera.cpp
film.cpp
# film_response.cpp (code unused)
graph.cpp
image.cpp
integrator.cpp
light.cpp
mesh.cpp
mesh_displace.cpp
nodes.cpp
object.cpp
osl.cpp
particles.cpp
curves.cpp
scene.cpp
session.cpp
shader.cpp
sobol.cpp
svm.cpp
tables.cpp
tile.cpp
)
set(SRC_HEADERS
attribute.h
background.h
buffers.h
bssrdf.h
camera.h
film.h
# film_response.h (code unused)
graph.h
image.h
integrator.h
light.h
mesh.h
nodes.h
object.h
osl.h
particles.h
curves.h
scene.h
session.h
shader.h
sobol.h
svm.h
tables.h
tile.h
)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${RTTI_DISABLE_FLAGS}")
include_directories(${INC})
include_directories(SYSTEM ${INC_SYS})
add_library(cycles_render ${SRC} ${SRC_HEADERS})