public void ExportTexture() { var importer = SgtHelper.ExportTextureDialog(generatedTexture, "Flare Texture"); if (importer != null) { importer.textureCompression = TextureImporterCompression.Uncompressed; importer.alphaSource = TextureImporterAlphaSource.None; importer.wrapMode = TextureWrapMode.Clamp; importer.filterMode = FilterMode.Trilinear; importer.anisoLevel = 16; importer.SaveAndReimport(); } }
public void ExportTexture() { var importer = SgtHelper.ExportTextureDialog(generatedTexture, "Aurora MainTex"); if (importer != null) { importer.textureCompression = TextureImporterCompression.Uncompressed; importer.alphaSource = TextureImporterAlphaSource.FromInput; importer.wrapMode = TextureWrapMode.Repeat; importer.filterMode = FilterMode.Trilinear; importer.anisoLevel = 16; importer.alphaIsTransparency = true; importer.SaveAndReimport(); } }
public void ExportOuterTexture() { var importer = SgtHelper.ExportTextureDialog(generatedOuterTexture, "Outer Depth"); if (importer != null) { importer.textureType = TextureImporterType.SingleChannel; importer.textureCompression = TextureImporterCompression.Uncompressed; importer.alphaSource = TextureImporterAlphaSource.FromInput; importer.wrapMode = TextureWrapMode.Clamp; importer.filterMode = FilterMode.Trilinear; importer.anisoLevel = 16; importer.alphaIsTransparency = true; importer.SaveAndReimport(); } }