Anti-tiling terrain shader. Based on technique 3 from this article by Inigo Quilez: https://iquilezles.org/articles/texturerepetition/
After anti-tiling
Before anti-tiling