Skip to content

LerpVec4LogicDriver

Class Documentation

Edit documentation

A vector driver that fades between two vectors when a bool driver changes. While BoolDriver is true the value moves toward OnValue, and while it is false toward OffValue. It is the four-component form of LerpMaterialDriver, and each component fades as the value of that driver does:

  1. The driver keeps one current value per source. The value of a source is removed when the source is destroyed.
  2. The first evaluation for a source returns the target at once.
  3. After that, each evaluation moves the current value toward the target by the time of the last frame. A full swing from one value to the other takes TurnOnTimeSec or TurnOffTimeSec seconds.
  4. Each component stays between its OffValue and its OnValue.

Properties

OffValue

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

The target while BoolDriver is false.

TurnOffTimeSec

F32 = 1
Edit documentation

The time, in seconds, of a full fade from OnValue to OffValue. 0 switches at once.

TurnOnTimeSec

F32 = 1
Edit documentation

The time, in seconds, of a full fade from OffValue to OnValue. 0 switches at once.