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
mathMathTwo-input arithmetic, add, subtract, multiply, divide, modulo, min, max, power.
| Port | Type | Default | Range | Notes |
|---|---|---|---|---|
| a | float | , | , | |
| b | float | , | , |
| Port | Type | Default | Range | Notes |
|---|---|---|---|---|
| result | float | , | , |
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
combinerMathCombines two floats into a single result via a chosen operation. Use for chained math without nesting Math nodes.
| Port | Type | Default | Range | Notes |
|---|---|---|---|---|
| a | float | 0 | , | |
| b | float | 0 | , |
| Port | Type | Default | Range | Notes |
|---|---|---|---|---|
| result | float | , | , |
Similar to math but with a slightly different operation set tuned for value-graph wiring. Pick the op from the inspector.
Condition
conditionMathIf value compared-to threshold then ifTrue else ifFalse. The branching primitive.
| Port | Type | Default | Range | Notes |
|---|---|---|---|---|
| value | float | 0 | , | |
| threshold | float | 0.5 | , | |
| ifTrue | float | 1 | , | |
| ifFalse | float | 0 | , |
| Port | Type | Default | Range | Notes |
|---|---|---|---|---|
| result | float | , | , | |
| bool | bool | , | , |
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
rangeRemapMathLinearly remaps a value from [inMin, inMax] into [outMin, outMax]. Optionally clamps the output.
| Port | Type | Default | Range | Notes |
|---|---|---|---|---|
| value | float | 0 | , | |
| inMin | float | 0 | , | |
| inMax | float | 1 | , | |
| outMin | float | 0 | , | |
| outMax | float | 1 | , |
| Port | Type | Default | Range | Notes |
|---|---|---|---|---|
| result | float | , | , |
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.