Exemple #1
0
 public void AddTextureFormat(Texture2D tx, bool isNormalMap)
 {
     //pixel values don't copy correctly from one texture to another when isNormal is set so unset it.
     SetTextureFormat(tx,
                      new TextureFormatInfo(TextureImporterFormat.ARGB32, MBVersionEditor.GetPlatformString(), TextureImporterFormat.AutomaticTruecolor, isNormalMap),
                      true, false);
 }
Exemple #2
0
        public void AddTextureFormat(Texture2D tx, bool isNormalMap)
        {
            //pixel values don't copy correctly from one texture to another when isNormal is set so unset it.
            TextureFormatInfo toFormat = new TextureFormatInfo(TextureImporterCompression.Uncompressed, false, MBVersionEditor.GetPlatformString(), TextureImporterFormat.RGBA32, isNormalMap);

            SetTextureFormat(tx, toFormat, true, false);
        }
Exemple #3
0
//		public int GetMaximumAtlasDimension(){
//			return MBVersionEditor.GetMaximumAtlasDimension();
//		}

        public string GetPlatformString()
        {
            return(MBVersionEditor.GetPlatformString());
        }