映射范围节点

../../../_images/render_shader-nodes_converter_map-range_node.png

映射范围节点。

The Map Range node remaps a value from a range to a target range.

输入

要重映射的输入值。

从最小值

重映射前数值范围下界。

从最大值

重映射前数值范围上界。

到最小值

目标范围的下界。

到最大值

目标范围上界。

Steps

The number of values allowed between To Max and To Max when using Stepped Linear interpolation. A higher value will give a smoother interpolation while lower values will progressively quantize the input.

属性

Interpolation Type
Linear

Linear interpolation between From Min and From Max values.

Stepped Linear

Stepped linear interpolation between From Min and From Max values.

Smooth Step

Smooth Hermite edge interpolation between From Min and From Max values.

Smoother Step

Smoother Hermite edge interpolation between From Min and From Max values.

钳制

启用后,输出将被钳制到目标范围。

输出

结果

重映射后的输入值。

举例

噪波纹理 节点输出范围为 [0, 1]。我们可以使用 映射范围 节点将其重新映射到范围 [-1, 1]。

../../../_images/render_shader-nodes_converter_map-range_example.jpg

映射范围节点举例。