forked from blender/blender
MaterialX: add support for nodes #11
@ -12,6 +12,7 @@ NodeItem BrightContrastNodeParser::compute()
|
||||
NodeItem bright = get_input_value("Bright");
|
||||
NodeItem contrast = get_input_value("Contrast");
|
||||
|
||||
/* This formula was given from OSL shader code in Cycles. */
|
||||
return (bright + color * (contrast + value(1.0f)) - contrast * value(0.5f)).max(value(0.0f));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user