Experimental: this API is experimental and might be changed or removed in the future.

PaintContext.GatherAlphamap

切换到手册
public void GatherAlphamap (TerrainLayer inputLayer, bool addLayerIfDoesntExist);

参数

inputLayer用于绘制的 TerrainLayer。
addLayerIfDoesntExist设置为 true 可以指定在 inputLayer 尚不存在时将其添加到该地形。设置为 false 可以指定不将地形层添加到该地形。

描述

将 Alpha 贴图信息收集到 sourceRenderTexture 中。

此函数将 PaintContext 中所有地形瓦片的 Alpha 贴图数据收集到 sourceRenderTexture 中。

TerrainPaintUtility.BeginPaintTexture 在内部调用此函数。

另请参阅:PaintContext.ScatterAlphamap