This repository has been archived on 2023-10-09. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
blender-archive/source/blender/blenlib/intern
Philipp Oeser 6a5d2f4ea2 Fix blend_color_interpolate_byte returning wrong alpha in certain case
When the combined alpha [the 'tmp' variable having the mixfactor applied
already] - reached zero it was handled like a no-op (for the alpha as
well) and just copied the first color.

So e.g mixing 255/255/255/255 with 0/0/0/0 with a factor of 1.0 gave
alpha of 255, which looks wrong.

cases where tmp gets zero:
src1 alpha:0 src2 alpha:whatever mixfactor 0.0
src1 alpha:whatever src2 alpha:0 mixfactor 1.0
src1 alpha:0 src2 alpha:0 mixfactor whatever

Now set alpha to zero in that case.

ref T81914

Maniphest Tasks: T81914

Differential Revision: https://developer.blender.org/D9357
2020-10-29 09:27:10 +01:00
..
2020-10-19 08:43:08 -07:00
2020-07-02 13:03:46 +10:00
2020-10-19 08:12:33 -07:00
2020-10-19 08:12:33 -07:00
2020-10-19 08:12:33 -07:00
2020-10-19 08:12:33 -07:00
2020-10-19 09:11:00 -07:00
2020-08-19 14:04:36 +10:00
2020-10-19 08:12:33 -07:00
2020-10-19 08:12:33 -07:00
2020-10-19 09:11:00 -07:00
2019-08-12 01:10:43 +10:00
2020-10-19 08:43:08 -07:00
2020-10-27 14:07:34 +11:00
2020-08-03 17:42:45 +02:00
2020-10-19 08:43:08 -07:00
2020-05-09 17:15:43 +10:00
2020-10-19 08:43:08 -07:00
2020-09-10 09:45:25 +10:00
2020-05-09 17:19:28 +10:00
2020-07-19 17:37:02 +10:00
2020-08-02 18:02:20 +10:00
2020-10-19 08:43:08 -07:00