The gradient of a scalar field such as those generated by the different noise algorithms in ambient is a vector field encoding the direction to move to get the strongest increase in value. The vectors generated have the properties of being perpendicular on the contour line drawn through that point. Take note that the returned vector field flows upwards, i.e. points toward the steepest ascend, rather than what is normally expected in a gravitational governed world.
gradient_noise(
generator,
x,
y,
z = NULL,
t = NULL,
...,
seed = NULL,
delta = NULL
)
The noise generating function, such as gen_simplex, or
fracture()
The coordinates to generate the gradient for as unquoted expressions
Further arguments to generator
A seed for the generator.
The offset to use for the partial derivative of the generator
.
If NULL
, it will be set as 1e-4 of the largest range of the dimensions.
Other derived values:
curl_noise()