Exemple #1
0
 public Texture sub(Texture subtractive)
 // subtractive blends another texture with this
 {
     for (var i = width * height - 1; i >= 0; i--)
     {
         pixel[i] = ColorUtility.sub(pixel[i], subtractive.pixel[i]);
     }
     return(this);
 }