Refactoring Serializing Textures

This commit is contained in:
Masataka SUMI
2021-05-20 18:23:26 +09:00
parent 4400015803
commit f88e8d7286
29 changed files with 199 additions and 171 deletions

View File

@@ -96,7 +96,7 @@ namespace VRM.Samples
return;
}
var vrm = VRMExporter.Export(UniGLTF.MeshExportSettings.Default, m_model, (Texture _) => false, TextureExporter.GetTextureBytesWithMime);
var vrm = VRMExporter.Export(UniGLTF.MeshExportSettings.Default, m_model, new RuntimeTextureSerializer());
var bytes = vrm.ToGlbBytes();
File.WriteAllBytes(path, bytes);
Debug.LogFormat("export to {0}", path);