Blender Git Commit Log

Git Commits -> Revision 9a930e9

April 13, 2021, 09:29 (GMT)
Fix T74680: Incorrect mixing in Glare node

The mixing function was designed to give correct results for Mix values of
-1, 0, and +1, but the behavior between these points was not linear. This is
unavoidable, because the function depends on both Mix and Mix^2 (by
multiplying value and mf) so they could not cancel out completely.

The new formula simply calculates the weighted sum without trying to invent
a smooth function.
Value for MixGlareOperation is now passed directly without scaling because
it is then easier to use.
Note that the previous formula performed max() twice for both input image
and the result, now there is just one max() per channel because the glare
input can't be negative.

Reviewed By: jbakker

Differential Revision: https://developer.blender.org/D7138

Commit Details:

Full Hash: 9a930e97da797c4256cae640822deeaebc79ffe6
Parent Commit: 7a81154
Committed By: Falk David
Lines Changed: +14, -15

2 Modified Paths:

/source/blender/compositor/nodes/COM_GlareNode.cc (+1, -1) (Diff)
/source/blender/compositor/operations/COM_MixOperation.cc (+13, -14) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021