Пример #1
0
 public static bool WriteImage(this Texture2D source, string filename, BabylonImageFormat format)
 {
     if (format == BabylonImageFormat.PNG)
     {
         return(source.WriteImagePNG(filename));
     }
     else
     {
         return(source.WriteImageJPG(filename));
     }
 }