diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-04-26 11:31:54 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-04-26 11:31:54 +0300 |
commit | c2f7cffd56afffcceda11813a3dcc0a93d84673a (patch) | |
tree | 76c1f5e70b86e3c8a9b8e750be99d1b7ca2996fd /source/blender/compositor/operations | |
parent | d33314393ebb7ce68ee599fb4f3e07bcb7983759 (diff) |
Add inverse-square falloff to bmesh, mask & compo.
Diffstat (limited to 'source/blender/compositor/operations')
-rw-r--r-- | source/blender/compositor/operations/COM_BlurBaseOperation.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/compositor/operations/COM_BlurBaseOperation.cpp b/source/blender/compositor/operations/COM_BlurBaseOperation.cpp index cbf9bb211c1..07669b1a814 100644 --- a/source/blender/compositor/operations/COM_BlurBaseOperation.cpp +++ b/source/blender/compositor/operations/COM_BlurBaseOperation.cpp @@ -133,6 +133,8 @@ float *BlurBaseOperation::make_dist_fac_inverse(float rad, int size, int falloff case PROP_SHARP: val = val * val; break; + case PROP_INVSQUARE: + val = val * (2.0f - val); case PROP_LIN: /* fall-through */ #ifndef NDEBUG |