Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2012-06-09 22:19:41 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2012-06-09 22:19:41 +0400
commit1acd2c58b6ea1bdce3b50385d5955eb4b50b4a93 (patch)
treeb2a31e1bdf5ca0481ef3afee7153134c4cb13272 /source/blender/compositor/operations/COM_KeyingOperation.cpp
parent6b13203a9ca59c0b066327781e7fc3f4bd7dd9cf (diff)
Actually that was an error in on of test formulas. Stick back to original one.
Diffstat (limited to 'source/blender/compositor/operations/COM_KeyingOperation.cpp')
-rw-r--r--source/blender/compositor/operations/COM_KeyingOperation.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/source/blender/compositor/operations/COM_KeyingOperation.cpp b/source/blender/compositor/operations/COM_KeyingOperation.cpp
index 7d7ac378bed..a31b49c4a5c 100644
--- a/source/blender/compositor/operations/COM_KeyingOperation.cpp
+++ b/source/blender/compositor/operations/COM_KeyingOperation.cpp
@@ -49,12 +49,7 @@ static float get_pixel_saturation(float pixelColor[4], float screen_balance, int
float max = MAX2(pixelColor[other_1], pixelColor[other_2]);
float val = screen_balance * min + (1.0f - screen_balance) * max;
- // original formula, also used by brecht
- // works a bit crappy in areas with values > 1.0
- // return (pixelColor[primary_channel] - val) * fabsf(1.0f - val);
-
- // sergey's test formula
- return pixelColor[1] - (pixelColor[0] + pixelColor[1]) * 0.5f;
+ return (pixelColor[primary_channel] - val) * fabsf(1.0f - val);
}
KeyingOperation::KeyingOperation(): NodeOperation()