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:
authorManuel Castilla <manzanillawork@gmail.com>2021-09-14 18:25:47 +0300
committerManuel Castilla <manzanillawork@gmail.com>2021-09-19 22:13:40 +0300
commit942c471ce9692379d6b935b97c6f6019fec0c8a1 (patch)
tree1df7a357dd0e6d0d191f43ed41f71f7b90e4fe83
parent257c7753e9beb2cbd34936766d5fc6c4dc441778 (diff)
Compositor: Fix Alpha Over node ignoring emissive colors
It was an issue on Full Frame mode only.
-rw-r--r--source/blender/compositor/operations/COM_AlphaOverPremultiplyOperation.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/compositor/operations/COM_AlphaOverPremultiplyOperation.cc b/source/blender/compositor/operations/COM_AlphaOverPremultiplyOperation.cc
index a57e8c7f8a3..911e8d2df92 100644
--- a/source/blender/compositor/operations/COM_AlphaOverPremultiplyOperation.cc
+++ b/source/blender/compositor/operations/COM_AlphaOverPremultiplyOperation.cc
@@ -62,7 +62,8 @@ void AlphaOverPremultiplyOperation::update_memory_buffer_row(PixelCursor &p)
const float *over_color = p.color2;
const float value = *p.value;
- if (over_color[3] <= 0.0f) {
+ /* Zero alpha values should still permit an add of RGB data. */
+ if (over_color[3] < 0.0f) {
copy_v4_v4(p.out, color1);
}
else if (value == 1.0f && over_color[3] >= 1.0f) {