mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-08-23 11:05:29 -05:00
Separate Byte4.cs and UShort4.cs
This commit is contained in:
@@ -1,46 +1,11 @@
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.InteropServices;
|
||||
using UnityEngine;
|
||||
using System.IO;
|
||||
using UniJSON;
|
||||
|
||||
namespace UniGLTF
|
||||
{
|
||||
[Serializable, StructLayout(LayoutKind.Sequential, Pack = 1)]
|
||||
public struct Byte4
|
||||
{
|
||||
public readonly byte x;
|
||||
public readonly byte y;
|
||||
public readonly byte z;
|
||||
public readonly byte w;
|
||||
public Byte4(byte _x, byte _y, byte _z, byte _w)
|
||||
{
|
||||
x = _x;
|
||||
y = _y;
|
||||
z = _z;
|
||||
w = _w;
|
||||
}
|
||||
}
|
||||
|
||||
[Serializable, StructLayout(LayoutKind.Sequential, Pack = 1)]
|
||||
public struct UShort4
|
||||
{
|
||||
public readonly ushort x;
|
||||
public readonly ushort y;
|
||||
public readonly ushort z;
|
||||
public readonly ushort w;
|
||||
|
||||
public UShort4(ushort _x, ushort _y, ushort _z, ushort _w)
|
||||
{
|
||||
x = _x;
|
||||
y = _y;
|
||||
z = _z;
|
||||
w = _w;
|
||||
}
|
||||
}
|
||||
|
||||
public static class glTFExtensions
|
||||
{
|
||||
struct ComponentVec
|
||||
@@ -239,14 +204,6 @@ namespace UniGLTF
|
||||
return index;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
static Utf8String s_extensions = Utf8String.From("extensions");
|
||||
|
||||
static bool UsedExtension(this glTF self, string key)
|
||||
|
||||
21
Assets/UniGLTF/Runtime/UniGLTF/IO/Byte4.cs
Normal file
21
Assets/UniGLTF/Runtime/UniGLTF/IO/Byte4.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace UniGLTF
|
||||
{
|
||||
[Serializable, StructLayout(LayoutKind.Sequential, Pack = 1)]
|
||||
public struct Byte4
|
||||
{
|
||||
public readonly byte x;
|
||||
public readonly byte y;
|
||||
public readonly byte z;
|
||||
public readonly byte w;
|
||||
public Byte4(byte _x, byte _y, byte _z, byte _w)
|
||||
{
|
||||
x = _x;
|
||||
y = _y;
|
||||
z = _z;
|
||||
w = _w;
|
||||
}
|
||||
}
|
||||
}
|
||||
11
Assets/UniGLTF/Runtime/UniGLTF/IO/Byte4.cs.meta
Normal file
11
Assets/UniGLTF/Runtime/UniGLTF/IO/Byte4.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7d396586954b6d34a84d9af8638e492e
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
22
Assets/UniGLTF/Runtime/UniGLTF/IO/UShort4.cs
Normal file
22
Assets/UniGLTF/Runtime/UniGLTF/IO/UShort4.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace UniGLTF
|
||||
{
|
||||
[Serializable, StructLayout(LayoutKind.Sequential, Pack = 1)]
|
||||
public struct UShort4
|
||||
{
|
||||
public readonly ushort x;
|
||||
public readonly ushort y;
|
||||
public readonly ushort z;
|
||||
public readonly ushort w;
|
||||
|
||||
public UShort4(ushort _x, ushort _y, ushort _z, ushort _w)
|
||||
{
|
||||
x = _x;
|
||||
y = _y;
|
||||
z = _z;
|
||||
w = _w;
|
||||
}
|
||||
}
|
||||
}
|
||||
11
Assets/UniGLTF/Runtime/UniGLTF/IO/UShort4.cs.meta
Normal file
11
Assets/UniGLTF/Runtime/UniGLTF/IO/UShort4.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b1f199669bb47f747865a96bcd7bcbfb
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user