Builtin Library
README.md
math.noise (procNode)
Perlin noise at the point (x, y, z), as math.noise makes it: a smooth value of about -1 to 1 that is 0 at whole-number points and repeats every 256 units. The first component of each operand is read.
The noise operation of the authoring surface, called through the Luau node on proc.fieldc.operators. Operands are numbers, vectors, Columns or Fields. When every operand is a plain number or vector the answer is the plain result, folded where the node cooks; otherwise the answer is a Field: a template over its operands that whatever reads it evaluates in one dispatch together with the chain around it. Nothing dispatches for this node alone.
The same function runs on the device, in the shader module kernels/luau_noise, so a chain of nodes holding it stays one dispatch.
Inputs
x(Value, default 0). The first coordinate.y(Value, default 0). The second coordinate.z(Value, default 0). The third coordinate.
Outputs
value. The noise at the point.
local value = g.math.noise({ x = 1.5, y = 2.25, z = 0.5 }) -- -0.0775