perlin noise unity 3d terrain code example Example: perlin noise unity Mathf.PerlinNoise(x, y); //Return value is between 0.0 and 1.0