math docs
    Preparing search index...

    Function domainWarp3

    • Domain warping (3D): offsets a point by a noise-derived vector so a noise source sampled at the result is bent and swirled. See domainWarp2.

      Parameters

      • out: vec3.Vec3

        the receiving Vec3 (the warped point)

      • sample: (x: number, y: number, z: number) => number

        the warp noise source, sampled at (x, y, z)

      • x: number

        x coordinate

      • y: number

        y coordinate

      • z: number

        z coordinate

      • amount: number = 1

        displacement scale (default 1)

      Returns vec3.Vec3

      out