Merge pull request #961 from Santarh/refactorTextureSerializer

Refactoring Serializing Textures
This commit is contained in:
ousttrue
2021-05-20 18:35:09 +09:00
committed by GitHub
29 changed files with 199 additions and 171 deletions

View File

@@ -130,7 +130,7 @@ namespace VRM
}
/// <summary>
///
///
/// </summary>
/// <param name="path"></param>
/// <param name="settings"></param>
@@ -225,7 +225,7 @@ namespace VRM
using (var exporter = new VRMExporter(gltf))
{
exporter.Prepare(target);
exporter.Export(settings.MeshExportSettings, AssetTextureUtil.IsTextureEditorAsset, AssetTextureUtil.GetTextureBytesWithMime);
exporter.Export(settings.MeshExportSettings, new EditorTextureSerializer());
}
var bytes = gltf.ToGlbBytes();
Debug.LogFormat("Export elapsed {0}", sw.Elapsed);