Mapear intervalos

O painel do nó do tipo "Mapear intervalos".

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

Inputs

Value/Vector

The input value or vector to be remapped.

From Min

The lower bound of the range to remap from.

From Max

The higher bound of the range to remap from.

To Min

The lower bound of the target range.

To Max

The higher bound of the target range.

Passos

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

Properties

Data Type

Map Range supports both Float and Vector data types. Changing the data type will also update the sockets to reflect the data type chosen.

Tipo de interpolação

O método matemático usado para fazer a transição entre as lacunas nas entradas numéricas.

Linear

Interpolação linear entre os valores From Min e From Max.

Stepped Linear

Interpolação linear escalonada entre os valores From Min e From Max.

Smooth Step

Interpolação Smooth Hermite de arestas entre valores From Min e From Max

Smoother Step

Interpolação Smoother Hermite de arestas entre valores From Min e From Max.

Clamp

Se habilitado, a saída é restringida ao intervalo destino.

Saídas

Result/Vector

The input value after remapping.

Examples

The Noise Texture node outputs a value in the range [0, 1]. We can use the Map Range node to remap this value into the range [-1, 1].

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

Example of Map Range node.