lovr.math.noise

Returns a 1D, 2D, 3D, or 4D simplex noise value. The number will be between 0 and 1.


noise = lovr.math.noise(x)

Arguments

NameTypeDescription
xnumber The x coordinate of the input.

Returns

NameTypeDescription
noisenumber The noise value, between 0 and 1.

noise = lovr.math.noise(x, y)

Arguments

NameTypeDescription
xnumber The x coordinate of the input.
ynumber The y coordinate of the input.

Returns

NameTypeDescription
noisenumber The noise value, between 0 and 1.

noise = lovr.math.noise(x, y, z)

Arguments

NameTypeDescription
xnumber The x coordinate of the input.
ynumber The y coordinate of the input.
znumber The z coordinate of the input.

Returns

NameTypeDescription
noisenumber The noise value, between 0 and 1.

noise = lovr.math.noise(x, y, z, w)

Arguments

NameTypeDescription
xnumber The x coordinate of the input.
ynumber The y coordinate of the input.
znumber The z coordinate of the input.
wnumber The w coordinate of the input.

Returns

NameTypeDescription
noisenumber The noise value, between 0 and 1.

See also