Also known as: Slope Selector
Creates a selection mask based on terrain slope angle, picking out the areas of your terrain within a steepness range you choose.
When to Use
Use the mask to apply effects like rockfall, vegetation placement, or material assignment:
- Cliffs and steep areas: Target 45° and above, or a range such as 30° to 60°.
- Flat areas: Use a range of 0° to 5° with a small falloff Distance.
- Overhangs: With a VDM input, slope is measured from the surface direction, so overhangs read as slopes above 90°. Set the range up to 180° to include them.
How to Use
Connect a terrain to the input. By default the mask selects slopes from flat up to 33°, fading out smoothly over the next 23°.
- Connect a terrain to the input.
- Set Slope Range to target your desired steepness (e.g., 30° to 60° for cliffs).
- Adjust the falloff Distance to smooth the transition between selected and unselected slopes.
- Use the mask to drive your effects or materials.
Inputs
| Port | Type | Required | Description |
|---|---|---|---|
| Primary Input | Heightfield or VDM | Required | The terrain to analyze for slope |
Outputs
| Port | Type | Description |
|---|---|---|
| Primary Output | Heightfield | Mask showing selected slope range |
Parameters
Slope Range
The band of slope angles to select, specified in degrees. Slopes inside the range are fully selected.
- Default: 0° to 33°
- Range: 0° to 180°
- Note: 0° is flat, 45° is a 1:1 slope, 90° is vertical. Values above 90° reach into overhangs, which only exist on VDM terrain; a heightfield never exceeds 90°.
Falloff Group
Distance
Controls how far beyond the range the selection fades out, in degrees of slope. Small values make sharp-edged masks; large values make very gentle masks. At 0 the mask is a hard, all-or-nothing selection. The slider is finer at small values so you can dial in near-sharp edges. Accepts spatial input for per-pixel variation.
- Default: 23°
- Range: 0° to 90°
Type
Determines the curve shape of the falloff transition.
- Default: Smoothstep
- Options:
- Linear: Even, constant-rate falloff
- Exponential: Sharp initial dropoff with a long tail that continues past the falloff distance
- Smoothstep: Smooth S-curve transition
Direction (Advanced)
Controls where the falloff sits relative to the edges of the slope range. At 1.0 the whole range is fully selected and the falloff fades outward beyond it. At 0.0 the falloff fades inward, so the selection reaches zero exactly at the range edges. Values in between straddle the edges. Accepts spatial input.
- Default: 1.0
- Range: 0.0 to 1.0
Pin extremes (Advanced)
When enabled, an end of the slope range that sits at its natural limit (0° or 180°) keeps no falloff at that end, so it stays fully selected regardless of Direction. In practice this keeps perfectly flat ground selected when the range starts at 0° and Direction is below 1.0.
- Default: checked
Invert Selection
Reverses the mask so excluded areas become selected and vice versa.
- Default: unchecked
Tips and Tricks
- Typical natural slopes: grassland (0-15°), scree (30-40°), cliffs (50-90°).