渐变纹理着色器节点

Note

This node is ported from shader nodes. The manual and images are referencing the shader version of the node. This node accepts field inputs and outputs. When not connected the Vector input has an implicit position attribute value.

渐变纹理着色器节点。

渐变纹理 节点根据输入向量的值来生成颜色和强度插值。

输入

矢量

纹理坐标到样本纹理;如果接口未连接,则默认生成纹理坐标。

属性

类型

控制生成的渐变类型。

  • 线性

    Directly outputs the input X coordinate.

    二次方

    以二次方形式输入X坐标。

    缓动

    Uses a combination of quadratic and linear interpolation to generate a smooth gradient from the input X coordinate.

    斜纹

    将输入的X和Y坐标进行平均运算。

    球形

    使用输入向量的长度创建反向渐变;最大值为(0,0,0)。

    二次型球面

    与上述球形选项相似。但该方式使用二次输入向量的插值创建反向渐变,最大值为(0,0,0)。

    径向

    Outputs a value based on the angle of the input around the Z axis.

输出

颜色

输出颜色纹理。

系数

输出纹理强度。

示例

../../../_images/render_shader-nodes_textures_gradient_example.jpg

使用对象坐标的渐变纹理效果。