mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-04-20 22:17:41 -05:00
MeshWriter
This commit is contained in:
parent
839f0b27ce
commit
843fa8fd28
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 573f68f30d3f14a4cb8181b07981c6e0
|
||||
guid: f71759cba771a95449d96df3fa37b115
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
Loading…
Reference in New Issue
Block a user