矢量运算节点

../../../_images/render_shader-nodes_converter_vector-math_node.png

矢量运算节点。

矢量运算 节点对输入矢量执行选定的数学运算。

输入选项

节点的输入是动态的。 某些输入仅在某些操作中可用。 例如, 缩放 输入仅在 缩放 运算符中可用。

矢量

矢量输入A。

矢量

矢量输入B。

缩放

输入缩放

属性

操作

矢量数学运算符将应用于输入矢量。

  • 相加

    A和B相加。

    相减

    A和B之间的差值。

    正片叠底

    The entrywise product of A and B. \((A.x * B.x, A.y * B.y, A.z * B.z)\)

    相除

    The entrywise division of A by B. Division by zero returns zero. \((A.x / B.x, A.y / B.y, A.z / B.z)\)

    叉乘

    A和B的叉积。

    投影

    A在B上的投影。

    反射

    The reflection of A around the normal B. B need not be normalized.

    点乘

    A和B的点积。

    距离

    A和B之间的距离。

    长度

    A的长度

    缩放

    A与标量输入 缩放 相乘的结果。

    规格化

    规格化A的结果。

    Wrap

    Wrap.

    吸附

    将A舍入为B小于或等于A的最大整数倍的结果。

    基面

    A的基面。

    向上取整

    A的逐项取整。

    模数

    A通过B逐项取模。

    分数

    A的小数部分。

    绝对

    A的逐项取绝对值。

    最小值

    A和B中的输入最小值。

    最大值

    A和B的输入最大值。

    Sine

    The Sine of A.

    Cosine

    The Cosine of A.

    Tangent

    The Tangent of A.

输出选项

The output of the node is dynamic. It is either a vector or a scalar depending on the operator. For instance, the Length operator has a scalar output while the Add operator has a vector output.

矢量

输出矢量。

输出值。