MaterialX: add shader nodes #21

Merged
Bogdan Nagirniak merged 4 commits from matx-add-shader-nodes into matx-export-material 2023-09-14 16:55:15 +02:00
Showing only changes of commit 149c646957 - Show all commits

View File

@ -40,7 +40,7 @@ NODE_SHADER_MATERIALX_BEGIN
NodeItem normal = get_input_link("Normal", NodeItem::Type::Vector3);
NodeItem res = create_node("translucent_bsdf", NodeItem::Type::BSDF);
res.set_input("color", color * color);
res.set_input("color", color);
if (normal) {
res.set_input("normal", normal);
}