mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-05-13 22:09:53 -05:00
Merge branch 'master' into disassemblyVrmShaders3
This commit is contained in:
commit
c0d2ca06cf
|
|
@ -59,7 +59,8 @@ namespace UniGLTF
|
|||
}
|
||||
else
|
||||
{
|
||||
throw new Exception($"{key} is not converted.");
|
||||
// throw new Exception($"{key} is not converted.");
|
||||
Debug.LogWarning($"{key} is not converted.");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ namespace UniGLTF
|
|||
{
|
||||
public const int MAJOR = 0;
|
||||
public const int MINOR = 124;
|
||||
public const int PATCH = 1;
|
||||
public const string VERSION = "0.124.1";
|
||||
public const int PATCH = 2;
|
||||
public const string VERSION = "0.124.2";
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ namespace UniGLTF
|
|||
{
|
||||
public const int MAJOR = 2;
|
||||
public const int MINOR = 60;
|
||||
public const int PATCH = 1;
|
||||
public const string VERSION = "2.60.1";
|
||||
public const int PATCH = 2;
|
||||
public const string VERSION = "2.60.2";
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "com.vrmc.gltf",
|
||||
"version": "0.124.1",
|
||||
"version": "0.124.2",
|
||||
"displayName": "UniGLTF",
|
||||
"description": "GLTF importer and exporter",
|
||||
"unity": "2021.3",
|
||||
|
|
@ -11,7 +11,7 @@
|
|||
"name": "VRM Consortium"
|
||||
},
|
||||
"dependencies": {
|
||||
"com.vrmc.vrmshaders": "0.124.1",
|
||||
"com.vrmc.vrmshaders": "0.124.2",
|
||||
"com.unity.modules.animation": "1.0.0"
|
||||
},
|
||||
"samples": [
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "com.vrmc.univrm",
|
||||
"version": "0.124.1",
|
||||
"version": "0.124.2",
|
||||
"displayName": "VRM",
|
||||
"description": "VRM importer",
|
||||
"unity": "2021.3",
|
||||
|
|
@ -14,8 +14,8 @@
|
|||
"name": "VRM Consortium"
|
||||
},
|
||||
"dependencies": {
|
||||
"com.vrmc.vrmshaders": "0.124.1",
|
||||
"com.vrmc.gltf": "0.124.1",
|
||||
"com.vrmc.vrmshaders": "0.124.2",
|
||||
"com.vrmc.gltf": "0.124.2",
|
||||
"com.unity.ugui": "1.0.0"
|
||||
},
|
||||
"samples": [
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ namespace UniVRM10
|
|||
/// </summary>
|
||||
public static class Vrm10SerializerGenerator
|
||||
{
|
||||
struct GenerateInfo
|
||||
private struct GenerateInfo
|
||||
{
|
||||
public string JsonSchema;
|
||||
public string FormatDir;
|
||||
|
|
@ -33,7 +33,8 @@ namespace UniVRM10
|
|||
}
|
||||
}
|
||||
|
||||
const string SPEC_DIR = "vrm-specification/specification";
|
||||
private const string Vrm10SpecDir = "vrm-specification/specification";
|
||||
private const string Vrm10FormatGeneratedDir = "Assets/VRM10/Runtime/Format";
|
||||
|
||||
public static void Run(bool debug)
|
||||
{
|
||||
|
|
@ -45,45 +46,44 @@ namespace UniVRM10
|
|||
{
|
||||
// VRMC_hdr_emissiveMultiplier
|
||||
new GenerateInfo(
|
||||
$"{SPEC_DIR}/VRMC_materials_hdr_emissiveMultiplier-1.0/schema/VRMC_materials_hdr_emissiveMultiplier.json",
|
||||
$"{Vrm10SpecDir}/VRMC_materials_hdr_emissiveMultiplier-1.0/schema/VRMC_materials_hdr_emissiveMultiplier.json",
|
||||
"Assets/UniGLTF/Runtime/UniGLTF/Format/ExtensionsAndExtras/EmissiveMultiplier"
|
||||
),
|
||||
|
||||
// VRMC_vrm
|
||||
new GenerateInfo(
|
||||
$"{SPEC_DIR}/VRMC_vrm-1.0/schema/VRMC_vrm.schema.json",
|
||||
"Assets/VRM10/Runtime/Format/Vrm"
|
||||
$"{Vrm10SpecDir}/VRMC_vrm-1.0/schema/VRMC_vrm.schema.json",
|
||||
$"{Vrm10FormatGeneratedDir}/Vrm"
|
||||
),
|
||||
|
||||
// VRMC_materials_mtoon
|
||||
new GenerateInfo(
|
||||
$"{SPEC_DIR}/VRMC_materials_mtoon-1.0/schema/VRMC_materials_mtoon.schema.json",
|
||||
"Assets/VRMShaders/VRM10/Format/Runtime/MaterialsMToon",
|
||||
"Assets/VRM10/Runtime/Format/MaterialsMToon"
|
||||
$"{Vrm10SpecDir}/VRMC_materials_mtoon-1.0/schema/VRMC_materials_mtoon.schema.json",
|
||||
$"{Vrm10FormatGeneratedDir}/MaterialsMToon"
|
||||
),
|
||||
|
||||
// VRMC_springBone
|
||||
new GenerateInfo(
|
||||
$"{SPEC_DIR}/VRMC_springBone-1.0/schema/VRMC_springBone.schema.json",
|
||||
"Assets/VRM10/Runtime/Format/SpringBone"
|
||||
$"{Vrm10SpecDir}/VRMC_springBone-1.0/schema/VRMC_springBone.schema.json",
|
||||
$"{Vrm10FormatGeneratedDir}/SpringBone"
|
||||
),
|
||||
|
||||
// VRMC_node_constraint
|
||||
new GenerateInfo(
|
||||
$"{SPEC_DIR}/VRMC_node_constraint-1.0/schema/VRMC_node_constraint.schema.json",
|
||||
"Assets/VRM10/Runtime/Format/Constraints"
|
||||
$"{Vrm10SpecDir}/VRMC_node_constraint-1.0/schema/VRMC_node_constraint.schema.json",
|
||||
$"{Vrm10FormatGeneratedDir}/Constraints"
|
||||
),
|
||||
|
||||
// VRMC_animation
|
||||
new GenerateInfo(
|
||||
$"{SPEC_DIR}/VRMC_vrm_animation-1.0/schema/VRMC_vrm_animation.schema.json",
|
||||
"Assets/VRM10/Runtime/Format/Animation"
|
||||
$"{Vrm10SpecDir}/VRMC_vrm_animation-1.0/schema/VRMC_vrm_animation.schema.json",
|
||||
$"{Vrm10FormatGeneratedDir}/Animation"
|
||||
),
|
||||
|
||||
// VRMC_animation
|
||||
new GenerateInfo(
|
||||
$"{SPEC_DIR}/VRMC_springBone_extended_collider-1.0/schema/VRMC_springBone_extended_collider.schema.json",
|
||||
"Assets/VRM10/Runtime/Format/SpringBoneExtendedCollider"
|
||||
$"{Vrm10SpecDir}/VRMC_springBone_extended_collider-1.0/schema/VRMC_springBone_extended_collider.schema.json",
|
||||
$"{Vrm10FormatGeneratedDir}/SpringBoneExtendedCollider"
|
||||
),
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
|
||||
namespace VRMShaders.VRM10.MToon10.Editor
|
||||
namespace VRM10.MToon10.Editor
|
||||
{
|
||||
internal static class EditorMenu
|
||||
{
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
|
||||
namespace VRMShaders.VRM10.MToon10.Editor
|
||||
namespace VRM10.MToon10.Editor
|
||||
{
|
||||
public readonly struct LabelScope : IDisposable
|
||||
{
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
namespace VRMShaders.VRM10.MToon10.Editor
|
||||
namespace VRM10.MToon10.Editor
|
||||
{
|
||||
public enum MToon10EditorEditMode
|
||||
{
|
||||
|
|
@ -1,13 +1,10 @@
|
|||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Rendering;
|
||||
using VRMShaders.VRM10.MToon10.Runtime;
|
||||
|
||||
namespace VRMShaders.VRM10.MToon10.Editor
|
||||
namespace VRM10.MToon10.Editor
|
||||
{
|
||||
public sealed class MToonInspector : ShaderGUI
|
||||
{
|
||||
|
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
"name": "VRMShaders.VRM10.MToon10.Editor",
|
||||
"name": "VRM10.MToon10.Editor",
|
||||
"rootNamespace": "",
|
||||
"references": [
|
||||
"GUID:0aaf403bd13871a44b7127aef2695ff8"
|
||||
],
|
||||
|
|
@ -209,5 +209,5 @@ Shader "VRM10/MToon10"
|
|||
}
|
||||
}
|
||||
Fallback "Unlit/Texture"
|
||||
CustomEditor "VRMShaders.VRM10.MToon10.Editor.MToonInspector"
|
||||
CustomEditor "VRM10.MToon10.Editor.MToonInspector"
|
||||
}
|
||||
|
|
@ -253,5 +253,5 @@ Shader "VRM10/Universal Render Pipeline/MToon10"
|
|||
}
|
||||
|
||||
FallBack "Hidden/Universal Render Pipeline/FallbackError"
|
||||
CustomEditor "VRMShaders.VRM10.MToon10.Editor.MToonInspector"
|
||||
CustomEditor "VRM10.MToon10.Editor.MToonInspector"
|
||||
}
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
using UnityEngine;
|
||||
|
||||
namespace VRMShaders.VRM10.MToon10.Runtime
|
||||
namespace VRM10.MToon10
|
||||
{
|
||||
public static class MaterialExtensions
|
||||
{
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
using UnityEngine;
|
||||
|
||||
namespace VRMShaders.VRM10.MToon10.Runtime.MToon0X
|
||||
namespace VRM10.MToon10.MToon0X
|
||||
{
|
||||
public class MToon0XDefinition
|
||||
{
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
namespace VRMShaders.VRM10.MToon10.Runtime.MToon0X
|
||||
namespace VRM10.MToon10.MToon0X
|
||||
{
|
||||
public enum MToon0XDebugMode
|
||||
{
|
||||
|
|
@ -1,8 +1,7 @@
|
|||
using System;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Rendering;
|
||||
|
||||
namespace VRMShaders.VRM10.MToon10.Runtime.MToon0X
|
||||
namespace VRM10.MToon10.MToon0X
|
||||
{
|
||||
public static partial class MToon0XUtils
|
||||
{
|
||||
|
|
@ -1,7 +1,6 @@
|
|||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
namespace VRMShaders.VRM10.MToon10.Runtime.MToon0X
|
||||
namespace VRM10.MToon10.MToon0X
|
||||
{
|
||||
public static partial class MToon0XUtils
|
||||
{
|
||||
|
|
@ -11,7 +10,7 @@ namespace VRMShaders.VRM10.MToon10.Runtime.MToon0X
|
|||
{
|
||||
Meta = new MToon0XMetaDefinition
|
||||
{
|
||||
Implementation = Implementation,
|
||||
Implementation = MToon0XUtils.Implementation,
|
||||
VersionNumber = material.GetInt(PropVersion),
|
||||
},
|
||||
Rendering = new MToon0XRenderingDefinition
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
namespace VRMShaders.VRM10.MToon10.Runtime.MToon0X
|
||||
namespace VRM10.MToon10.MToon0X
|
||||
{
|
||||
public static partial class MToon0XUtils
|
||||
{
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
using UnityEngine;
|
||||
|
||||
namespace VRMShaders.VRM10.MToon10.Runtime
|
||||
namespace VRM10.MToon10
|
||||
{
|
||||
public sealed class MToon10Context
|
||||
{
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
using UnityEngine;
|
||||
|
||||
namespace VRMShaders.VRM10.MToon10.Runtime
|
||||
namespace VRM10.MToon10
|
||||
{
|
||||
/// <summary>
|
||||
/// Migrate from VRM 0.x MToon to VRM 1.0 vrmc_materials_mtoon
|
||||
|
|
@ -1,10 +1,10 @@
|
|||
using System;
|
||||
using UnityEngine;
|
||||
using VRMShaders.VRM10.MToon10.Runtime;
|
||||
using VRMShaders.VRM10.MToon10.Runtime.MToon0X;
|
||||
using VRM10.MToon10.MToon0X;
|
||||
using MToon0XUtils = VRM10.MToon10.MToon0X.MToon0XUtils;
|
||||
using Object = UnityEngine.Object;
|
||||
|
||||
namespace VRMShaders.VRM10.MToon10.Editor
|
||||
namespace VRM10.MToon10
|
||||
{
|
||||
public sealed class MToonMaterialMigrator
|
||||
{
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
using UnityEngine.Rendering;
|
||||
using UnityEngine.Rendering.Universal;
|
||||
|
||||
namespace VRMShaders.VRM10.MToon10.Runtime
|
||||
namespace VRM10.MToon10
|
||||
{
|
||||
public sealed class MToonOutlineRenderFeature : ScriptableRendererFeature
|
||||
{
|
||||
|
|
@ -1,9 +1,8 @@
|
|||
#if MTOON_URP
|
||||
using System;
|
||||
using UnityEngine.Rendering;
|
||||
using UnityEngine.Rendering.Universal;
|
||||
|
||||
namespace VRMShaders.VRM10.MToon10.Runtime
|
||||
namespace VRM10.MToon10
|
||||
{
|
||||
public sealed class MToonOutlineRenderPass : ScriptableRenderPass
|
||||
{
|
||||
|
|
@ -1,9 +1,8 @@
|
|||
using System;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Rendering;
|
||||
using VRMShaders.VRM10.MToon10.Runtime;
|
||||
|
||||
namespace VRMShaders.VRM10.MToon10.Runtime
|
||||
namespace VRM10.MToon10
|
||||
{
|
||||
public sealed class MToonValidator
|
||||
{
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
namespace VRMShaders.VRM10.MToon10.Runtime
|
||||
namespace VRM10.MToon10
|
||||
{
|
||||
public enum MToon10AlphaMode
|
||||
{
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
namespace VRMShaders.VRM10.MToon10.Runtime
|
||||
namespace VRM10.MToon10
|
||||
{
|
||||
public enum MToon10DoubleSidedMode
|
||||
{
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
namespace VRMShaders.VRM10.MToon10.Runtime
|
||||
namespace VRM10.MToon10
|
||||
{
|
||||
public static class MToon10EmissiveMapKeyword
|
||||
{
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
namespace VRMShaders.VRM10.MToon10.Runtime
|
||||
namespace VRM10.MToon10
|
||||
{
|
||||
public static class MToon10NormalMapKeyword
|
||||
{
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
namespace VRMShaders.VRM10.MToon10.Runtime
|
||||
namespace VRM10.MToon10
|
||||
{
|
||||
public enum MToon10OutlineMode
|
||||
{
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user