public Texture2D getMap(ParameterMapIndex index) { while ((int)index >= maps.Count) { Texture2D t = new Texture2D(width, height); maps.Add(t); } return maps[(int)index]; }
public void setMap(ParameterMapIndex index, Texture2D input) { while ((int)index >= maps.Count) { Texture2D t = new Texture2D(width, height); maps.Add(t); } maps[(int)index].SetPixels(input.GetPixels()); maps[(int)index].Apply(); }