Cycles: Support user-defined shutter curve
authorSergey Sharybin <sergey.vfx@gmail.com>
Tue, 27 Oct 2015 08:16:04 +0000 (13:16 +0500)
committerSergey Sharybin <sergey.vfx@gmail.com>
Tue, 27 Oct 2015 21:43:06 +0000 (02:43 +0500)
commit6a529e14f4c25fc20b797799b602472d3a22a0f9
treed94d60107dc8540312c7f3a217e01a7f4174216e
parentc07c066685658fc5a9f070ab9f9e8fb97926568a
Cycles: Support user-defined shutter curve

Previously shutter was instantly opening, staying opened for the shutter time
period of time and then instantly closing. This isn't quite how real cameras
are working, where shutter is opening with some curve. Now it is possible to
define user curve for how much shutter is opened across the sampling period
of time.

This could be used for example to make motion blur trails softer.
intern/cycles/kernel/kernel_camera.h
intern/cycles/kernel/kernel_types.h
intern/cycles/render/camera.cpp
intern/cycles/render/camera.h
intern/cycles/render/scene.cpp
intern/cycles/util/util_math_cdf.cpp