GetBytesWithMime を VRMShaders に移動

* UniGLTF.GltfTextureExporter.GetBytesWithMime を VRMShaders.AssetTextureUtil.GetTextureBytesWithMime に移動
* テスト NotReadable, Compressed を VRMShaders に移動
* テスト用リソース Resources/4x4.png と 4x4compressed.DDS を VRMShaders に移動
This commit is contained in:
ousttrue
2021-04-12 18:05:21 +09:00
parent 14e5683ed2
commit e35bc5f2fe
32 changed files with 154 additions and 255 deletions

View File

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