MaterialX: code improvements shader modes. #35

Merged
Showing only changes of commit 5b07653e88 - Show all commits

View File

@ -58,10 +58,9 @@ NODE_SHADER_MATERIALX_BEGIN
NodeItem roughness = get_input_value("Roughness", NodeItem::Type::Float); NodeItem roughness = get_input_value("Roughness", NodeItem::Type::Float);
NodeItem normal = get_input_link("Normal", NodeItem::Type::Vector3); NodeItem normal = get_input_link("Normal", NodeItem::Type::Vector3);
return create_node( return create_node("sheen_bsdf",
"sheen_bsdf", NodeItem::Type::BSDF,
NodeItem::Type::BSDF, {{"color", color}, {"roughness", roughness}, {"normal", normal}});
{{"color", color}, {"weight", roughness}, {"roughness", roughness}, {"normal", normal}});
} }
#endif #endif
NODE_SHADER_MATERIALX_END NODE_SHADER_MATERIALX_END