Convert
Converts a stream from one data type to another.
Parameter Types
Discussion
The Convert node takes data of one type and outputs it in another form. The supported type conversions are shown above with the various convert node types. The Convert node handles data types in the following ways:
When converting a
floatto acolororvector, theConvertnode copies thefloatto all channels of thecolororvector.When converting a
color3to acolor4, theConvertnode sets the output alpha to1.0When converting a
color4to acolor3, theConvertnode drops the alpha channel.When converting a
booleanorintegerto afloat, the output is either1.0or0.0.When converting a
vector2tovector3or avector3to avector4, theConvertnodes populates the additional channel with a value of1.0When converting a
vector4to avector3, or avector3to avector2, drop the last channel.