Skip to main content Link Menu Expand (external link) Document Search Copy Copied

rescaleField

Shortcuts:
Keywords:
  • range
  • remap
  • rescale

Rescales the values produced by a field.

This is equivalent to the “Range” parameters in a Math CHOP.

It works for either float value fields or vector fields. When using a float value field, only the first part of each of the range parameters is used.

Parameters

  • Enable:
  • Input Low: The low end of the expected input values.
  • Input High: The high end of the expected input values.
  • Output Low: The low end of the rescaled value range.
  • Output High: The high end of the rescaled value range.
  • Return Type:
    • Auto:
    • Float:
    • Vector:
  • Multiply:
  • Multiply:
  • Post Add:

Inputs

  • definition_in: (required)
    • Coordinate Types: float vec2 vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext
    • Return Types: float vec4