Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2018-03-08 08:19:17 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2018-03-10 06:54:05 +0300
commit623141f339d5066ed6b96ad70ab45fb294e3e612 (patch)
tree4af00e5d967a66829db1bec4bbf369c0529b9bd7 /intern/cycles/kernel/kernel_types.h
parent516e82a90012da3911518103829158215d94215f (diff)
Code refactor: add DecomposedTransform.
This is in preparation of making Transform affine only, and also gives us a little extra type safety so we don't accidentally treat it as a regular 4x4 matrix.
Diffstat (limited to 'intern/cycles/kernel/kernel_types.h')
-rw-r--r--intern/cycles/kernel/kernel_types.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/intern/cycles/kernel/kernel_types.h b/intern/cycles/kernel/kernel_types.h
index 87faa0d0e53..5934ff53f57 100644
--- a/intern/cycles/kernel/kernel_types.h
+++ b/intern/cycles/kernel/kernel_types.h
@@ -1201,12 +1201,15 @@ typedef struct KernelCamera {
ProjectionTransform worldtondc;
Transform worldtocamera;
- MotionTransform motion;
+ DecomposedMotionTransform motion;
/* Stores changes in the projeciton matrix. Use for camera zoom motion
* blur and motion pass output for perspective camera. */
PerspectiveMotionTransform perspective_motion;
+ /* Transforms for motion pass. */
+ MotionTransform pass_motion;
+
int shutter_table_offset;
/* Rolling shutter */
@@ -1430,7 +1433,7 @@ static_assert_align(KernelData, 16);
/* Kernel data structures. */
typedef struct KernelObject {
- MotionTransform tfm;
+ DecomposedMotionTransform tfm;
float surface_area;
float pass_id;