Exemple #1
0
 protected override void UpdateTerrainData(float[,] data)
 {
     if (mat != null)
     {
         mat.mainTexture            = ProceduralUtils.GenerateTexture2D(data);
         mat.mainTexture.filterMode = FilterMode.Point;
         mat.mainTexture.wrapMode   = TextureWrapMode.Clamp;
     }
 }