- Home /
Set Terrain Normals
Hi,
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 ! -P
I managed to reduce the line by fiddling a bit with the texture and it's tiling, though the normals still cause a bit of a problem. Anyone?
I now added grass, and this also masks this edge, though still visible. Bump?
Answer by Rabbit-Stew-dio · Mar 10, 2012 at 11:03 AM
In this answer one commenter said that you have to call "Terrain.Flush()" after you set the neighbours to fix the terrain normals.
Answer by ProgrammerJoe · Sep 23, 2013 at 02:04 AM
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: http://answers.unity3d.com/questions/17839/how-do-i-use-terrainsetneighbors-to-remove-level-o.html
Your answer
![](https://koobas.hobune.stream/wayback/20220613063138im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Make a simple tree 1 Answer
Bake terrain normal via script 0 Answers
Rotation Transform to face character AND normal to terrain 2 Answers
Procedural mesh artifacts. 1 Answer
Vehicle keep on floor? 1 Answer