- cell-noise-2dconstant
Exports
jitter -> #:float
A variable that sets the amount of possible “jitter” for each feature point. Should be a value between 0.0 and 1.0, with 0.0 creating a regular grid of points and 1.0 creating the greatest randomness. If there are problems with discontinuities, decrease the jitter. Defaults to 0.9.
(cell-noise (POSITION #:vec2)) -> #:float
Given a 2D position, return the distance to the nearest feature point. This is fast, but lower-quality than cell-noise2
(cell-noise2 (POSITION #:vec2)) -> #:vec2
Given a 2D position, return the a vector containing the distance to the nearest feature point and second nearest feature point ((F1 F2)).