Tileable Noise

Author: Ilya Suzdalnitski

Description
Ported Java Simplex Noise source code to C# from toxiclibs. Implemented tileable noise by mapping 4d noise into 2d plane as described in GameDev.net forum

The method itself: where: x, y are normalized coordinates (in [0..1] space). dx, dy are noise scale in x and y axes. xyOffset is noise offset (same offset will result in having the same noise).

The method returns a float value in [-1..1] space. You might have to normalize it to [0..1] space by doing something like this: