Masks
RustEdit ProThe nodes in the Masks category of the Terrain Graph's Add Node menu. Round sockets carry maps and square sockets carry single values. See Graph editor.
Cavity
Picks out dips and bumps by comparing each point with its surroundings.
Inputs
| Input | Kind | Default | Notes |
|---|---|---|---|
| Height | Map | ||
| Mode | Choice | Concave | Pick out dips, bumps, or both. Options: Concave, Convex, Both. |
| Radius | Number | 20 | Metres around each point to compare against. Bigger finds bigger features. Slider from 2 to 200. |
| Depth | Number | 2 | Metres above or below the surroundings that count as a full mask. Slider from 0.1 to 20. |
Outputs
| Output | Kind |
|---|---|
| Out | Map. The result this node produces. |
Direction
How directly each slope faces a light from a chosen direction.
Inputs
| Input | Kind | Default | Notes |
|---|---|---|---|
| Height | Map | ||
| Azimuth | Number | 180 | Compass direction the light comes from, in degrees. 0 is north, 90 is east, 180 is south. Slider from 0 to 360. |
| Elevation | Number | 30 | How high the light is above the horizon, in degrees. 90 is straight down. Slider from 0 to 90. |
| Wrap | Number | 0 | Lets the light wrap around onto slopes facing away, for a softer mask. Slider from 0 to 1. |
Outputs
| Output | Kind |
|---|---|
| Out | Map. The result this node produces. |
Distance
How far each point is from a mask, in metres, outside and inside it.
Inputs
| Input | Kind | Default | Notes |
|---|---|---|---|
| Mask | Map | ||
| Max Distance | Number | 200 | Metres at which the distance reaches 1. Slider from 1 to 2000. |
| Threshold | Number | 0.5 | Mask values at or above this count as inside the mask. Slider from 0 to 1. |
Outputs
| Output | Kind |
|---|---|
| Outside | Map. 0 at the mask's edge, rising to 1 at Max Distance away from it. 0 inside the mask. |
| Inside | Map. 0 at the mask's edge, rising to 1 at Max Distance into it. 0 outside the mask. |
Grow / Shrink
Widen or narrow a mask by some metres, with a soft edge.
Inputs
| Input | Kind | Default | Notes |
|---|---|---|---|
| Mask | Map | ||
| Amount | Number | 20 | Metres to widen the mask by. A negative amount narrows it instead. Slider from -500 to 500. |
| Softness | Number | 10 | Metres over which the new edge fades out. Slider from 0 to 200. |
| Threshold | Number | 0.5 | Mask values at or above this count as inside the mask. Slider from 0 to 1. |
Outputs
| Output | Kind |
|---|---|
| Out | Map. The result this node produces. |
Height Select
Mask a height band with soft edges.
Inputs
| Input | Kind | Default | Notes |
|---|---|---|---|
| In | Map, any width | The value this node works on. | |
| Min Height | Number | 0.4 | The bottom of the height band, from 0 to 1 of the terrain height. Sea level is usually 0.5. Slider from 0 to 1. |
| Max Height | Number | 0.7 | The top of the height band, from 0 to 1 of the terrain height. Sea level is usually 0.5. Slider from 0 to 1. |
| Falloff | Number | 0.1 | How far below and above the band the mask fades out, in the same 0 to 1 units. 0 gives hard edges. Slider from 0 to 0.5. |
Outputs
| Output | Kind |
|---|---|
| Out | Map, any width. The result this node produces. |
Normal
Which way the ground faces at each point, worked out the way Rust does it.
Inputs
| Input | Kind | Default | Notes |
|---|---|---|---|
| Height | Map |
Outputs
| Output | Kind |
|---|---|
| X | Map. How much the ground faces across the map, -1 to 1. |
| Y | Map. How much the ground faces up. 1 on flat ground. |
| Z | Map. How much the ground faces up the map, -1 to 1. |
Sea Level
Land, underwater and shoreline masks around sea level (world height 0).
Inputs
| Input | Kind | Default | Notes |
|---|---|---|---|
| Height | Map | ||
| Shore Width | Number | 4 | Metres above and below sea level that count as shore. Slider from 0 to 50. |
| Falloff | Number | 2 | Metres over which each mask fades out. Slider from 0.1 to 50. |
Outputs
| Output | Kind |
|---|---|
| Land | Map. 1 above sea level, 0 below it. |
| Underwater | Map. 1 below sea level, 0 above it. |
| Shore | Map. 1 within Shore Width of the waterline, above or below it. |
Slope
Steepness of the terrain as a 0..1 field.
Inputs
| Input | Kind | Default | Notes |
|---|---|---|---|
| In | Map, any width | The value this node works on. |
Outputs
| Output | Kind |
|---|---|
| Out | Map, any width. The result this node produces. |
Slope Select
Mask a slope band with soft edges.
Inputs
| Input | Kind | Default | Notes |
|---|---|---|---|
| In | Map, any width | The value this node works on. | |
| Min Slope | Number | 0.3 | The gentlest slope in the band, from 0 (flat) to 1 (vertical). 0.5 is 45 degrees. Slider from 0 to 1. |
| Max Slope | Number | 1 | The steepest slope in the band, from 0 (flat) to 1 (vertical). 0.5 is 45 degrees. Slider from 0 to 1. |
| Falloff | Number | 0.1 | How far outside the slope band the mask fades out, on the same 0 to 1 scale. 0 gives hard edges. Slider from 0 to 0.5. |
Outputs
| Output | Kind |
|---|---|
| Out | Map, any width. The result this node produces. |