Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GatherNormals()

Gathers the normal information into sourceRenderTexture.
Read time 1 minuteLast updated 20 days ago

Definition

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.
Important: There is no corresponding ScatterNormals function, because the normals are not stored, but calculated from the heightmap.