colordifferencekey: revert values to 1.0
I changed these which made them worse, using the original values with a custom "base" is a much better approach
This commit is contained in:
@@ -37,11 +37,13 @@ ColorDifferenceKeyNode::ColorDifferenceKeyNode()
|
||||
|
||||
AddInput(kColorInput, NodeValue::kCombo, 0);
|
||||
|
||||
AddInput(kHighlightsInput, NodeValue::kFloat, 100.0f);
|
||||
AddInput(kHighlightsInput, NodeValue::kFloat, 1.0f);
|
||||
SetInputProperty(kHighlightsInput, QStringLiteral("min"), 0.0);
|
||||
SetInputProperty(kHighlightsInput, QStringLiteral("base"), 0.01);
|
||||
|
||||
AddInput(kShadowsInput, NodeValue::kFloat, 100.0f);
|
||||
AddInput(kShadowsInput, NodeValue::kFloat, 1.0f);
|
||||
SetInputProperty(kShadowsInput, QStringLiteral("min"), 0.0);
|
||||
SetInputProperty(kShadowsInput, QStringLiteral("base"), 0.01);
|
||||
|
||||
AddInput(kMaskOnlyInput, NodeValue::kBoolean, false);
|
||||
|
||||
|
||||
@@ -51,7 +51,7 @@ void main(void) {
|
||||
}
|
||||
|
||||
// Crush blacks and push whites
|
||||
mask = highlights_in * 0.01 * (shadows_in * 0.01 * mask - 1.0) + 1.0;
|
||||
mask = highlights_in * (shadows_in * mask - 1.0) + 1.0;
|
||||
mask = clamp(mask, 0.0, 1.0);
|
||||
|
||||
// Invert mask
|
||||
|
||||
Reference in New Issue
Block a user