• Periodic per-lattice-cell hash. Wraps modulo (pX, pY), so values on opposite edges of the lattice match. Use this in place of hash2 when the resulting texture must tile without a wrap seam. pX and pY are positive integer lattice repeats per axis.

    Parameters

    • x: number
    • y: number
    • pX: number
    • pY: number

    Returns number