文档

Unity Engine

Unity Engine

GatherNormals()

Gathers the normal information into sourceRenderTexture.
阅读时间1 分钟最后更新于 1 个月前

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.