Skip to content

ColorChooserMaterialDriver

Class Documentation

Edit documentation

A vector driver that picks one of two colors by a condition. It returns mColorOn while mBoolDriver is true and mColorOff while it is false.

The change is immediate. LerpVec4LogicDriver fades between two vectors instead.

Properties

mBoolDriver

Pointer<ILogicBoolDriver> = null
Edit documentation

The condition that picks the color. It must be set: the client does not check for a missing operand.

mColorOff

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

The result while mBoolDriver is false.

mColorOn

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

The result while mBoolDriver is true.