forked from blender/blender
MaterialX: Implement export of Input nodes #20
@ -65,11 +65,11 @@ NODE_SHADER_MATERIALX_BEGIN
|
|||||||
NodeItem res = empty();
|
NodeItem res = empty();
|
||||||
std::string name = socket_out_->name;
|
std::string name = socket_out_->name;
|
||||||
|
|
||||||
BogdanNagirniak marked this conversation as resolved
|
|||||||
if (name == "Position"){
|
if (name == "Position") {
|
||||||
res = create_node("position", NodeItem::Type::Vector3);
|
res = create_node("position", NodeItem::Type::Vector3);
|
||||||
res.set_input("space", val(std::string("world")));
|
res.set_input("space", val(std::string("world")));
|
||||||
}
|
}
|
||||||
else if (name =="Normal"){
|
else if (name == "Normal") {
|
||||||
res = create_node("normal", NodeItem::Type::Vector3);
|
res = create_node("normal", NodeItem::Type::Vector3);
|
||||||
res.set_input("space", val(std::string("world")));
|
res.set_input("space", val(std::string("world")));
|
||||||
}
|
}
|
||||||
|
@ -71,8 +71,8 @@ NODE_SHADER_MATERIALX_BEGIN
|
|||||||
#ifdef WITH_MATERIALX
|
#ifdef WITH_MATERIALX
|
||||||
{
|
{
|
||||||
BogdanNagirniak marked this conversation as resolved
Bogdan Nagirniak
commented
I think it is implemented here, use NOTE that other properties of node are unsupported I think it is implemented here, use NOTE that other properties of node are unsupported
|
|||||||
/* NODE: "From Instances" not implemented
|
/* NODE: "From Instances" not implemented
|
||||||
* UV selection not implemented
|
* UV selection not implemented
|
||||||
*/
|
*/
|
||||||
return texcoord_node();
|
return texcoord_node();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user
maybe std::string name = socket_out_->name ?