MaterialX: code improvements shader modes. #35

Merged
Showing only changes of commit fbc05db737 - Show all commits

View File

@ -327,6 +327,7 @@ NodeItem NodeItem::dotproduct(const NodeItem &other) const
NodeItem item1 = to_vector();
NodeItem item2 = other.to_vector();
cast_types(item1, item2);
return create_node("dotproduct", Type::Float, {{"in1", item1}, {"in2", item2}});
Vasyl-Pidhirskyi marked this conversation as resolved Outdated

Why this was removed?
Seems it could produce error when we try to do dotproduct vector2 by float or by vector3

Why this was removed? Seems it could produce error when we try to do dotproduct vector2 by float or by vector3

Agree, reverted changes.

Agree, reverted changes.
}