Hello. I do not have a lot of experience with shaders. How can I smooth that uv line in this shader? It uses voronoi noise and the only idea I think of is to make sides of that noise symmetrical, but I have no idea how to do it.
Hi,
On high level, you could do this (a sort of pseudo code for you):
Blend together the two textures, your original pattern and then the same pattern using mirrored UVs going to reverse direction, as a mirror image. For masking, use UVs so that you start from certain value, like 0.75 with zero blend, and at 1.0, 100% blend. Now you got a slightly visible artifact on your edge area, but in some sense it’s seamless. It might work OK for things like a caustic pattern. Anyway, this is a quick and dirty hack, there might be better ways to handle this, like properly crossfading the image/pattern with itself.
i.e. result would be something like this (see both images)
No seam fix:
With seam fix:
1 Like