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:
authorCampbell Barton <ideasman42@gmail.com>2015-04-26 11:31:54 +0300
committerCampbell Barton <ideasman42@gmail.com>2015-04-26 11:31:54 +0300
commitc2f7cffd56afffcceda11813a3dcc0a93d84673a (patch)
tree76c1f5e70b86e3c8a9b8e750be99d1b7ca2996fd /source/blender/compositor
parentd33314393ebb7ce68ee599fb4f3e07bcb7983759 (diff)
Add inverse-square falloff to bmesh, mask & compo.
Diffstat (limited to 'source/blender/compositor')
-rw-r--r--source/blender/compositor/operations/COM_BlurBaseOperation.cpp2
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