rescaleField

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

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

Name Description Regular Handling Read-Only Handling
Enable
Input Low

The low end of the expected input values.

Runtime Baked
Input High

The high end of the expected input values.

Runtime Baked
Output Low

The low end of the rescaled value range.

Runtime Baked
Output High

The high end of the rescaled value range.

Runtime Baked
Return Type
  • Auto:
  • Float:
  • Vector:
Multiply

Multiplier value applied to all parts of the values after range scaling.

Runtime Baked
Multiply

Multiplier values applied to each part of the values after range scaling.

Runtime Baked
Post Add

Amounts added to the rescaled values after all other steps.

Runtime Baked

Inputs

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