Fix #114260: Compositor sometimes produces straight alpha #114305

Merged
Omar Emara merged 6 commits from OmarEmaraDev/blender:fix-114260 into main 2023-11-06 15:15:33 +01:00

6 Commits

Author SHA1 Message Date
Omar Emara 4f20b898b9 Premultiply alpha after color space conversion 2023-11-02 17:18:22 +02:00
Omar Emara abaf5cda89 Avoid premultiplication in channel packed alpha 2023-11-02 14:46:05 +02:00
Omar Emara 73efc97005 Merge branch 'main' into fix-114260 2023-11-02 13:41:38 +02:00
Omar Emara 7677cfa2a7 Fix straight alpha output in CPU compositor 2023-11-01 15:38:15 +02:00
Omar Emara 80213b9e3d Merge branch 'main' into fix-114260 2023-11-01 13:50:57 +02:00
Omar Emara 0bae72783d Fix #114260: Alpha handling is different in GPU compositor
Alpha in loaded differently in the GPU compositor relative to CPU
compositors.

This is because GPU textures sometimes store straigh alpha, while the
compositor always expects premultiplied alpha, so we need to premultiply
the alpha in those cases.
2023-10-31 10:24:09 +02:00