diff options
Diffstat (limited to 'source/blender/compositor/operations/COM_MapUVOperation.cpp')
-rw-r--r-- | source/blender/compositor/operations/COM_MapUVOperation.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/compositor/operations/COM_MapUVOperation.cpp b/source/blender/compositor/operations/COM_MapUVOperation.cpp index 98b5b650cb9..21d432b9222 100644 --- a/source/blender/compositor/operations/COM_MapUVOperation.cpp +++ b/source/blender/compositor/operations/COM_MapUVOperation.cpp @@ -64,10 +64,12 @@ void MapUVOperation::executePixelSampled(float output[4], float dv = len_v2(deriv[1]); float factor = 1.0f - threshold * (du / m_inputColorProgram->getWidth() + dv / m_inputColorProgram->getHeight()); - if (factor < 0.0f) + if (factor < 0.0f) { alpha = 0.0f; - else + } + else { alpha *= factor; + } /* "premul" */ if (alpha < 1.0f) { |