MaterialX: add support for nodes #11

Merged
Bogdan Nagirniak merged 17 commits from matx-add-other-nodes into matx-export-material 2023-09-06 10:37:26 +02:00
Showing only changes of commit f73e5939d6 - Show all commits

View File

@ -12,6 +12,7 @@ NodeItem BrightContrastNodeParser::compute()
NodeItem bright = get_input_value("Bright"); NodeItem bright = get_input_value("Bright");
NodeItem contrast = get_input_value("Contrast"); 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)); return (bright + color * (contrast + value(1.0f)) - contrast * value(0.5f)).max(value(0.0f));
} }