I have a problem when generating a perlin noise on different terrains so that they maintain the continuity of the map.
The script that generates the script is called perlinNoise.js
The Generate function creates the perlin noise by giving it the following parameters
[image]
then I created 5 terrains that are adjacent to their respective offset so that they maintain continuity.
At a scale of 15, the 5 maps are created very well, the problem comes when I increase the scale, for example a scale of 70
The error of the lag in the scale is becoming increasingly noticeable, now if I raise the scale even more to 300
A huge offset error is already noticeable, which becomes clearer as I increase the scale, for example to 1000
With this, I deduced that the error was in this part of the code

I have tried to find the error on how to solve this offset and I did not get a solution, if anyone knows what could be wrong to remove that offset in the scale, I would greatly appreciate it.