Creates a linear gradient: a straight ramp that rises from 0 to 1 in the direction you choose, across a width you set.
When to Use
- Directional slopes: Combine multiple gradients at different angles to create complex directional terrain slopes.
- Natural falloffs: The Soft clip tiling mode creates natural-looking falloffs that extend beyond the core gradient width without hard edges.
- Splitting the world: When Width is set very small, the gradient becomes a hard, straight-edged step from 0 to 1, useful as a mask that splits the world in two.
- Stripes and bands: Repeat Mirrored creates symmetrical patterns useful for striped terrain or geological features.
How to Use
By default it rises from west to east over 8 km, easing gently into flat values of 0 and 1 beyond the ends of the ramp.
- Place the Gradient device and position it where you want the gradient centered.
- Set the Direction to control which way the gradient faces.
- Adjust Width to set how gradually the transition occurs.
- Choose a Tiling mode based on whether you need the gradient to extend, clip, or repeat beyond its core width.
- Optionally connect a curve to HeightCurve to reshape the gradient profile, or to Width Curve to vary the width along the perpendicular axis.
Inputs
| Port | Type | Required | Description |
|---|---|---|---|
| HeightCurve | Curve | Optional | Reshapes the gradient’s profile through a custom curve |
| Width Curve | Curve | Optional | Widens or narrows the gradient along its length (across the slope direction) |
Outputs
| Port | Type | Description |
|---|---|---|
| Primary Output | Heightfield | The generated gradient |
Parameters
- Direction: Angle of the gradient in degrees. Default: 0. Range: 0 to 360. Accepts spatial input. The gradient rises from 0 to 1 in this direction. At 0 degrees, the open slope faces West and the gradient increases Eastward. The angle sweeps counter-clockwise.
- Width: Distance over which the gradient rises from 0 to 1. Default: 8,000 m (8 km). Range: 0 m to 256 km, on a logarithmic slider. Accepts spatial input. The gradient is centered on the generator’s placement origin.
- Tiling: What happens past the ends of the ramp. Default: Soft clip. Options: Hard clip, Soft clip, Repeat Mirrored, Repeat Discontinuous.
- Hard clip: Values level off sharply at 0 and 1 outside the gradient area.
- Soft clip: Values level off gently, easing into 0 and 1 around the ends of the ramp.
- Repeat Mirrored: The gradient reflects back and forth infinitely.
- Repeat Discontinuous: The gradient jumps from 1 back to 0 and repeats.
Tips and Tricks
- The Width Curve input allows creating gradient shapes that widen and narrow, useful for river valleys or erosion patterns.
- Use spatial input on Direction to create spiral or curved gradient patterns.
Older Versions
Gradients from projects made before the HeightCurve and Width Curve inputs existed use an older version of the device with a non-spatial Direction and only Clamp, Mirrored Repeat and Discontinuous Repeat tiling. Updating the device keeps the same look.