Reference / Nodes

Math & Logic

Operate on floats. Add, multiply, branch on a threshold, remap from one range to another, or pack four floats into a single color for downstream use.

Every node in this group runs on the CPU, the result lands on afloat port for the next frame to read. They're cheap; chain freely.

Math

mathMath

Two-input arithmetic, add, subtract, multiply, divide, modulo, min, max, power.

Inputs
PortTypeDefaultRangeNotes
afloat,,
bfloat,,
Outputs
PortTypeDefaultRangeNotes
resultfloat,,

Pick the operation from the inspector. Division by zero clamps to a large finite number rather than producing NaN, so the graph stays stable even when an input flickers through 0.

Combiner

combinerMath

Combines two floats into a single result via a chosen operation. Use for chained math without nesting Math nodes.

Inputs
PortTypeDefaultRangeNotes
afloat0,
bfloat0,
Outputs
PortTypeDefaultRangeNotes
resultfloat,,

Similar to math but with a slightly different operation set tuned for value-graph wiring. Pick the op from the inspector.

Condition

conditionMath

If value compared-to threshold then ifTrue else ifFalse. The branching primitive.

Inputs
PortTypeDefaultRangeNotes
valuefloat0,
thresholdfloat0.5,
ifTruefloat1,
ifFalsefloat0,
Outputs
PortTypeDefaultRangeNotes
resultfloat,,
boolbool,,

The comparison operator (greater, less, equal, etc.) lives on the inspector. The bool output is the raw boolean , useful when you want to gate a downstream chain from the boolean rather than the multiplexed float result.

Range Remap

rangeRemapMath

Linearly remaps a value from [inMin, inMax] into [outMin, outMax]. Optionally clamps the output.

Inputs
PortTypeDefaultRangeNotes
valuefloat0,
inMinfloat0,
inMaxfloat1,
outMinfloat0,
outMaxfloat1,
Outputs
PortTypeDefaultRangeNotes
resultfloat,,

The single most-used utility node in any graph that mixes data sources. Take a sound band that sits in 0–1, push it into a port that expects 0.5–2.0, done. The clamp toggle lives on the inspector.