diff options
author | Sergey Sharybin <sergey@blender.org> | 2020-10-22 12:13:34 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey@blender.org> | 2020-10-22 12:57:01 +0300 |
commit | f68c3d557aa847743b09d8b837278ea785ec40f6 (patch) | |
tree | 225ce03a4eef0a3a74c5e418a202c32a8d26b17d /source/blender/makesdna | |
parent | 6c178bf439d5701b4bbedd6cf1f656b9cccc7177 (diff) |
Compositor: Ensure keying node result is pre-multiplied
Historically the result of the keying node was violating alpha
pre-multiplication rules in Blender: it was simply overriding
the alpha channel of input.
This change makes it so keying node mixes alpha into the input,
which solves the following issues:
- The result is properly pre-multiplied, no need in separate
alpha-convert node anymore.
- Allows to more easily stack keying nodes.
This usecase was never really investigated, but since previously
alpha is always overwritten it was never possible to easily stack
nodes. Now it is at something to be tried.
Unfortunately, this breaks compatibility with existing files, where
alpha-convert node is to be manually removed.
From implementation side this is done as a dedicated operation since
there was no ready-to-use operation. Maybe in the future it might
be replaced with some sort of vector math node.
Reviewed By: brecht
Differential Revision: https://developer.blender.org/D9211
Diffstat (limited to 'source/blender/makesdna')
0 files changed, 0 insertions, 0 deletions