math docs
    Preparing search index...

    Function sample

    • Samples 3D Worley (cellular) noise: the Euclidean distance to the nearest of a set of feature points, one scattered per unit cell. Values are roughly in [0, 1] (0 right at a feature point). Threshold a 3D field for cave networks, ore pockets, or volumetric cell structures.

      Parameters

      • generator: Permutation

        A generator created with create

      • x: number

        X coordinate

      • y: number

        Y coordinate

      • z: number

        Z coordinate

      Returns number

      The distance to the nearest feature point (F1)