diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-07-12 20:20:51 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-07-12 20:20:51 +0400 |
commit | a586541d74a3ba9a7c841efa0f06f1da9977ed53 (patch) | |
tree | 88f771055d9a5b7fdc38343d1071ea7245a21264 /source/blender/nodes/intern | |
parent | a470640f2e88c0997b12600b9de652da6aac7444 (diff) |
tweak to color balance after talking with colin and testing other software, lift for values above 1.0 was too intense.
Use: 1 + ((lift-1) * (lift-1)) so 2.0 is still a full lift but 1.x isnt so strong.
Changed color picker to give more precission, we were having to edit the buttons to see what the numbers were.
Diffstat (limited to 'source/blender/nodes/intern')
-rw-r--r-- | source/blender/nodes/intern/CMP_nodes/CMP_colorbalance.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/source/blender/nodes/intern/CMP_nodes/CMP_colorbalance.c b/source/blender/nodes/intern/CMP_nodes/CMP_colorbalance.c index cd614b12794..efd49172f95 100644 --- a/source/blender/nodes/intern/CMP_nodes/CMP_colorbalance.c +++ b/source/blender/nodes/intern/CMP_nodes/CMP_colorbalance.c @@ -124,8 +124,16 @@ static void node_composit_exec_colorbalance(void *data, bNode *node, bNodeStack { NodeColorBalance *n= (NodeColorBalance *)node->storage; int c; + + copy_v3_v3(n->lift_lgg, n->lift); + for (c = 0; c < 3; c++) { - n->lift_lgg[c] = 2.0f - n->lift[c]; + /* tweak to give more subtle results + * values above 1.0 are scaled */ + if(n->lift_lgg[c] > 1.0f) + n->lift_lgg[c] = pow(n->lift_lgg[c] - 1.0f, 2.0f) + 1.0f; + + n->lift_lgg[c] = 2.0f - n->lift_lgg[c]; } } |