public void ExportTexture() { var importer = SgtHelper.ExportTextureDialog(generatedTexture, "Water Gradient"); if (importer != null) { importer.textureCompression = UnityEditor.TextureImporterCompression.Uncompressed; importer.wrapMode = TextureWrapMode.Clamp; importer.filterMode = FilterMode.Bilinear; importer.anisoLevel = 16; importer.SaveAndReimport(); } }
public void ExportTexture() { var importer = SgtHelper.ExportTextureDialog(generatedTexture, "Flare Texture (Generated)"); 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, "Jovian Depth"); if (importer != null) { importer.textureCompression = TextureImporterCompression.Uncompressed; importer.alphaSource = TextureImporterAlphaSource.FromInput; importer.wrapMode = TextureWrapMode.Clamp; importer.filterMode = FilterMode.Trilinear; importer.anisoLevel = 16; importer.alphaIsTransparency = true; importer.SaveAndReimport(); } }
public void ExportTexture() { var importer = SgtHelper.ExportTextureDialog(generatedTexture, "Aurora MainTex"); if (importer != null) { importer.textureCompression = UnityEditor.TextureImporterCompression.Uncompressed; importer.alphaSource = UnityEditor.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, "Atmosphere OuterDepth"); if (importer != null) { importer.textureType = UnityEditor.TextureImporterType.SingleChannel; importer.textureCompression = UnityEditor.TextureImporterCompression.Uncompressed; importer.alphaSource = UnityEditor.TextureImporterAlphaSource.FromInput; importer.wrapMode = TextureWrapMode.Clamp; importer.filterMode = FilterMode.Trilinear; importer.anisoLevel = 16; importer.alphaIsTransparency = true; importer.SaveAndReimport(); } }