From 423b7fd8c5971cd4dd8f0bd68a30a34ef4dd3af2 Mon Sep 17 00:00:00 2001 From: ousttrue Date: Thu, 14 Jul 2022 15:32:38 +0900 Subject: [PATCH 1/5] =?UTF-8?q?=E3=83=86=E3=82=B9=E3=83=88=E8=BF=BD?= =?UTF-8?q?=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit HasNormal が true にならない --- .../Runtime/UniGLTF/IO/MeshIO/MeshData.cs | 11 +- .../Runtime/UniGLTF/IO/MeshIO/MeshVertex.cs | 2 +- .../UniGLTF/IO/MeshIO/SkinnedMeshVertex.cs | 2 +- Assets/UniGLTF/Tests/UniGLTF/MeshDataTests.cs | 210 ++++++++++++++++++ .../Tests/UniGLTF/MeshDataTests.cs.meta | 11 + 5 files changed, 229 insertions(+), 7 deletions(-) create mode 100644 Assets/UniGLTF/Tests/UniGLTF/MeshDataTests.cs create mode 100644 Assets/UniGLTF/Tests/UniGLTF/MeshDataTests.cs.meta diff --git a/Assets/UniGLTF/Runtime/UniGLTF/IO/MeshIO/MeshData.cs b/Assets/UniGLTF/Runtime/UniGLTF/IO/MeshIO/MeshData.cs index f73c6de45d..cb54df9cab 100644 --- a/Assets/UniGLTF/Runtime/UniGLTF/IO/MeshIO/MeshData.cs +++ b/Assets/UniGLTF/Runtime/UniGLTF/IO/MeshIO/MeshData.cs @@ -8,7 +8,7 @@ namespace UniGLTF { - internal class MeshData : IDisposable + public class MeshData : IDisposable { private NativeArray _vertices; public NativeArray Vertices => _vertices.GetSubArray(0, _currentVertexCount); @@ -63,12 +63,13 @@ void Clear() /// バッファ共有方式(vrm-0.x)の判定。 /// import の後方互換性のためで、vrm-1.0 export では使いません。 /// - /// * バッファ共用方式は VertexBuffer が同じでSubMeshの index buffer がスライドしていく方式 + /// バッファ共用方式は連結済みの VertexBuffer を共有して、SubMeshの index buffer による参照がスライドしていく方式 + /// /// * バッファがひとつのとき /// * すべての primitive の attribute が 同一の accessor を使用している時 /// /// - private static bool HasSharedVertexBuffer(glTFMesh gltfMesh) + public static bool HasSharedVertexBuffer(glTFMesh gltfMesh) { glTFAttributes lastAttributes = null; foreach (var prim in gltfMesh.primitives) @@ -324,7 +325,7 @@ private void ImportMeshIndependentVertexBuffer(GltfData data, glTFMesh gltfMesh, var texCoords1 = primitives.GetTexCoords1(data, positions.Length); var colors = primitives.GetColors(data, positions.Length); var skinning = SkinningInfo.Create(data, gltfMesh, primitives); - AssignBoneWeight = skinning.ShouldSetRendererNodeAsBone ; + AssignBoneWeight = skinning.ShouldSetRendererNodeAsBone; CheckAttributeUsages(primitives); @@ -456,7 +457,7 @@ private void ImportMeshSharingVertexBuffer(GltfData data, glTFMesh gltfMesh, IAx var texCoords1 = primitives.GetTexCoords1(data, positions.Length); var colors = primitives.GetColors(data, positions.Length); var skinning = SkinningInfo.Create(data, gltfMesh, primitives); - AssignBoneWeight = skinning.ShouldSetRendererNodeAsBone ; + AssignBoneWeight = skinning.ShouldSetRendererNodeAsBone; CheckAttributeUsages(primitives); diff --git a/Assets/UniGLTF/Runtime/UniGLTF/IO/MeshIO/MeshVertex.cs b/Assets/UniGLTF/Runtime/UniGLTF/IO/MeshIO/MeshVertex.cs index 5619fa84d9..5a8bc0f45b 100644 --- a/Assets/UniGLTF/Runtime/UniGLTF/IO/MeshIO/MeshVertex.cs +++ b/Assets/UniGLTF/Runtime/UniGLTF/IO/MeshIO/MeshVertex.cs @@ -11,7 +11,7 @@ namespace UniGLTF /// そのままGPUにアップロードされる /// [Serializable, StructLayout(LayoutKind.Sequential)] - internal readonly struct MeshVertex + public readonly struct MeshVertex { private readonly Vector3 _position; private readonly Vector3 _normal; diff --git a/Assets/UniGLTF/Runtime/UniGLTF/IO/MeshIO/SkinnedMeshVertex.cs b/Assets/UniGLTF/Runtime/UniGLTF/IO/MeshIO/SkinnedMeshVertex.cs index 5850aff658..a59d0fff90 100644 --- a/Assets/UniGLTF/Runtime/UniGLTF/IO/MeshIO/SkinnedMeshVertex.cs +++ b/Assets/UniGLTF/Runtime/UniGLTF/IO/MeshIO/SkinnedMeshVertex.cs @@ -9,7 +9,7 @@ namespace UniGLTF /// そのままGPUにアップロードされる /// [Serializable, StructLayout(LayoutKind.Sequential)] - internal readonly struct SkinnedMeshVertex + public readonly struct SkinnedMeshVertex { private readonly float _boneWeight0; private readonly float _boneWeight1; diff --git a/Assets/UniGLTF/Tests/UniGLTF/MeshDataTests.cs b/Assets/UniGLTF/Tests/UniGLTF/MeshDataTests.cs new file mode 100644 index 0000000000..fa255e4242 --- /dev/null +++ b/Assets/UniGLTF/Tests/UniGLTF/MeshDataTests.cs @@ -0,0 +1,210 @@ +using System; +using NUnit.Framework; +using UnityEngine; + +namespace UniGLTF +{ + public class MeshDataTests + { + /// + /// shared + /// 3 2 + /// +-+ + /// |/| + /// +-+ + /// 0 1 + /// + /// divided + /// 2 + /// + + /// /| + /// +-+ + /// 0 1 + /// 4 3 + /// +-+ + /// |/ + /// + + /// 5 + /// + static byte[] CreateTestData(bool shared, bool hasNormal) + { + var data = new ExportingGltfData(); + data.Gltf.asset.version = "2.0"; + var mesh = new glTFMesh(); + data.Gltf.meshes.Add(mesh); + + if (shared) + { + var positions = new Vector3[] + { + new Vector3(), + new Vector3(), + new Vector3(), + new Vector3(), + }; + var normals = new Vector3[] + { + new Vector3(), + new Vector3(), + new Vector3(), + new Vector3(), + }; + + var position = data.ExtendBufferAndGetAccessorIndex(positions); + var normal = data.ExtendBufferAndGetAccessorIndex(normals); + { + var prim = new glTFPrimitives + { + attributes = new glTFAttributes + { + POSITION = position, + }, + indices = data.ExtendBufferAndGetAccessorIndex(new uint[] { 0, 1, 2 }), + }; + mesh.primitives.Add(prim); + if (hasNormal) + { + prim.attributes.NORMAL = normal; + } + } + { + var prim = new glTFPrimitives + { + attributes = new glTFAttributes + { + POSITION = position, + }, + indices = data.ExtendBufferAndGetAccessorIndex(new uint[] { 2, 3, 0 }), + }; + mesh.primitives.Add(prim); + if (hasNormal) + { + prim.attributes.NORMAL = normal; + } + } + } + else + { + { + var positions = new Vector3[] + { + new Vector3(), + new Vector3(), + new Vector3(), + }; + var position = data.ExtendBufferAndGetAccessorIndex(positions); + var prim = new glTFPrimitives + { + attributes = new glTFAttributes + { + POSITION = position, + }, + indices = data.ExtendBufferAndGetAccessorIndex(new uint[] { 0, 1, 2 }), + }; + if (hasNormal) + { + var normals = new Vector3[] + { + new Vector3(), + new Vector3(), + new Vector3(), + }; + var normal = data.ExtendBufferAndGetAccessorIndex(normals); + prim.attributes.NORMAL = normal; + } + mesh.primitives.Add(prim); + } + { + var positions = new Vector3[] + { + new Vector3(), + new Vector3(), + new Vector3(), + }; + var position = data.ExtendBufferAndGetAccessorIndex(positions); + var prim = new glTFPrimitives + { + attributes = new glTFAttributes + { + POSITION = position, + }, + indices = data.ExtendBufferAndGetAccessorIndex(new uint[] { 0, 1, 2 }), + }; + if (hasNormal) + { + var normals = new Vector3[] + { + new Vector3(), + new Vector3(), + new Vector3(), + }; + var normal = data.ExtendBufferAndGetAccessorIndex(normals); + prim.attributes.NORMAL = normal; + } + mesh.primitives.Add(prim); + } + } + return data.ToGlbBytes(); + } + + [Test] + public void SharedHasNormalTest() + { + var glb = CreateTestData(true, true); + using (var parsed = new GlbBinaryParser(glb, "test").Parse()) + { + Assert.True(MeshData.HasSharedVertexBuffer(parsed.GLTF.meshes[0])); + using (var data = new MeshData(6, 6)) + { + data.LoadFromGltf(parsed, 0, new ReverseZ()); + Assert.True(data.HasNormal); + } + } + } + + [Test] + public void SharedNotHasNormalTest() + { + var glb = CreateTestData(true, false); + using (var parsed = new GlbBinaryParser(glb, "test").Parse()) + { + Assert.True(MeshData.HasSharedVertexBuffer(parsed.GLTF.meshes[0])); + using (var data = new MeshData(6, 6)) + { + data.LoadFromGltf(parsed, 0, new ReverseZ()); + Assert.False(data.HasNormal); + } + } + } + + [Test] + public void DividedHasNormalTest() + { + var glb = CreateTestData(false, true); + using (var parsed = new GlbBinaryParser(glb, "test").Parse()) + { + Assert.False(MeshData.HasSharedVertexBuffer(parsed.GLTF.meshes[0])); + using (var data = new MeshData(6, 6)) + { + data.LoadFromGltf(parsed, 0, new ReverseZ()); + Assert.True(data.HasNormal); + } + } + } + + [Test] + public void DividedNotHasNormalTest() + { + var glb = CreateTestData(false, false); + using (var parsed = new GlbBinaryParser(glb, "test").Parse()) + { + Assert.False(MeshData.HasSharedVertexBuffer(parsed.GLTF.meshes[0])); + using (var data = new MeshData(6, 6)) + { + data.LoadFromGltf(parsed, 0, new ReverseZ()); + Assert.False(data.HasNormal); + } + } + } + } +} diff --git a/Assets/UniGLTF/Tests/UniGLTF/MeshDataTests.cs.meta b/Assets/UniGLTF/Tests/UniGLTF/MeshDataTests.cs.meta new file mode 100644 index 0000000000..abeec97706 --- /dev/null +++ b/Assets/UniGLTF/Tests/UniGLTF/MeshDataTests.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: e1e46a1dd2717854194c1b10ec096bef +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: From 585b221d2b974c84db5407b0fc64ee95c9d7d133 Mon Sep 17 00:00:00 2001 From: ousttrue Date: Thu, 14 Jul 2022 15:37:47 +0900 Subject: [PATCH 2/5] =?UTF-8?q?HasNormal=E3=80=80=E3=81=AE=E4=BD=BF?= =?UTF-8?q?=E3=81=84=E6=96=B9=E3=82=92=E9=80=86=E3=81=AB=E3=81=97=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * default = false * if exists => true --- .../Runtime/UniGLTF/IO/MeshIO/MeshData.cs | 30 +++++++++---------- 1 file changed, 14 insertions(+), 16 deletions(-) diff --git a/Assets/UniGLTF/Runtime/UniGLTF/IO/MeshIO/MeshData.cs b/Assets/UniGLTF/Runtime/UniGLTF/IO/MeshIO/MeshData.cs index cb54df9cab..aaefc0aae4 100644 --- a/Assets/UniGLTF/Runtime/UniGLTF/IO/MeshIO/MeshData.cs +++ b/Assets/UniGLTF/Runtime/UniGLTF/IO/MeshIO/MeshData.cs @@ -13,6 +13,7 @@ public class MeshData : IDisposable private NativeArray _vertices; public NativeArray Vertices => _vertices.GetSubArray(0, _currentVertexCount); int _currentVertexCount = 0; + private NativeArray _skinnedMeshVertices; public NativeArray SkinnedMeshVertices => _skinnedMeshVertices.GetSubArray(0, _currentSkinCount); int _currentSkinCount = 0; @@ -23,12 +24,14 @@ public class MeshData : IDisposable private readonly List _subMeshes = new List(); public IReadOnlyList SubMeshes => _subMeshes; + private readonly List _materialIndices = new List(); public IReadOnlyList MaterialIndices => _materialIndices; + private readonly List _blendShapes = new List(); public IReadOnlyList BlendShapes => _blendShapes; - public bool HasNormal { get; private set; } = true; + public bool HasNormal { get; private set; } public string Name { get; private set; } public bool AssignBoneWeight { get; private set; } @@ -197,15 +200,6 @@ public static (int VertexCapacity, int IndexCapacity) GetCapacity(GltfData data, return (vertexCount, indexCount); } - /// - /// 各種頂点属性が使われているかどうかをチェックし、使われていなかったらフラグを切る - /// MEMO: O(1)で検知する手段がありそう - /// - private void CheckAttributeUsages(glTFPrimitives primitives) - { - if (!primitives.HasNormal()) HasNormal = false; - } - private BlendShape GetOrCreateBlendShape(int i) { if (i < _blendShapes.Count && _blendShapes[i] != null) @@ -318,17 +312,19 @@ private void ImportMeshIndependentVertexBuffer(GltfData data, glTFMesh gltfMesh, var vertexOffset = _currentVertexCount; var indexBufferCount = primitives.indices; - // position は必ずある + // position は必ず存在する。normal, texCoords, colors, skinning は無いかもしれない var positions = primitives.GetPositions(data); var normals = primitives.GetNormals(data, positions.Length); + if (normals.HasValue) + { + HasNormal = true; + } var texCoords0 = primitives.GetTexCoords0(data, positions.Length); var texCoords1 = primitives.GetTexCoords1(data, positions.Length); var colors = primitives.GetColors(data, positions.Length); var skinning = SkinningInfo.Create(data, gltfMesh, primitives); AssignBoneWeight = skinning.ShouldSetRendererNodeAsBone; - CheckAttributeUsages(primitives); - for (var i = 0; i < positions.Length; ++i) { var position = inverter.InvertVector3(positions[i]); @@ -448,19 +444,21 @@ private void ImportMeshSharingVertexBuffer(GltfData data, glTFMesh gltfMesh, IAx var isOldVersion = data.GLTF.IsGeneratedUniGLTFAndOlder(1, 16); { - // 同じVertexBufferを共有しているので先頭のモノを使う + // すべての primitives で連結済みの VertexBuffer を共有している。代表して先頭を使う var primitives = gltfMesh.primitives.First(); var positions = primitives.GetPositions(data); var normals = primitives.GetNormals(data, positions.Length); + if (normals.HasValue) + { + HasNormal = true; + } var texCoords0 = primitives.GetTexCoords0(data, positions.Length); var texCoords1 = primitives.GetTexCoords1(data, positions.Length); var colors = primitives.GetColors(data, positions.Length); var skinning = SkinningInfo.Create(data, gltfMesh, primitives); AssignBoneWeight = skinning.ShouldSetRendererNodeAsBone; - CheckAttributeUsages(primitives); - for (var i = 0; i < positions.Length; ++i) { var position = inverter.InvertVector3(positions[i]); From 3a3bb705a46d526052c9f78be0f9ce1f7e3e536d Mon Sep 17 00:00:00 2001 From: ousttrue Date: Thu, 14 Jul 2022 15:39:57 +0900 Subject: [PATCH 3/5] rename AssignBoneWeight to ShouldSetRendererNodeAsBone --- Assets/UniGLTF/Runtime/UniGLTF/IO/MeshIO/MeshData.cs | 8 ++++---- Assets/UniGLTF/Runtime/UniGLTF/IO/MeshIO/MeshUploader.cs | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Assets/UniGLTF/Runtime/UniGLTF/IO/MeshIO/MeshData.cs b/Assets/UniGLTF/Runtime/UniGLTF/IO/MeshIO/MeshData.cs index aaefc0aae4..387e32eff6 100644 --- a/Assets/UniGLTF/Runtime/UniGLTF/IO/MeshIO/MeshData.cs +++ b/Assets/UniGLTF/Runtime/UniGLTF/IO/MeshIO/MeshData.cs @@ -33,7 +33,7 @@ public class MeshData : IDisposable public bool HasNormal { get; private set; } public string Name { get; private set; } - public bool AssignBoneWeight { get; private set; } + public bool ShouldSetRendererNodeAsBone { get; private set; } public MeshData(int vertexCapacity, int indexCapacity) { @@ -59,7 +59,7 @@ void Clear() _blendShapes.Clear(); Name = null; HasNormal = false; - AssignBoneWeight = false; + ShouldSetRendererNodeAsBone = false; } /// @@ -323,7 +323,7 @@ private void ImportMeshIndependentVertexBuffer(GltfData data, glTFMesh gltfMesh, var texCoords1 = primitives.GetTexCoords1(data, positions.Length); var colors = primitives.GetColors(data, positions.Length); var skinning = SkinningInfo.Create(data, gltfMesh, primitives); - AssignBoneWeight = skinning.ShouldSetRendererNodeAsBone; + ShouldSetRendererNodeAsBone = skinning.ShouldSetRendererNodeAsBone; for (var i = 0; i < positions.Length; ++i) { @@ -457,7 +457,7 @@ private void ImportMeshSharingVertexBuffer(GltfData data, glTFMesh gltfMesh, IAx var texCoords1 = primitives.GetTexCoords1(data, positions.Length); var colors = primitives.GetColors(data, positions.Length); var skinning = SkinningInfo.Create(data, gltfMesh, primitives); - AssignBoneWeight = skinning.ShouldSetRendererNodeAsBone; + ShouldSetRendererNodeAsBone = skinning.ShouldSetRendererNodeAsBone; for (var i = 0; i < positions.Length; ++i) { diff --git a/Assets/UniGLTF/Runtime/UniGLTF/IO/MeshIO/MeshUploader.cs b/Assets/UniGLTF/Runtime/UniGLTF/IO/MeshIO/MeshUploader.cs index 6190804c5e..7185b724e2 100644 --- a/Assets/UniGLTF/Runtime/UniGLTF/IO/MeshIO/MeshUploader.cs +++ b/Assets/UniGLTF/Runtime/UniGLTF/IO/MeshIO/MeshUploader.cs @@ -138,7 +138,7 @@ public static async Task BuildMeshAndUploadAsync( { Mesh = mesh, Materials = data.MaterialIndices.Select(materialFromIndex).ToArray(), - ShouldSetRendererNodeAsBone = data.AssignBoneWeight, + ShouldSetRendererNodeAsBone = data.ShouldSetRendererNodeAsBone, }; await awaitCaller.NextFrame(); From 067cd98fab2c118590ff1c1184d72fcd89831d35 Mon Sep 17 00:00:00 2001 From: ousttrue Date: Fri, 15 Jul 2022 14:24:54 +0900 Subject: [PATCH 4/5] internal use InternalsVisibleTo --- Assets/UniGLTF/Runtime/AssemblyInfo.cs | 5 +++++ Assets/UniGLTF/Runtime/AssemblyInfo.cs.meta | 11 +++++++++++ Assets/UniGLTF/Runtime/UniGLTF/IO/MeshIO/MeshData.cs | 2 +- .../UniGLTF/Runtime/UniGLTF/IO/MeshIO/MeshVertex.cs | 2 +- .../Runtime/UniGLTF/IO/MeshIO/SkinnedMeshVertex.cs | 2 +- 5 files changed, 19 insertions(+), 3 deletions(-) create mode 100644 Assets/UniGLTF/Runtime/AssemblyInfo.cs create mode 100644 Assets/UniGLTF/Runtime/AssemblyInfo.cs.meta diff --git a/Assets/UniGLTF/Runtime/AssemblyInfo.cs b/Assets/UniGLTF/Runtime/AssemblyInfo.cs new file mode 100644 index 0000000000..67e2c8115e --- /dev/null +++ b/Assets/UniGLTF/Runtime/AssemblyInfo.cs @@ -0,0 +1,5 @@ +#if UNITY_EDITOR +using System.Runtime.CompilerServices; + +[assembly: InternalsVisibleTo("UniGLTF.Tests")] +#endif \ No newline at end of file diff --git a/Assets/UniGLTF/Runtime/AssemblyInfo.cs.meta b/Assets/UniGLTF/Runtime/AssemblyInfo.cs.meta new file mode 100644 index 0000000000..97a459ad48 --- /dev/null +++ b/Assets/UniGLTF/Runtime/AssemblyInfo.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 7aed15fa830416246b0c408322cd4099 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/UniGLTF/Runtime/UniGLTF/IO/MeshIO/MeshData.cs b/Assets/UniGLTF/Runtime/UniGLTF/IO/MeshIO/MeshData.cs index 387e32eff6..55097373c5 100644 --- a/Assets/UniGLTF/Runtime/UniGLTF/IO/MeshIO/MeshData.cs +++ b/Assets/UniGLTF/Runtime/UniGLTF/IO/MeshIO/MeshData.cs @@ -8,7 +8,7 @@ namespace UniGLTF { - public class MeshData : IDisposable + internal class MeshData : IDisposable { private NativeArray _vertices; public NativeArray Vertices => _vertices.GetSubArray(0, _currentVertexCount); diff --git a/Assets/UniGLTF/Runtime/UniGLTF/IO/MeshIO/MeshVertex.cs b/Assets/UniGLTF/Runtime/UniGLTF/IO/MeshIO/MeshVertex.cs index 5a8bc0f45b..5619fa84d9 100644 --- a/Assets/UniGLTF/Runtime/UniGLTF/IO/MeshIO/MeshVertex.cs +++ b/Assets/UniGLTF/Runtime/UniGLTF/IO/MeshIO/MeshVertex.cs @@ -11,7 +11,7 @@ namespace UniGLTF /// そのままGPUにアップロードされる /// [Serializable, StructLayout(LayoutKind.Sequential)] - public readonly struct MeshVertex + internal readonly struct MeshVertex { private readonly Vector3 _position; private readonly Vector3 _normal; diff --git a/Assets/UniGLTF/Runtime/UniGLTF/IO/MeshIO/SkinnedMeshVertex.cs b/Assets/UniGLTF/Runtime/UniGLTF/IO/MeshIO/SkinnedMeshVertex.cs index a59d0fff90..5850aff658 100644 --- a/Assets/UniGLTF/Runtime/UniGLTF/IO/MeshIO/SkinnedMeshVertex.cs +++ b/Assets/UniGLTF/Runtime/UniGLTF/IO/MeshIO/SkinnedMeshVertex.cs @@ -9,7 +9,7 @@ namespace UniGLTF /// そのままGPUにアップロードされる /// [Serializable, StructLayout(LayoutKind.Sequential)] - public readonly struct SkinnedMeshVertex + internal readonly struct SkinnedMeshVertex { private readonly float _boneWeight0; private readonly float _boneWeight1; From 663271c129f4fcf5e99727f8696aa50fe32c7488 Mon Sep 17 00:00:00 2001 From: ichi23 Date: Fri, 22 Jul 2022 16:07:02 +0900 Subject: [PATCH 5/5] update versions --- Assets/UniGLTF/Runtime/UniGLTF/UniGLTFVersion.cs | 4 ++-- Assets/UniGLTF/package.json | 4 ++-- Assets/VRM/Runtime/Format/VRMVersion.cs | 4 ++-- Assets/VRM/package.json | 6 +++--- Assets/VRM10/package.json | 6 +++--- Assets/VRMShaders/package.json | 2 +- 6 files changed, 13 insertions(+), 13 deletions(-) diff --git a/Assets/UniGLTF/Runtime/UniGLTF/UniGLTFVersion.cs b/Assets/UniGLTF/Runtime/UniGLTF/UniGLTFVersion.cs index f32e2a0e6e..5164008b7e 100644 --- a/Assets/UniGLTF/Runtime/UniGLTF/UniGLTFVersion.cs +++ b/Assets/UniGLTF/Runtime/UniGLTF/UniGLTFVersion.cs @@ -5,7 +5,7 @@ public static partial class UniGLTFVersion { public const int MAJOR = 2; public const int MINOR = 37; - public const int PATCH = 0; - public const string VERSION = "2.37.0"; + public const int PATCH = 1; + public const string VERSION = "2.37.1"; } } diff --git a/Assets/UniGLTF/package.json b/Assets/UniGLTF/package.json index 95a002e5ec..c2cd7b8c36 100644 --- a/Assets/UniGLTF/package.json +++ b/Assets/UniGLTF/package.json @@ -1,6 +1,6 @@ { "name": "com.vrmc.gltf", - "version": "0.101.0", + "version": "0.101.1", "displayName": "UniGLTF", "description": "GLTF importer and exporter", "unity": "2019.4", @@ -11,6 +11,6 @@ "name": "VRM Consortium" }, "dependencies": { - "com.vrmc.vrmshaders": "0.101.0" + "com.vrmc.vrmshaders": "0.101.1" } } \ No newline at end of file diff --git a/Assets/VRM/Runtime/Format/VRMVersion.cs b/Assets/VRM/Runtime/Format/VRMVersion.cs index a99d41d78a..4c61305d0f 100644 --- a/Assets/VRM/Runtime/Format/VRMVersion.cs +++ b/Assets/VRM/Runtime/Format/VRMVersion.cs @@ -5,7 +5,7 @@ public static partial class VRMVersion { public const int MAJOR = 0; public const int MINOR = 101; - public const int PATCH = 0; - public const string VERSION = "0.101.0"; + public const int PATCH = 1; + public const string VERSION = "0.101.1"; } } diff --git a/Assets/VRM/package.json b/Assets/VRM/package.json index 52dcd6d3c8..89e44c0b17 100644 --- a/Assets/VRM/package.json +++ b/Assets/VRM/package.json @@ -1,6 +1,6 @@ { "name": "com.vrmc.univrm", - "version": "0.101.0", + "version": "0.101.1", "displayName": "VRM", "description": "VRM importer", "unity": "2019.4", @@ -14,8 +14,8 @@ "name": "VRM Consortium" }, "dependencies": { - "com.vrmc.vrmshaders": "0.101.0", - "com.vrmc.gltf": "0.101.0" + "com.vrmc.vrmshaders": "0.101.1", + "com.vrmc.gltf": "0.101.1" }, "samples": [ { diff --git a/Assets/VRM10/package.json b/Assets/VRM10/package.json index 4454537d2c..a7e8bc24e2 100644 --- a/Assets/VRM10/package.json +++ b/Assets/VRM10/package.json @@ -1,6 +1,6 @@ { "name": "com.vrmc.vrm", - "version": "0.101.0", + "version": "0.101.1", "displayName": "VRM-1.0β", "description": "VRM-1.0β importer", "unity": "2019.4", @@ -14,8 +14,8 @@ "name": "VRM Consortium" }, "dependencies": { - "com.vrmc.vrmshaders": "0.101.0", - "com.vrmc.gltf": "0.101.0" + "com.vrmc.vrmshaders": "0.101.1", + "com.vrmc.gltf": "0.101.1" }, "samples": [ { diff --git a/Assets/VRMShaders/package.json b/Assets/VRMShaders/package.json index 5d31a41379..8197124245 100644 --- a/Assets/VRMShaders/package.json +++ b/Assets/VRMShaders/package.json @@ -1,6 +1,6 @@ { "name": "com.vrmc.vrmshaders", - "version": "0.101.0", + "version": "0.101.1", "displayName": "VRM Shaders", "description": "VRM Shaders", "unity": "2019.4",