Compositor: Fix Alpha Over node ignoring emissive colors

It was an issue on Full Frame mode only.
This commit is contained in:
Manuel Castilla 2021-09-14 17:25:47 +02:00
parent 257c7753e9
commit 942c471ce9
1 changed files with 2 additions and 1 deletions

View File

@ -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) {