Skip to content

Gradient ​

Primitives primitive.gradient

A ramp: a straight slope across the terrain, or a radial bowl around a point.

Gradient with default settings

Output with default settings, rendered by LibreTerrain.

Outputs ​

PortType
OutHeightfield

Settings ​

SettingDefaultRange / optionsDescription
ModeLinearLinear, Radial (bowl)
Direction0 °0 to 360 °Linear only: the direction the ramp rises towards. 0° = +X (right), 90° = +Y (down).
Length8,192 m1 to 1,000,000 mDistance over which the ramp rises from Base to Base + Height (the radius, for Radial).
ProfileStraightStraight, Smooth (eased ends)
Height Mask port1,000 m0 to 20,000 mHeight of the feature above its base, in metres.
Base0 m-10,000 to 10,000 mHeight of the surrounding ground, in metres.
Position X0 m-1,000,000 to 1,000,000 mEast/west offset from the centre of the world, in metres.
Position Y0 m-1,000,000 to 1,000,000 mNorth/south offset from the centre of the world, in metres.

Mask ports

Settings marked Mask port can be driven by a mask. Click the setting's Mask port button and connect a mask to the new green input: black scales the value to 0, white keeps the value you set.

See also ​

Cone · Constant · File · Hemisphere · Polygons · Shape

Code dual-licensed MIT / Apache-2.0. "LibreTerrain" and its logo belong to EllisonDigital.