forked from blender/blender
MaterialX: add shader nodes #21
@ -40,7 +40,7 @@ NODE_SHADER_MATERIALX_BEGIN
|
|||||||
NodeItem normal = get_input_link("Normal", NodeItem::Type::Vector3);
|
NodeItem normal = get_input_link("Normal", NodeItem::Type::Vector3);
|
||||||
|
|
||||||
NodeItem res = create_node("translucent_bsdf", NodeItem::Type::BSDF);
|
NodeItem res = create_node("translucent_bsdf", NodeItem::Type::BSDF);
|
||||||
res.set_input("color", color * color);
|
res.set_input("color", color);
|
||||||
if (normal) {
|
if (normal) {
|
||||||
res.set_input("normal", normal);
|
res.set_input("normal", normal);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user