protected void UpdateTerrainTexture(float[,] data)
 {
     t.terrainData.alphamapResolution = size.x;
     t.terrainData.SetAlphamaps(0, 0, ProceduralUtils.GenerateTextureData(data, layers.ToArray()));
 }