Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


maskMapTexture

The mask map texture used by the terrain layer.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.TerrainModule
public Texture2D maskMapTexture { get; set; }

Remarks

The content of each channel varies by the terrain shader. For HDRP TerrainLit shader, the channels are:
R: Height - used when doing height based blending
G: Smoothness
B: Metallic.