Set Terrain Normals


I’m making a grid of terrains. I make sure that the vertexes of neighbouring terrains match, so there are no gaps.
There is one problem though, the normals of the vertexes don’t match, so there is a very noticeable line in the shading. Is there any way to edit the vertex normals of a terrain?

Thanks !

In this answer one commenter said that you have to call “Terrain.Flush()” after you set the neighbours to fix the terrain normals.

Make sure that you are setting your neighbors correctly. The top neighbor is in the positive z direction and the left neighbor is in the negative x direction.

Details here: How do I use Terrain.SetNeighbors() to remove level of detail seams between multiple terrains? - Questions & Answers - Unity Discussions