Scalar Change Range

 
 
 

Category: Processing > Math

Shader Family: Texture

Output: Scalar value

Lets you remap a scalar parameter expressed in an old min/max range to a new min/max range.

Example: Let's say you want to remap the Z depth of a parameter, which currently varies from 0 to 1 000 000. You can use this node to remap these values to fall within a range of 0 to 1. Whenever the input exceeds the old min/max range, the remapped output is extrapolated linearly.

Name

The shader's name. Enter any name you like, or leave the default.

Input

Specifies the scalar value to be remapped.

Old Range Start, End

Specifies the start and end of the current range of values.

New Range Start, End

Specifies the start and end of the new range of values.