Skip to content

RemapVec4MaterialDriver

14.1

Class Documentation

Edit documentation

A vector driver that maps each component of a vector from one range to another, as RemapFloatMaterialDriver does for a number. For each component:

  1. It clamps the component of the value of driver to the same component of MinValue..MaxValue.
  2. It takes the position of the value in that range, from 0 to 1.
  3. It returns the point at that position between the same components of OutputMinValue and OutputMaxValue.

A float driver in driver gives the same number in all four components, and each component is then mapped with its own range.

Properties

MaxValue

Vec4 = [1, 1, 1, 1]
Edit documentation

The high end of the input range, per component. Inputs above it count as this value.

MinValue

Vec4 = [0, 0, 0, 0]
Edit documentation

The low end of the input range, per component. Inputs below it count as this value.

OutputMaxValue

Vec4 = [1, 1, 1, 1]
Edit documentation

The result, per component, for an input at MaxValue.

OutputMinValue

Vec4 = [0, 0, 0, 0]
Edit documentation

The result, per component, for an input at MinValue.