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:
authorJeroen Bakker <jeroen@blender.org>2021-01-05 18:16:18 +0300
committerJeroen Bakker <jeroen@blender.org>2021-01-05 18:34:55 +0300
commit9dbea1db66da5e277e8279811d66096751f38d29 (patch)
tree4fe64c2cb671e0c08f91a37d80c180689c9dec1d /source/blender/compositor/operations/COM_SetAlphaOperation.h
parent357e519575411cc338acfe899fde6e5ea3476801 (diff)
Compositor: Alpha Mode
{D9211} introduced pre-multiplying the color for the keying node. This pre-multiplication should also be done by other keying nodes and should be the default operation for alpha node. This patch will change the logic of keying nodes (Cryptomatte Node, Channel Matte, Chroma Matte, Color Matte, Difference Matte, Distance Matte, Luminance Matte) and breaks old files. The Set alpha node has a mode parameter. This parameter changes the logic to `Apply Mask` the alpha on the RGBA channels of the input color or only replace the alpha channel (old behavior). The replace mode is automatically set for older files. When adding new files the the multiply mode is set. Reviewed By: Sergey Sharybin Differential Revision: https://developer.blender.org/D9630
Diffstat (limited to 'source/blender/compositor/operations/COM_SetAlphaOperation.h')
-rw-r--r--source/blender/compositor/operations/COM_SetAlphaOperation.h45
1 files changed, 0 insertions, 45 deletions
diff --git a/source/blender/compositor/operations/COM_SetAlphaOperation.h b/source/blender/compositor/operations/COM_SetAlphaOperation.h
deleted file mode 100644
index a84fb0f2228..00000000000
--- a/source/blender/compositor/operations/COM_SetAlphaOperation.h
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- *
- * Copyright 2011, Blender Foundation.
- */
-
-#pragma once
-
-#include "COM_NodeOperation.h"
-
-/**
- * this program converts an input color to an output value.
- * it assumes we are in sRGB color space.
- */
-class SetAlphaOperation : public NodeOperation {
- private:
- SocketReader *m_inputColor;
- SocketReader *m_inputAlpha;
-
- public:
- /**
- * Default constructor
- */
- SetAlphaOperation();
-
- /**
- * the inner loop of this program
- */
- void executePixelSampled(float output[4], float x, float y, PixelSampler sampler);
-
- void initExecution();
- void deinitExecution();
-};