diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2013-02-10 16:20:10 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2013-02-10 16:20:10 +0400 |
commit | 75cbb07507fa39a1c65296321839cdfd245cc8d6 (patch) | |
tree | afebd7b2614e2e86119a7d240ad0623edf5d69fd /source/blender/compositor/operations/COM_ViewerOperation.cpp | |
parent | d0f4a2396b38c122b7e56de83532515ae8fa4381 (diff) |
Added option to composite/viewer nodes which specifys whether alpha input
is straight or not (premultiplied is default).
This is useful in cases when you want to check on output of such nodes
as keying which does have straight alpha output.
Also added missing do_version code to previous compo do_versions.
Diffstat (limited to 'source/blender/compositor/operations/COM_ViewerOperation.cpp')
-rw-r--r-- | source/blender/compositor/operations/COM_ViewerOperation.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/compositor/operations/COM_ViewerOperation.cpp b/source/blender/compositor/operations/COM_ViewerOperation.cpp index d1ac7d74ead..f1ac893bd3f 100644 --- a/source/blender/compositor/operations/COM_ViewerOperation.cpp +++ b/source/blender/compositor/operations/COM_ViewerOperation.cpp @@ -98,6 +98,9 @@ void ViewerOperation::executeRegion(rcti *rect, unsigned int tileNumber) depthbuffer[offset] = depth[0]; } + if (this->m_straightAlpha) + straight_to_premul_v4(buffer + offset4); + offset ++; offset4 += 4; } |