]> git.sesse.net Git - movit/commit
Make the PaddingEffect border 1-pixel soft.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 5 Sep 2015 22:57:25 +0000 (00:57 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 5 Sep 2015 22:57:25 +0000 (00:57 +0200)
commit82071a94aaff95d2d29d077338085a8fb27e76d1
tree289fa0dd028c084aabeb6d93b2b31212705c6f72
parentfbb1247a1996c6dbe54114eb5cc23dc79e17099c
Make the PaddingEffect border 1-pixel soft.

Note that this is an API break; PaddingEffect now does something else
from what it used to do before when it comes to fractional offsets.
But I feel this is more useful; it allows PaddingEffect to be used
more efficiently for moving things smoothly around.

Also add a concept of border offset which moves the border around
without changing the pixels; useful if you want the subpixel placement
to be done by ResampleEffect (put the integral offset into top/left
and then move the border by the fractional amount it missed).
padding_effect.cpp
padding_effect.frag
padding_effect.h
padding_effect_test.cpp