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.
(pX, pY)
pX
pY
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.pXandpYare positive integer lattice repeats per axis.