Value
RustEdit ProThe nodes in the Value category of the Terrain Graph's Add Node menu. Round sockets carry maps and square sockets carry single values. See Graph editor.
Bool
A constant boolean, drivable and shareable.
Inputs
| Input | Kind | Default | Notes |
|---|---|---|---|
| Value | On or off | Off | The value this node holds and passes on. |
Outputs
| Output | Kind |
|---|---|
| Out | On or off. The result this node produces. |
Clamp Value
Keep a value between Min and Max.
Inputs
| Input | Kind | Default | Notes |
|---|---|---|---|
| Value | Number | 0 | The value this node holds and passes on. |
| Min | Number | 0 | The lowest value. |
| Max | Number | 1 | The highest value. |
Outputs
| Output | Kind |
|---|---|
| Out | Number. The result this node produces. |
Compare
Compare two values: on or off.
Inputs
| Input | Kind | Default | Notes |
|---|---|---|---|
| A | Number | 0 | The first input. |
| B | Number | 0 | The second input. |
| Comparison | Choice | Greater | How to compare A with B. Options: Greater, Greater Or Equal, Less, Less Or Equal, Equal, Not Equal. |
Outputs
| Output | Kind |
|---|---|
| Out | On or off. The result this node produces. |
Float
A constant float, drivable and shareable.
Inputs
| Input | Kind | Default | Notes |
|---|---|---|---|
| Value | Number | 0 | The value this node holds and passes on. |
Outputs
| Output | Kind |
|---|---|
| Out | Number. The result this node produces. |
Int
A constant integer, drivable and shareable.
Inputs
| Input | Kind | Default | Notes |
|---|---|---|---|
| Value | Whole number | 0 | The value this node holds and passes on. |
Outputs
| Output | Kind |
|---|---|
| Out | Whole number. The result this node produces. |
Lerp
Blend between two values.
Inputs
| Input | Kind | Default | Notes |
|---|---|---|---|
| A | Number | 0 | The first input. |
| B | Number | 1 | The second input. |
| T | Number | 0.5 | How far from A to B. 0 gives A, 1 gives B. Slider from 0 to 1. |
Outputs
| Output | Kind |
|---|---|
| Out | Number. The result this node produces. |
Math
Combine two values (add, multiply, min, max and more).
Inputs
| Input | Kind | Default | Notes |
|---|---|---|---|
| A | Number | 0 | The first input. |
| B | Number | 0 | The second input. |
| Operation | Choice | Add | Which operation to apply to the two inputs. Options: Add, Subtract, Multiply, Divide, Min, Max, Power, Average, Abs, Sin, Cos. |
Outputs
| Output | Kind |
|---|---|
| Out | Number. The result this node produces. |
Random
A random number between Min and Max that only changes when the seed does.
Inputs
| Input | Kind | Default | Notes |
|---|---|---|---|
| Seed | Whole number | 0 | Change it to get a different random result. |
| Min | Number | 0 | The lowest value. |
| Max | Number | 1 | The highest value. |
Outputs
| Output | Kind |
|---|---|
| Out | Number. The result this node produces. |
Switch
Pass on one of two values, chosen by a condition.
Inputs
| Input | Kind | Default | Notes |
|---|---|---|---|
| Condition | On or off | On | Picks which input is passed on. |
| If True | Number | 1 | Passed on when the condition is on. |
| If False | Number | 0 | Passed on when the condition is off. |
Outputs
| Output | Kind |
|---|---|
| Out | Number. The result this node produces. |