Texture tiling issue

I’m making a shader material for a terrain.
There are still some problems, but we are working on them one by one.
When I tiled the textures today, the overlapping parts of the textures came out strangely.

Please let me know if you have any good examples.

triplanar.zip (388.4 KB)

--5

I was able to set it on the texture.

mainTexture.wrapS = THREE.ReapeatWrapping;
mainTexture.wrapT = THREE.ReapeatWrapping;