diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-10-27 11:16:04 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-10-28 00:43:06 +0300 |
commit | 6a529e14f4c25fc20b797799b602472d3a22a0f9 (patch) | |
tree | d94d60107dc8540312c7f3a217e01a7f4174216e /intern/cycles/kernel/kernel_types.h | |
parent | c07c066685658fc5a9f070ab9f9e8fb97926568a (diff) |
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.
Diffstat (limited to 'intern/cycles/kernel/kernel_types.h')
-rw-r--r-- | intern/cycles/kernel/kernel_types.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/intern/cycles/kernel/kernel_types.h b/intern/cycles/kernel/kernel_types.h index 740a5f1f5d3..1d71e6435db 100644 --- a/intern/cycles/kernel/kernel_types.h +++ b/intern/cycles/kernel/kernel_types.h @@ -39,6 +39,7 @@ CCL_NAMESPACE_BEGIN #define LIGHT_SIZE 5 #define FILTER_TABLE_SIZE 256 #define RAMP_TABLE_SIZE 256 +#define SHUTTER_TABLE_SIZE 256 #define PARTICLE_SIZE 5 #define TIME_INVALID FLT_MAX @@ -813,6 +814,9 @@ typedef struct KernelCamera { * Used for camera zoom motion blur, */ PerspectiveMotionTransform perspective_motion; + + int shutter_table_offset; + int pad; } KernelCamera; typedef struct KernelFilm { |