rescaleField

Shortcuts:
  • rf
Keywords:
  • range
  • remap
  • rescale
filter
rescaleField
RayTK
v0.36

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 vec4
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext
    • Return Types: float vec4