コード例 #1
0
 public Texture2D getMap(ParameterMapIndex index)
 {
     while ((int)index >= maps.Count)
     {
         Texture2D t = new Texture2D(width, height);
         maps.Add(t);
     }
     return maps[(int)index];
 }
コード例 #2
0
 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();
 }