diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-03-10 02:37:07 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-03-10 06:54:05 +0300 |
commit | 267d8923265a284c5d9a462e1d86305d613fcad8 (patch) | |
tree | 7e0bd31d403a4d878ec65aaac3883bbfea67cc20 /intern/cycles/render/mesh.h | |
parent | 6c4ddfc5d9833b6c4f0ae3da93645556fee97caf (diff) |
Code refactor: motion blur cleanups, preparing for next commit.
Diffstat (limited to 'intern/cycles/render/mesh.h')
-rw-r--r-- | intern/cycles/render/mesh.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/intern/cycles/render/mesh.h b/intern/cycles/render/mesh.h index c0d1513bee0..6042faccad5 100644 --- a/intern/cycles/render/mesh.h +++ b/intern/cycles/render/mesh.h @@ -304,6 +304,11 @@ public: bool has_motion_blur() const; bool has_true_displacement() const; + /* Convert between normalized -1..1 motion time and index + * in the VERTEX_MOTION attribute. */ + float motion_time(int step) const; + int motion_step(float time) const; + /* Check whether the mesh should have own BVH built separately. Briefly, * own BVH is needed for mesh, if: * |