From 942c471ce9692379d6b935b97c6f6019fec0c8a1 Mon Sep 17 00:00:00 2001 From: Manuel Castilla Date: Tue, 14 Sep 2021 17:25:47 +0200 Subject: Compositor: Fix Alpha Over node ignoring emissive colors It was an issue on Full Frame mode only. --- .../blender/compositor/operations/COM_AlphaOverPremultiplyOperation.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source/blender/compositor/operations') 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) { -- cgit v1.2.3