# GatherNormals()

> Gathers the normal information into sourceRenderTexture.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.TerrainTools](/engine/6000.6/script-reference/unityengine/terraintools.md)
* **Assembly:** UnityEngine.TerrainModule

```csharp
public void GatherNormals()
```

### Remarks

This function collects the terrain mesh normalmap data from all Terrain tiles in the PaintContext into `sourceRenderTexture`.

This function is called internally by [TerrainPaintUtility.CollectNormals](/engine/6000.6/script-reference/unityengine/terraintools/terrainpaintutility/collectnormals.md).

Important: There is no corresponding ScatterNormals function, because the normals are not stored, but calculated from the heightmap.

Additional Resources: [PaintContext](/engine/6000.6/script-reference/unityengine/terraintools/paintcontext.md), [PaintContext.GatherHeightmap](/engine/6000.6/script-reference/unityengine/terraintools/paintcontext/gatherheightmap.md)
