MeshWriter

This commit is contained in:
ousttrue 2021-04-26 13:25:02 +09:00
parent 839f0b27ce
commit 843fa8fd28
2 changed files with 7 additions and 7 deletions

View File

@ -2,16 +2,16 @@ using System;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
using System.Runtime.InteropServices;
using UniGLTF;
using VrmLib;
namespace UniVRM10
{
public static class MeshAdapter
/// <summary>
/// VrmLib.MeshGroup => GLTF
/// </summary>
public static class MeshWriter
{
static void Vec3MinMax(ArraySegment<byte> bytes, glTFAccessor accessor)
{
var positions = SpanLike.Wrap<Vector3>(bytes);
@ -54,7 +54,7 @@ namespace UniVRM10
}
}
static void ExportMesh(this Mesh mesh, List<object> materials, Vrm10Storage storage, glTFMesh gltfMesh, ExportArgs option)
static void ExportMesh(this VrmLib.Mesh mesh, List<object> materials, Vrm10Storage storage, glTFMesh gltfMesh, ExportArgs option)
{
//
// primitive share vertex buffer
@ -195,4 +195,4 @@ namespace UniVRM10
return mesh;
}
}
}
}

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 573f68f30d3f14a4cb8181b07981c6e0
guid: f71759cba771a95449d96df3fa37b115
MonoImporter:
externalObjects: {}
serializedVersion: 2