blender/intern/cycles/render/CMakeLists.txt
Thomas Dinges 8b955e9b19 Cycles / Sky Model:
* Replaced the Preetham model with the newer Hosek / Wilkie model:
"An Analytic Model for Full Spectral Sky-Dome Radiance" http://cgg.mff.cuni.cz/projects/SkylightModelling/ 

* We use the sample code data, which comes with the paper, but removed some unnecessary parts, we only need the xyz version.
* New "Albedo" UI paraemeter, to control the ground albedo (between 0 and 1). 
* Works with SVM only atm (CPU and CUDA). 

Example render:
http://www.pasteall.org/pic/show.php?id=57635

ToDo / Open Questions:
* OSL still uses the old model, will be done later. In the meantime it's useful to compare the two models this way.
* The new model needs a much weaker Strength value (0.01), otherwise it's white. Can this be fixed? 
* Code cleanup.
2013-08-17 16:08:03 +00:00

81 lines
929 B
CMake

set(INC
.
../device
../kernel
../kernel/svm
../kernel/osl
../bvh
../util
)
set(INC_SYS
${GLEW_INCLUDE_PATH}
)
set(SRC
attribute.cpp
background.cpp
blackbody.cpp
buffers.cpp
bssrdf.cpp
camera.cpp
film.cpp
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
sky_model.cpp
sobol.cpp
svm.cpp
tables.cpp
tile.cpp
)
set(SRC_HEADERS
attribute.h
background.h
blackbody.h
buffers.h
bssrdf.h
camera.h
film.h
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
sky_model.h
sky_model_data.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})