mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-09-12 05:48:47 -05:00
いちおう byte 型も実装
This commit is contained in:
@@ -79,6 +79,18 @@ namespace UniVRM10
|
||||
SpanLike<uint> indices;
|
||||
switch (mesh.IndexBuffer.Stride)
|
||||
{
|
||||
case 1:
|
||||
{
|
||||
// byte
|
||||
var ushort_indices = mesh.IndexBuffer.GetSpan<byte>();
|
||||
indices = SpanLike.Create<uint>(ushort_indices.Length);
|
||||
for (int i = 0; i < ushort_indices.Length; ++i)
|
||||
{
|
||||
indices[i] = ushort_indices[i];
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
case 2:
|
||||
{
|
||||
// ushort
|
||||
|
||||
Reference in New Issue
Block a user