文档

Unity Engine

Unity Engine

UpdateGIMaterials

Schedules an update of the albedo and emissive Textures of a system that contains the Terrain.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.TerrainModule

UpdateGIMaterials(Terrain)

Schedules an update of the albedo and emissive Textures of a system that contains the Terrain.
警告
Deprecated. Enlighten realtime Global Illumination is deprecated and will be removed in a future release. #from(6000.7)
public static void UpdateGIMaterials(this Terrain terrain)

Parameters

terrain

Remarks

The second overload specifies a region of the Terrain that needs to be updated. This makes sure that only the systems that overlap with the specified rectangle get updated, which could help improve performance. The coordinates are specified the same way as in TerrainData.SetAlphamaps.

UpdateGIMaterials(Terrain, int, int, int, int)

Schedules an update of the albedo and emissive Textures of a system that contains the Terrain.
警告
Deprecated. Enlighten realtime Global Illumination is deprecated and will be removed in a future release. #from(6000.7)
public static void UpdateGIMaterials(this Terrain terrain, int x, int y, int width, int height)

Parameters

terrain




width


height

Remarks

The second overload specifies a region of the Terrain that needs to be updated. This makes sure that only the systems that overlap with the specified rectangle get updated, which could help improve performance. The coordinates are specified the same way as in TerrainData.SetAlphamaps.