forked from blender/blender
Export other channels and parameters from texture nodes #16
@ -15,8 +15,8 @@ NodeItem TexCheckerNodeParser::compute()
|
||||
NodeItem value1 = val(1.0f);
|
||||
NodeItem value2 = val(0.0f);
|
||||
if (STREQ(socket_out_->name, "Color")) {
|
||||
value1 = get_input_value("Color1", NodeItem::Type::Color3);
|
||||
value2 = get_input_value("Color2", NodeItem::Type::Color3);
|
||||
value1 = get_input_value("Color1", NodeItem::Type::Color4);
|
||||
value2 = get_input_value("Color2", NodeItem::Type::Color4);
|
||||
}
|
||||
NodeItem scale = get_input_value("Scale", NodeItem::Type::Float);
|
||||
|
||||
|
@ -50,7 +50,7 @@ NodeItem TexEnvironmentNodeParser::compute()
|
||||
BLI_assert_unreachable();
|
||||
}
|
||||
|
||||
res = create_node("image", NodeItem::Type::Color3);
|
||||
res = create_node("image", NodeItem::Type::Color4);
|
||||
res.set_input("file", image_path, NodeItem::Type::Filename);
|
||||
res.set_input("texcoord", vector);
|
||||
res.set_input("filtertype", val(filtertype));
|
||||
|
Loading…
Reference in New Issue
Block a user