From fc769f02ed30770eb8efe0ac99e2f140ec1aac80 Mon Sep 17 00:00:00 2001 From: ousttrue Date: Wed, 5 Feb 2025 15:09:27 +0900 Subject: [PATCH 01/56] load glb --- .../VRM10_Samples/VRM10Viewer/VRM10Loaded.cs | 2 +- .../VRM10Viewer/VRM10Viewer.unity | 2 +- .../VRM10Viewer/VRM10ViewerUI.cs | 263 +++++++++--------- 3 files changed, 134 insertions(+), 133 deletions(-) diff --git a/Assets/VRM10_Samples/VRM10Viewer/VRM10Loaded.cs b/Assets/VRM10_Samples/VRM10Viewer/VRM10Loaded.cs index b1cf55fe2..4bf684d04 100644 --- a/Assets/VRM10_Samples/VRM10Viewer/VRM10Loaded.cs +++ b/Assets/VRM10_Samples/VRM10Viewer/VRM10Loaded.cs @@ -10,7 +10,7 @@ namespace UniVRM10.VRM10Viewer Vrm10Instance m_vrm; public Vrm10Instance Instance => m_vrm; public Vrm10RuntimeControlRig ControlRig => m_vrm.Runtime.ControlRig; - public Vrm10Runtime Runtime => m_vrm.Runtime; + public Vrm10Runtime Runtime => m_vrm?.Runtime; public Loaded(RuntimeGltfInstance instance) { diff --git a/Assets/VRM10_Samples/VRM10Viewer/VRM10Viewer.unity b/Assets/VRM10_Samples/VRM10Viewer/VRM10Viewer.unity index dcd3d9073..018237120 100644 --- a/Assets/VRM10_Samples/VRM10Viewer/VRM10Viewer.unity +++ b/Assets/VRM10_Samples/VRM10Viewer/VRM10Viewer.unity @@ -4717,7 +4717,7 @@ Transform: m_GameObject: {fileID: 322182884} serializedVersion: 2 m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalPosition: {x: 0, y: -0.001, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: [] diff --git a/Assets/VRM10_Samples/VRM10Viewer/VRM10ViewerUI.cs b/Assets/VRM10_Samples/VRM10Viewer/VRM10ViewerUI.cs index f76456da5..86d2d37d7 100644 --- a/Assets/VRM10_Samples/VRM10Viewer/VRM10ViewerUI.cs +++ b/Assets/VRM10_Samples/VRM10Viewer/VRM10ViewerUI.cs @@ -505,7 +505,7 @@ namespace UniVRM10.VRM10Viewer if (ArgumentChecker.TryGetFirstLoadable(out var cmd)) { - var _ = LoadModel(cmd); + var _ = LoadModelPath(cmd); } m_texts.Start(); @@ -558,96 +558,97 @@ namespace UniVRM10.VRM10Viewer StopSpringBoneWriteback = m_springbonePause.isOn, SupportsScalingAtRuntime = m_springboneScaling.isOn, }); - } - m_happy.ApplyRuntime(m_loaded.Instance.Vrm.Expression.Happy); - m_angry.ApplyRuntime(m_loaded.Instance.Vrm.Expression.Angry); - m_sad.ApplyRuntime(m_loaded.Instance.Vrm.Expression.Sad); - m_relaxed.ApplyRuntime(m_loaded.Instance.Vrm.Expression.Relaxed); - m_surprised.ApplyRuntime(m_loaded.Instance.Vrm.Expression.Surprised); - m_lipAa.ApplyRuntime(m_loaded.Instance.Vrm.Expression.Aa); - m_lipIh.ApplyRuntime(m_loaded.Instance.Vrm.Expression.Ih); - m_lipOu.ApplyRuntime(m_loaded.Instance.Vrm.Expression.Ou); - m_lipEe.ApplyRuntime(m_loaded.Instance.Vrm.Expression.Ee); - m_lipOh.ApplyRuntime(m_loaded.Instance.Vrm.Expression.Oh); - m_blink.ApplyRuntime(m_loaded.Instance.Vrm.Expression.Blink); - if (m_enableAutoExpression.isOn) - { - vrm.Runtime.Expression.SetWeight(ExpressionKey.Happy, m_autoEmotion.Happy); - vrm.Runtime.Expression.SetWeight(ExpressionKey.Angry, m_autoEmotion.Angry); - vrm.Runtime.Expression.SetWeight(ExpressionKey.Sad, m_autoEmotion.Sad); - vrm.Runtime.Expression.SetWeight(ExpressionKey.Relaxed, m_autoEmotion.Relaxed); - vrm.Runtime.Expression.SetWeight(ExpressionKey.Surprised, m_autoEmotion.Surprised); - m_happy.m_expression.SetValueWithoutNotify(m_autoEmotion.Happy); - m_angry.m_expression.SetValueWithoutNotify(m_autoEmotion.Angry); - m_sad.m_expression.SetValueWithoutNotify(m_autoEmotion.Sad); - m_relaxed.m_expression.SetValueWithoutNotify(m_autoEmotion.Relaxed); - m_surprised.m_expression.SetValueWithoutNotify(m_autoEmotion.Surprised); - } - else - { - vrm.Runtime.Expression.SetWeight(ExpressionKey.Happy, m_happy.m_expression.value); - vrm.Runtime.Expression.SetWeight(ExpressionKey.Angry, m_angry.m_expression.value); - vrm.Runtime.Expression.SetWeight(ExpressionKey.Sad, m_sad.m_expression.value); - vrm.Runtime.Expression.SetWeight(ExpressionKey.Relaxed, m_relaxed.m_expression.value); - vrm.Runtime.Expression.SetWeight(ExpressionKey.Surprised, m_surprised.m_expression.value); - } + m_happy.ApplyRuntime(m_loaded.Instance.Vrm.Expression.Happy); + m_angry.ApplyRuntime(m_loaded.Instance.Vrm.Expression.Angry); + m_sad.ApplyRuntime(m_loaded.Instance.Vrm.Expression.Sad); + m_relaxed.ApplyRuntime(m_loaded.Instance.Vrm.Expression.Relaxed); + m_surprised.ApplyRuntime(m_loaded.Instance.Vrm.Expression.Surprised); + m_lipAa.ApplyRuntime(m_loaded.Instance.Vrm.Expression.Aa); + m_lipIh.ApplyRuntime(m_loaded.Instance.Vrm.Expression.Ih); + m_lipOu.ApplyRuntime(m_loaded.Instance.Vrm.Expression.Ou); + m_lipEe.ApplyRuntime(m_loaded.Instance.Vrm.Expression.Ee); + m_lipOh.ApplyRuntime(m_loaded.Instance.Vrm.Expression.Oh); + m_blink.ApplyRuntime(m_loaded.Instance.Vrm.Expression.Blink); - if (m_enableLipSync.isOn) - { - vrm.Runtime.Expression.SetWeight(ExpressionKey.Aa, m_autoLipsync.Aa); - vrm.Runtime.Expression.SetWeight(ExpressionKey.Ih, m_autoLipsync.Ih); - vrm.Runtime.Expression.SetWeight(ExpressionKey.Ou, m_autoLipsync.Ou); - vrm.Runtime.Expression.SetWeight(ExpressionKey.Ee, m_autoLipsync.Ee); - vrm.Runtime.Expression.SetWeight(ExpressionKey.Oh, m_autoLipsync.Oh); - m_lipAa.m_expression.SetValueWithoutNotify(m_autoLipsync.Aa); - m_lipIh.m_expression.SetValueWithoutNotify(m_autoLipsync.Ih); - m_lipOu.m_expression.SetValueWithoutNotify(m_autoLipsync.Ou); - m_lipEe.m_expression.SetValueWithoutNotify(m_autoLipsync.Ee); - m_lipOh.m_expression.SetValueWithoutNotify(m_autoLipsync.Oh); - } - else - { - vrm.Runtime.Expression.SetWeight(ExpressionKey.Aa, m_lipAa.m_expression.value); - vrm.Runtime.Expression.SetWeight(ExpressionKey.Ih, m_lipIh.m_expression.value); - vrm.Runtime.Expression.SetWeight(ExpressionKey.Ou, m_lipOu.m_expression.value); - vrm.Runtime.Expression.SetWeight(ExpressionKey.Ee, m_lipEe.m_expression.value); - vrm.Runtime.Expression.SetWeight(ExpressionKey.Oh, m_lipOh.m_expression.value); - } + if (m_enableAutoExpression.isOn) + { + vrm.Runtime.Expression.SetWeight(ExpressionKey.Happy, m_autoEmotion.Happy); + vrm.Runtime.Expression.SetWeight(ExpressionKey.Angry, m_autoEmotion.Angry); + vrm.Runtime.Expression.SetWeight(ExpressionKey.Sad, m_autoEmotion.Sad); + vrm.Runtime.Expression.SetWeight(ExpressionKey.Relaxed, m_autoEmotion.Relaxed); + vrm.Runtime.Expression.SetWeight(ExpressionKey.Surprised, m_autoEmotion.Surprised); + m_happy.m_expression.SetValueWithoutNotify(m_autoEmotion.Happy); + m_angry.m_expression.SetValueWithoutNotify(m_autoEmotion.Angry); + m_sad.m_expression.SetValueWithoutNotify(m_autoEmotion.Sad); + m_relaxed.m_expression.SetValueWithoutNotify(m_autoEmotion.Relaxed); + m_surprised.m_expression.SetValueWithoutNotify(m_autoEmotion.Surprised); + } + else + { + vrm.Runtime.Expression.SetWeight(ExpressionKey.Happy, m_happy.m_expression.value); + vrm.Runtime.Expression.SetWeight(ExpressionKey.Angry, m_angry.m_expression.value); + vrm.Runtime.Expression.SetWeight(ExpressionKey.Sad, m_sad.m_expression.value); + vrm.Runtime.Expression.SetWeight(ExpressionKey.Relaxed, m_relaxed.m_expression.value); + vrm.Runtime.Expression.SetWeight(ExpressionKey.Surprised, m_surprised.m_expression.value); + } - if (m_enableAutoBlink.isOn) - { - vrm.Runtime.Expression.SetWeight(ExpressionKey.Blink, m_autoBlink.BlinkValue); - m_blink.m_expression.SetValueWithoutNotify(m_autoBlink.BlinkValue); - } - else - { - vrm.Runtime.Expression.SetWeight(ExpressionKey.Blink, m_blink.m_expression.value); - } + if (m_enableLipSync.isOn) + { + vrm.Runtime.Expression.SetWeight(ExpressionKey.Aa, m_autoLipsync.Aa); + vrm.Runtime.Expression.SetWeight(ExpressionKey.Ih, m_autoLipsync.Ih); + vrm.Runtime.Expression.SetWeight(ExpressionKey.Ou, m_autoLipsync.Ou); + vrm.Runtime.Expression.SetWeight(ExpressionKey.Ee, m_autoLipsync.Ee); + vrm.Runtime.Expression.SetWeight(ExpressionKey.Oh, m_autoLipsync.Oh); + m_lipAa.m_expression.SetValueWithoutNotify(m_autoLipsync.Aa); + m_lipIh.m_expression.SetValueWithoutNotify(m_autoLipsync.Ih); + m_lipOu.m_expression.SetValueWithoutNotify(m_autoLipsync.Ou); + m_lipEe.m_expression.SetValueWithoutNotify(m_autoLipsync.Ee); + m_lipOh.m_expression.SetValueWithoutNotify(m_autoLipsync.Oh); + } + else + { + vrm.Runtime.Expression.SetWeight(ExpressionKey.Aa, m_lipAa.m_expression.value); + vrm.Runtime.Expression.SetWeight(ExpressionKey.Ih, m_lipIh.m_expression.value); + vrm.Runtime.Expression.SetWeight(ExpressionKey.Ou, m_lipOu.m_expression.value); + vrm.Runtime.Expression.SetWeight(ExpressionKey.Ee, m_lipEe.m_expression.value); + vrm.Runtime.Expression.SetWeight(ExpressionKey.Oh, m_lipOh.m_expression.value); + } - if (m_useLookAtTarget.isOn) - { - var (yaw, pitch) = vrm.Runtime.LookAt.CalculateYawPitchFromLookAtPosition(m_lookAtTarget.transform.position); - vrm.Runtime.LookAt.SetYawPitchManually(yaw, pitch); - m_yaw.value = yaw; - m_pitch.value = pitch; - } - else - { - vrm.Runtime.LookAt.SetYawPitchManually(m_yaw.value, m_pitch.value); - } + if (m_enableAutoBlink.isOn) + { + vrm.Runtime.Expression.SetWeight(ExpressionKey.Blink, m_autoBlink.BlinkValue); + m_blink.m_expression.SetValueWithoutNotify(m_autoBlink.BlinkValue); + } + else + { + vrm.Runtime.Expression.SetWeight(ExpressionKey.Blink, m_blink.m_expression.value); + } - if (vrm.TryGetBoneTransform(HumanBodyBones.Head, out var head)) - { - var initLocarlRotation = vrm.DefaultTransformStates[head].LocalRotation; - var r = head.rotation * Quaternion.Inverse(initLocarlRotation); - var pos = head.position - + (r * Vector3.forward * 0.7f) - + (r * Vector3.up * 0.07f) - ; - m_faceCamera.position = pos; - m_faceCamera.rotation = r; + if (m_useLookAtTarget.isOn) + { + var (yaw, pitch) = vrm.Runtime.LookAt.CalculateYawPitchFromLookAtPosition(m_lookAtTarget.transform.position); + vrm.Runtime.LookAt.SetYawPitchManually(yaw, pitch); + m_yaw.value = yaw; + m_pitch.value = pitch; + } + else + { + vrm.Runtime.LookAt.SetYawPitchManually(m_yaw.value, m_pitch.value); + } + + if (vrm.TryGetBoneTransform(HumanBodyBones.Head, out var head)) + { + var initLocarlRotation = vrm.DefaultTransformStates[head].LocalRotation; + var r = head.rotation * Quaternion.Inverse(initLocarlRotation); + var pos = head.position + + (r * Vector3.forward * 0.7f) + + (r * Vector3.up * 0.07f) + ; + m_faceCamera.position = pos; + m_faceCamera.rotation = r; + } } } } @@ -657,10 +658,10 @@ namespace UniVRM10.VRM10Viewer string FileDialog() { -#if UNITY_EDITOR - return UnityEditor.EditorUtility.OpenFilePanel("Open VRM", "", "vrm"); +#if UNITY_EDITOR + return UnityEditor.EditorUtility.OpenFilePanel("Open VRM", "", "vrm,glb,gltf,zip"); #elif UNITY_STANDALONE_WIN - return VRM10FileDialogForWindows.FileDialog("open VRM", "vrm"); + return VRM10FileDialogForWindows.FileDialog("open VRM", "vrm", "glb", "gltf", "zip"); #elif UNITY_WEBGL // Open WebGL_VRM10_VRM10Viewer_FileDialog // see: Assets/UniGLTF/Runtime/Utils/Plugins/OpenFile.jslib @@ -675,19 +676,7 @@ namespace UniVRM10.VRM10Viewer void OnOpenModelClicked() { var path = FileDialog(); - if (string.IsNullOrEmpty(path)) - { - return; - } - - var ext = Path.GetExtension(path).ToLower(); - if (ext != ".vrm") - { - UniGLTFLogger.Warning($"{path} is not vrm"); - return; - } - - _ = LoadModel(path); + _ = LoadModelPath(path); } /// @@ -704,15 +693,15 @@ namespace UniVRM10.VRM10Viewer { var www = new WWW(url); yield return www; - var _ = LoadModel("WebGL.vrm", www.bytes); + var _ = LoadModelBytes("WebGL.vrm", www.bytes); } async void OnOpenMotionClicked() { -#if UNITY_STANDALONE_WIN +#if UNITY_EDITOR + var path = UnityEditor.EditorUtility.OpenFilePanel("Open Motion", "", "bvh,gltf,glb,vrma"); +#elif UNITY_STANDALONE_WIN var path = VRM10FileDialogForWindows.FileDialog("open Motion", "bvh", "gltf", "glb", "vrma"); -#elif UNITY_EDITOR - var path = UnityEditor.EditorUtility.OpenFilePanel("Open Motion", "", "bvh"); #else var path = Application.dataPath + "/default.bvh"; #endif @@ -780,18 +769,6 @@ namespace UniVRM10.VRM10Viewer } } - static IMaterialDescriptorGenerator GetVrmMaterialDescriptorGenerator(bool useUrp) - { - if (useUrp) - { - return new UrpVrm10MaterialDescriptorGenerator(); - } - else - { - return new BuiltInVrm10MaterialDescriptorGenerator(); - } - } - IMaterialDescriptorGenerator GetMaterialDescriptorGenerator() { if (m_useCustomMaterial.isOn) @@ -808,11 +785,14 @@ namespace UniVRM10.VRM10Viewer { if (m_useAsync.isOn) { -#if UNITY_WEBGL - return new RuntimeOnlyNoThreadAwaitCaller(); -#else - return new RuntimeOnlyAwaitCaller(); -#endif + if (Application.platform == RuntimePlatform.WebGLPlayer) + { + return new RuntimeOnlyNoThreadAwaitCaller(); + } + else + { + return new RuntimeOnlyAwaitCaller(); + } } else { @@ -820,13 +800,13 @@ namespace UniVRM10.VRM10Viewer } } - async Task LoadModel(string path) + async Task LoadModelPath(string path) { var bytes = await File.ReadAllBytesAsync(path); - await LoadModel(path, bytes); + await LoadModelBytes(path, bytes); } - async Task LoadModel(string path, byte[] bytes) + async Task LoadModelBytes(string path, byte[] bytes) { // cleanup m_loaded?.Dispose(); @@ -837,6 +817,9 @@ namespace UniVRM10.VRM10Viewer try { + // + // try VRM + // UniGLTFLogger.Log($"{path}"); var vrm10Instance = await Vrm10.LoadBytesAsync(bytes, canLoadVrm0X: true, @@ -876,16 +859,34 @@ namespace UniVRM10.VRM10Viewer m_lipOh.OnLoad(m_loaded.Instance.Vrm.Expression.Oh); m_blink.OnLoad(m_loaded.Instance.Vrm.Expression.Blink); } - catch (Exception ex) + catch (Exception) { - if (ex is OperationCanceledException) + try { - UniGLTFLogger.Warning($"Canceled to Load: {path}"); + // + // fallback gltf + // + var instance = await GltfUtility.LoadBytesAsync(path, bytes, + awaitCaller: GetIAwaitCaller(), + materialGenerator: GetMaterialDescriptorGenerator() + ); + + instance.ShowMeshes(); + instance.EnableUpdateWhenOffscreen(); + m_loaded = new Loaded(instance); + m_showBoxMan.isOn = false; } - else + catch (Exception ex) { - UniGLTFLogger.Error($"Failed to Load: {path}"); - UniGLTFLogger.Exception(ex); + if (ex is OperationCanceledException) + { + UniGLTFLogger.Warning($"Canceled to Load: {path}"); + } + else + { + UniGLTFLogger.Error($"Failed to Load: {path}"); + UniGLTFLogger.Exception(ex); + } } } } From 3b3da89a777de8664788f641c95eb9ed7426a835 Mon Sep 17 00:00:00 2001 From: ousttrue Date: Wed, 5 Feb 2025 15:32:24 +0900 Subject: [PATCH 02/56] BaseColor, BaseMap --- .../VRM10Viewer/Assets/TinyPbr.shadergraph | 545 +++++++++++++++++- ...brContext.cs => TinyPbrMaterialContext.cs} | 29 +- ...cs.meta => TinyPbrMaterialContext.cs.meta} | 0 ... => TinyPbrMaterialDescriptorGenerator.cs} | 32 +- ...inyPbrMaterialDescriptorGenerator.cs.meta} | 0 .../VRM10Viewer/VRM10ViewerUI.cs | 2 +- 6 files changed, 562 insertions(+), 46 deletions(-) rename Assets/VRM10_Samples/VRM10Viewer/{TinyPbrContext.cs => TinyPbrMaterialContext.cs} (53%) rename Assets/VRM10_Samples/VRM10Viewer/{TinyPbrContext.cs.meta => TinyPbrMaterialContext.cs.meta} (100%) rename Assets/VRM10_Samples/VRM10Viewer/{TinyPbrDescriptorGenerator.cs => TinyPbrMaterialDescriptorGenerator.cs} (65%) rename Assets/VRM10_Samples/VRM10Viewer/{TinyPbrDescriptorGenerator.cs.meta => TinyPbrMaterialDescriptorGenerator.cs.meta} (100%) diff --git a/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyPbr.shadergraph b/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyPbr.shadergraph index 2e494f4fe..491a8cefc 100644 --- a/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyPbr.shadergraph +++ b/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyPbr.shadergraph @@ -5,6 +5,9 @@ "m_Properties": [ { "m_Id": "92f5ab11614c4ec1b4d632f73041ba65" + }, + { + "m_Id": "dea047da4cb0442bac26d6f468ba8f66" } ], "m_Keywords": [], @@ -47,11 +50,48 @@ }, { "m_Id": "305a571d629e4b258d80c3ad877cb596" + }, + { + "m_Id": "0b94be19d37c4268b363243bac818ac4" + }, + { + "m_Id": "bc1b1f1db2674d2eb92cff962761dad3" + }, + { + "m_Id": "2a5a6e02ee104d45a3ecc82a5ff7b17c" } ], "m_GroupDatas": [], "m_StickyNoteDatas": [], "m_Edges": [ + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "0b94be19d37c4268b363243bac818ac4" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "2a5a6e02ee104d45a3ecc82a5ff7b17c" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "2a5a6e02ee104d45a3ecc82a5ff7b17c" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "80fce1dbcef04945aa9b988609dbe324" + }, + "m_SlotId": 0 + } + }, { "m_OutputSlot": { "m_Node": { @@ -71,13 +111,55 @@ "m_Node": { "m_Id": "6637a91f035a40e798e76f70bed17d7e" }, + "m_SlotId": 4 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "bc1b1f1db2674d2eb92cff962761dad3" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "6637a91f035a40e798e76f70bed17d7e" + }, + "m_SlotId": 5 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "bc1b1f1db2674d2eb92cff962761dad3" + }, + "m_SlotId": 2 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "6637a91f035a40e798e76f70bed17d7e" + }, + "m_SlotId": 6 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "bc1b1f1db2674d2eb92cff962761dad3" + }, + "m_SlotId": 3 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "bc1b1f1db2674d2eb92cff962761dad3" + }, "m_SlotId": 0 }, "m_InputSlot": { "m_Node": { - "m_Id": "80fce1dbcef04945aa9b988609dbe324" + "m_Id": "2a5a6e02ee104d45a3ecc82a5ff7b17c" }, - "m_SlotId": 0 + "m_SlotId": 1 } } ], @@ -100,27 +182,27 @@ }, "m_FragmentContext": { "m_Position": { - "x": 0.0, - "y": 200.0 + "x": 0.000029290516977198422, + "y": 198.0 }, "m_Blocks": [ { "m_Id": "80fce1dbcef04945aa9b988609dbe324" }, { - "m_Id": "6f683c2eb23a4baf8dc028500640b75a" + "m_Id": "6098dc7f36d84b83b8421cc0e56ed1a0" }, { - "m_Id": "6098dc7f36d84b83b8421cc0e56ed1a0" + "m_Id": "58ee8fea72cc4a649f9a1198b12d621b" }, { "m_Id": "53f1bc01113946bc946f0808f16df02b" }, { - "m_Id": "0f64718141f34878916463ec72c9d2d8" + "m_Id": "6f683c2eb23a4baf8dc028500640b75a" }, { - "m_Id": "58ee8fea72cc4a649f9a1198b12d621b" + "m_Id": "0f64718141f34878916463ec72c9d2d8" } ] }, @@ -178,10 +260,64 @@ "m_ChildObjectList": [ { "m_Id": "92f5ab11614c4ec1b4d632f73041ba65" + }, + { + "m_Id": "dea047da4cb0442bac26d6f468ba8f66" } ] } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "0b94be19d37c4268b363243bac818ac4", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -820.0, + "y": -36.00000762939453, + "width": 132.0, + "height": 36.000003814697269 + } + }, + "m_Slots": [ + { + "m_Id": "ef0016b4d1214fc5b0766f3f8883eaca" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "dea047da4cb0442bac26d6f468ba8f66" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "0f6262482aaf43a49f4f529e2e26cca2", + "m_Id": 1, + "m_DisplayName": "X", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "X", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.BlockNode", @@ -316,6 +452,97 @@ "m_Space": 3 } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "212accc3030f4e0384e8c4c800750373", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": { + "e00": 2.0, + "e01": 2.0, + "e02": 2.0, + "e03": 2.0, + "e10": 2.0, + "e11": 2.0, + "e12": 2.0, + "e13": 2.0, + "e20": 2.0, + "e21": 2.0, + "e22": 2.0, + "e23": 2.0, + "e30": 2.0, + "e31": 2.0, + "e32": 2.0, + "e33": 2.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.MultiplyNode", + "m_ObjectId": "2a5a6e02ee104d45a3ecc82a5ff7b17c", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Multiply", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -324.6666259765625, + "y": -0.0000023333232093136759, + "width": 209.33334350585938, + "height": 304.0000305175781 + } + }, + "m_Slots": [ + { + "m_Id": "85d0d0e7cba94789b07a7f99cdd83648" + }, + { + "m_Id": "212accc3030f4e0384e8c4c800750373" + }, + { + "m_Id": "a752e540f3f040338fda387047382672" + } + ], + "synonyms": [ + "multiplication", + "times", + "x" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.SamplerStateMaterialSlot", @@ -341,9 +568,9 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": -482.6666564941406, - "y": 233.3333282470703, - "width": 140.0, + "x": -820.0, + "y": 6.000001907348633, + "width": 133.33331298828126, "height": 35.99998474121094 } }, @@ -471,10 +698,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": 0.0, - "y": 0.0, - "width": 0.0, - "height": 0.0 + "x": 4.6667375564575199, + "y": 304.66668701171877, + "width": 200.00003051757813, + "height": 42.666656494140628 } }, "m_Slots": [ @@ -505,10 +732,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": 0.0, - "y": 0.0, - "width": 0.0, - "height": 0.0 + "x": 12.0000581741333, + "y": 278.6667175292969, + "width": 200.00003051757813, + "height": 42.6666259765625 } }, "m_Slots": [ @@ -539,10 +766,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": 0.0, - "y": 0.0, - "width": 0.0, - "height": 0.0 + "x": 10.000083923339844, + "y": 268.0, + "width": 199.99993896484376, + "height": 42.66668701171875 } }, "m_Slots": [ @@ -597,10 +824,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": -322.0, - "y": 200.0, - "width": 209.3333282470703, - "height": 438.6666259765625 + "x": -668.0, + "y": -0.0000023333232093136759, + "width": 184.66665649414063, + "height": 254.6666717529297 } }, "m_Slots": [ @@ -633,14 +860,14 @@ "tex2d" ], "m_Precision": 0, - "m_PreviewExpanded": true, + "m_PreviewExpanded": false, "m_DismissedVersion": 0, "m_PreviewMode": 0, "m_CustomColors": { "m_SerializableColors": [] }, "m_TextureType": 0, - "m_NormalMapSpace": 0, + "m_NormalMapSpace": 1, "m_EnableGlobalMipBias": true, "m_MipSamplingMode": 0 } @@ -825,6 +1052,88 @@ "m_SerializedDescriptor": "SurfaceDescription.BaseColor" } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "827a8a770c064322a7f2aa9cf901cad3", + "m_Id": 3, + "m_DisplayName": "Z", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Z", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [ + "Z" + ] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "85d0d0e7cba94789b07a7f99cdd83648", + "m_Id": 0, + "m_DisplayName": "A", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": { + "e00": 0.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 0.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 0.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 0.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "8e3b1b83b1f2472facb7e921e188e546", + "m_Id": 2, + "m_DisplayName": "Y", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Y", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [ + "Y" + ] +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Internal.Texture2DShaderProperty", @@ -855,6 +1164,54 @@ "m_DefaultType": 0 } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "a752e540f3f040338fda387047382672", + "m_Id": 2, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "e00": 0.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 0.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 0.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 0.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.ColorRGBMaterialSlot", @@ -885,6 +1242,58 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector3Node", + "m_ObjectId": "bc1b1f1db2674d2eb92cff962761dad3", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Vector 3", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -471.3333435058594, + "y": 23.9999942779541, + "width": 129.3333740234375, + "height": 126.66666412353516 + } + }, + "m_Slots": [ + { + "m_Id": "0f6262482aaf43a49f4f529e2e26cca2" + }, + { + "m_Id": "8e3b1b83b1f2472facb7e921e188e546" + }, + { + "m_Id": "827a8a770c064322a7f2aa9cf901cad3" + }, + { + "m_Id": "e27f6627b19f4372bfcf798965a0b49a" + } + ], + "synonyms": [ + "3", + "v3", + "vec3", + "float3" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + } +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", @@ -915,6 +1324,36 @@ "m_Labels": [] } +{ + "m_SGVersion": 3, + "m_Type": "UnityEditor.ShaderGraph.Internal.ColorShaderProperty", + "m_ObjectId": "dea047da4cb0442bac26d6f468ba8f66", + "m_Guid": { + "m_GuidSerialized": "b6ef105a-c541-4441-9f6c-3ac20a1e813c" + }, + "m_Name": "BaseColor", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "BaseColor", + "m_DefaultReferenceName": "_BaseColor", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": { + "r": 1.0, + "g": 1.0, + "b": 1.0, + "a": 0.0 + }, + "isMainColor": false, + "m_ColorMode": 0 +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.NormalMaterialSlot", @@ -939,6 +1378,54 @@ "m_Space": 0 } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", + "m_ObjectId": "e27f6627b19f4372bfcf798965a0b49a", + "m_Id": 0, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "ef0016b4d1214fc5b0766f3f8883eaca", + "m_Id": 0, + "m_DisplayName": "BaseColor", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_Labels": [] +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.BlockNode", diff --git a/Assets/VRM10_Samples/VRM10Viewer/TinyPbrContext.cs b/Assets/VRM10_Samples/VRM10Viewer/TinyPbrMaterialContext.cs similarity index 53% rename from Assets/VRM10_Samples/VRM10Viewer/TinyPbrContext.cs rename to Assets/VRM10_Samples/VRM10Viewer/TinyPbrMaterialContext.cs index 0a455330f..ba9bbf55b 100644 --- a/Assets/VRM10_Samples/VRM10Viewer/TinyPbrContext.cs +++ b/Assets/VRM10_Samples/VRM10Viewer/TinyPbrMaterialContext.cs @@ -2,32 +2,45 @@ using UnityEngine; namespace UniVRM10.VRM10Viewer { - public class TinyPbrContext + public class TinyPbrMaterialContext { + // When using shadergraph, you need to expose the following properties. + /// + /// Color = White + /// + private static readonly int BaseColorProp = Shader.PropertyToID("_BaseColor"); + /// + /// Texture2D = White + /// When using shadergraph, require "Set as Main Texture" + /// private static readonly int BaseMap = Shader.PropertyToID("_BaseMap"); + public readonly Material Material; + public TinyPbrMaterialContext(Material material) + { + Material = material; + } + + public Color BaseColorSrgb + { + get => Material.GetColor(BaseColorProp); + set => Material.SetColor(BaseColorProp, value); + } public Texture BaseTexture { get => Material.GetTexture(BaseMap); set => Material.SetTexture(BaseMap, value); } - public Vector2 BaseTextureOffset { get => Material.GetTextureOffset(BaseMap); set => Material.SetTextureOffset(BaseMap, value); } - public Vector2 BaseTextureScale { get => Material.GetTextureScale(BaseMap); set => Material.SetTextureScale(BaseMap, value); } - - public TinyPbrContext(Material material) - { - Material = material; - } } } \ No newline at end of file diff --git a/Assets/VRM10_Samples/VRM10Viewer/TinyPbrContext.cs.meta b/Assets/VRM10_Samples/VRM10Viewer/TinyPbrMaterialContext.cs.meta similarity index 100% rename from Assets/VRM10_Samples/VRM10Viewer/TinyPbrContext.cs.meta rename to Assets/VRM10_Samples/VRM10Viewer/TinyPbrMaterialContext.cs.meta diff --git a/Assets/VRM10_Samples/VRM10Viewer/TinyPbrDescriptorGenerator.cs b/Assets/VRM10_Samples/VRM10Viewer/TinyPbrMaterialDescriptorGenerator.cs similarity index 65% rename from Assets/VRM10_Samples/VRM10Viewer/TinyPbrDescriptorGenerator.cs rename to Assets/VRM10_Samples/VRM10Viewer/TinyPbrMaterialDescriptorGenerator.cs index 8382e0822..54c14e162 100644 --- a/Assets/VRM10_Samples/VRM10Viewer/TinyPbrDescriptorGenerator.cs +++ b/Assets/VRM10_Samples/VRM10Viewer/TinyPbrMaterialDescriptorGenerator.cs @@ -7,27 +7,25 @@ using UnityEngine; namespace UniVRM10.VRM10Viewer { /// - /// GLTF の MaterialImporter + /// TinyPbr 向け /// - public sealed class TinyPbrDescriptorGenerator : IMaterialDescriptorGenerator + public sealed class TinyPbrMaterialDescriptorGenerator : IMaterialDescriptorGenerator { public UrpGltfPbrMaterialImporter PbrMaterialImporter { get; } = new(); public UrpGltfDefaultMaterialImporter DefaultMaterialImporter { get; } = new(); public Material Material { get; set; } - public TinyPbrDescriptorGenerator(Material material) + /// TinyPbr material + public TinyPbrMaterialDescriptorGenerator(Material material) { Material = material; } public MaterialDescriptor Get(GltfData data, int i) { - // TODO: VRM - // UNLIT - MaterialDescriptor param; - // if (BuiltInGltfUnlitMaterialImporter.TryCreateParam(data, i, out param)) return param; + if (BuiltInGltfUnlitMaterialImporter.TryCreateParam(data, i, out var param)) return param; if (TryCreateParam(data, i, out param)) return param; @@ -68,7 +66,25 @@ namespace UniVRM10.VRM10Viewer public static async Task GenerateMaterialAsync(GltfData data, glTFMaterial src, Material dst, GetTextureAsyncFunc getTextureAsync, IAwaitCaller awaitCaller) { - var context = new TinyPbrContext(dst); + var context = new TinyPbrMaterialContext(dst); + + // ImportSurfaceSettings(src, context); + await ImportBaseColorAsync(data, src, context, getTextureAsync, awaitCaller); + // await ImportMetallicSmoothnessAsync(data, src, context, getTextureAsync, awaitCaller); + // await ImportOcclusionAsync(data, src, context, getTextureAsync, awaitCaller); + // await ImportNormalAsync(data, src, context, getTextureAsync, awaitCaller); + // await ImportEmissionAsync(data, src, context, getTextureAsync, awaitCaller); + + // context.Validate(); + } + + public static async Task ImportBaseColorAsync(GltfData data, glTFMaterial src, TinyPbrMaterialContext context, GetTextureAsyncFunc getTextureAsync, IAwaitCaller awaitCaller) + { + var baseColorFactor = GltfMaterialImportUtils.ImportLinearBaseColorFactor(data, src); + if (baseColorFactor.HasValue) + { + context.BaseColorSrgb = baseColorFactor.Value.gamma; + } if (src is { pbrMetallicRoughness: { baseColorTexture: { index: >= 0 } } }) { diff --git a/Assets/VRM10_Samples/VRM10Viewer/TinyPbrDescriptorGenerator.cs.meta b/Assets/VRM10_Samples/VRM10Viewer/TinyPbrMaterialDescriptorGenerator.cs.meta similarity index 100% rename from Assets/VRM10_Samples/VRM10Viewer/TinyPbrDescriptorGenerator.cs.meta rename to Assets/VRM10_Samples/VRM10Viewer/TinyPbrMaterialDescriptorGenerator.cs.meta diff --git a/Assets/VRM10_Samples/VRM10Viewer/VRM10ViewerUI.cs b/Assets/VRM10_Samples/VRM10Viewer/VRM10ViewerUI.cs index 86d2d37d7..eeda467f5 100644 --- a/Assets/VRM10_Samples/VRM10Viewer/VRM10ViewerUI.cs +++ b/Assets/VRM10_Samples/VRM10Viewer/VRM10ViewerUI.cs @@ -773,7 +773,7 @@ namespace UniVRM10.VRM10Viewer { if (m_useCustomMaterial.isOn) { - return new TinyPbrDescriptorGenerator(m_customMaterial); + return new TinyPbrMaterialDescriptorGenerator(m_customMaterial); } else { From 1086db9be0a6a4071071a56175167304d31fae0f Mon Sep 17 00:00:00 2001 From: ousttrue Date: Wed, 5 Feb 2025 15:42:11 +0900 Subject: [PATCH 03/56] Occlusion --- .../VRM10Viewer/Assets/TinyPbr.shadergraph | 669 +++++++++++++++++- .../VRM10Viewer/TinyPbrMaterialContext.cs | 23 +- .../TinyPbrMaterialDescriptorGenerator.cs | 13 +- 3 files changed, 680 insertions(+), 25 deletions(-) diff --git a/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyPbr.shadergraph b/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyPbr.shadergraph index 491a8cefc..4bfe92693 100644 --- a/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyPbr.shadergraph +++ b/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyPbr.shadergraph @@ -8,6 +8,12 @@ }, { "m_Id": "dea047da4cb0442bac26d6f468ba8f66" + }, + { + "m_Id": "653228a387f647d5a5e1fa4da9b5f6d7" + }, + { + "m_Id": "6b344f9254d2438b8ad07e5eef11db71" } ], "m_Keywords": [], @@ -59,6 +65,18 @@ }, { "m_Id": "2a5a6e02ee104d45a3ecc82a5ff7b17c" + }, + { + "m_Id": "7644e994b4da4282b21650a0f58a3757" + }, + { + "m_Id": "497c741e95244480b7cb6a37a51bb19a" + }, + { + "m_Id": "3be41b6b511d440c94c29229f4a7bdc2" + }, + { + "m_Id": "19964d5b976e467eb1b4a7f544bf3fef" } ], "m_GroupDatas": [], @@ -78,6 +96,20 @@ "m_SlotId": 0 } }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "19964d5b976e467eb1b4a7f544bf3fef" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "497c741e95244480b7cb6a37a51bb19a" + }, + "m_SlotId": 1 + } + }, { "m_OutputSlot": { "m_Node": { @@ -106,6 +138,34 @@ "m_SlotId": 1 } }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "3be41b6b511d440c94c29229f4a7bdc2" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "7644e994b4da4282b21650a0f58a3757" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "497c741e95244480b7cb6a37a51bb19a" + }, + "m_SlotId": 4 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "7644e994b4da4282b21650a0f58a3757" + }, + "m_SlotId": 1 + } + }, { "m_OutputSlot": { "m_Node": { @@ -148,6 +208,20 @@ "m_SlotId": 3 } }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "7644e994b4da4282b21650a0f58a3757" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "58ee8fea72cc4a649f9a1198b12d621b" + }, + "m_SlotId": 0 + } + }, { "m_OutputSlot": { "m_Node": { @@ -190,10 +264,10 @@ "m_Id": "80fce1dbcef04945aa9b988609dbe324" }, { - "m_Id": "6098dc7f36d84b83b8421cc0e56ed1a0" + "m_Id": "58ee8fea72cc4a649f9a1198b12d621b" }, { - "m_Id": "58ee8fea72cc4a649f9a1198b12d621b" + "m_Id": "6098dc7f36d84b83b8421cc0e56ed1a0" }, { "m_Id": "53f1bc01113946bc946f0808f16df02b" @@ -263,6 +337,12 @@ }, { "m_Id": "dea047da4cb0442bac26d6f468ba8f66" + }, + { + "m_Id": "653228a387f647d5a5e1fa4da9b5f6d7" + }, + { + "m_Id": "6b344f9254d2438b8ad07e5eef11db71" } ] } @@ -279,10 +359,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": -820.0, - "y": -36.00000762939453, + "x": -828.0, + "y": -123.33331298828125, "width": 132.0, - "height": 36.000003814697269 + "height": 35.999969482421878 } }, "m_Slots": [ @@ -352,6 +432,28 @@ "m_SerializedDescriptor": "SurfaceDescription.Emission" } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.UVMaterialSlot", + "m_ObjectId": "0f8d05511f944456995a00a6ee4ab46b", + "m_Id": 2, + "m_DisplayName": "UV", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "UV", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0 + }, + "m_Labels": [], + "m_Channel": 0 +} + { "m_SGVersion": 1, "m_Type": "UnityEditor.Rendering.Universal.ShaderGraph.UniversalTarget", @@ -389,6 +491,42 @@ "m_Labels": [] } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "19964d5b976e467eb1b4a7f544bf3fef", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -855.3333740234375, + "y": 198.00001525878907, + "width": 159.33331298828126, + "height": 35.99998474121094 + } + }, + "m_Slots": [ + { + "m_Id": "6aef7829a5044fd4a7f91e8641f0f647" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "6b344f9254d2438b8ad07e5eef11db71" + } +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", @@ -512,10 +650,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": -324.6666259765625, - "y": -0.0000023333232093136759, - "width": 209.33334350585938, - "height": 304.0000305175781 + "x": -324.6665954589844, + "y": -109.99999237060547, + "width": 209.333251953125, + "height": 303.9999694824219 } }, "m_Slots": [ @@ -568,10 +706,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": -820.0, - "y": 6.000001907348633, + "x": -828.0, + "y": -81.33334350585938, "width": 133.33331298828126, - "height": 35.99998474121094 + "height": 36.0000114440918 } }, "m_Slots": [ @@ -626,6 +764,31 @@ "m_SerializedDescriptor": "VertexDescription.Normal" } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "32aabad897d84b59bff831681715cd30", + "m_Id": 0, + "m_DisplayName": "RGBA", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "RGBA", + "m_StageCapability": 2, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_Labels": [] +} + { "m_SGVersion": 2, "m_Type": "UnityEditor.Rendering.Universal.ShaderGraph.UniversalLitSubTarget", @@ -636,6 +799,42 @@ "m_BlendModePreserveSpecular": true } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "3be41b6b511d440c94c29229f4a7bdc2", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -868.666748046875, + "y": 161.99998474121095, + "width": 172.66668701171876, + "height": 36.000030517578128 + } + }, + "m_Slots": [ + { + "m_Id": "a9fa65ff74114c879317162bdb85c658" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "653228a387f647d5a5e1fa4da9b5f6d7" + } +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", @@ -664,6 +863,66 @@ "m_BareResource": false } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SampleTexture2DNode", + "m_ObjectId": "497c741e95244480b7cb6a37a51bb19a", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Sample Texture 2D", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -676.0000610351563, + "y": 198.00001525878907, + "width": 184.6666259765625, + "height": 254.6667022705078 + } + }, + "m_Slots": [ + { + "m_Id": "32aabad897d84b59bff831681715cd30" + }, + { + "m_Id": "df89e85942804209a6c5a8542deaaf9a" + }, + { + "m_Id": "c9897d71ed584480b6d4cfa325464e61" + }, + { + "m_Id": "53e3002a7ed54a55b683dc1cc2780d8b" + }, + { + "m_Id": "868f3ba8f7724eb2b5bdb7af8db6b383" + }, + { + "m_Id": "8e5e7a322f89442789657fa3860211f0" + }, + { + "m_Id": "0f8d05511f944456995a00a6ee4ab46b" + }, + { + "m_Id": "c2a858a8ef4b47268a80969c0f02ee0a" + } + ], + "synonyms": [ + "tex2d" + ], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_TextureType": 0, + "m_NormalMapSpace": 0, + "m_EnableGlobalMipBias": true, + "m_MipSamplingMode": 0 +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.UVMaterialSlot", @@ -686,6 +945,21 @@ "m_Channel": 0 } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "53e3002a7ed54a55b683dc1cc2780d8b", + "m_Id": 6, + "m_DisplayName": "B", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.BlockNode", @@ -732,10 +1006,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": 12.0000581741333, - "y": 278.6667175292969, - "width": 200.00003051757813, - "height": 42.6666259765625 + "x": 15.999993324279786, + "y": 262.0000305175781, + "width": 199.99993896484376, + "height": 42.66668701171875 } }, "m_Slots": [ @@ -812,6 +1086,34 @@ "m_Space": 0 } +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty", + "m_ObjectId": "653228a387f647d5a5e1fa4da9b5f6d7", + "m_Guid": { + "m_GuidSerialized": "2403dd65-ec64-45a0-a766-875dd5bcd6d8" + }, + "m_Name": "OcclusionStrength", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "OcclusionStrength", + "m_DefaultReferenceName": "_OcclusionStrength", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": 1.0, + "m_FloatType": 0, + "m_RangeValues": { + "x": 0.0, + "y": 1.0 + } +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.SampleTexture2DNode", @@ -824,9 +1126,9 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": -668.0, - "y": -0.0000023333232093136759, - "width": 184.66665649414063, + "x": -676.0, + "y": -87.33334350585938, + "width": 184.66671752929688, "height": 254.6666717529297 } }, @@ -872,6 +1174,49 @@ "m_MipSamplingMode": 0 } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DMaterialSlot", + "m_ObjectId": "6aef7829a5044fd4a7f91e8641f0f647", + "m_Id": 0, + "m_DisplayName": "OcclusionMap", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_BareResource": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Internal.Texture2DShaderProperty", + "m_ObjectId": "6b344f9254d2438b8ad07e5eef11db71", + "m_Guid": { + "m_GuidSerialized": "2056943e-f283-4125-862c-dd5321f1cdd2" + }, + "m_Name": "OcclusionMap", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "OcclusionMap", + "m_DefaultReferenceName": "_OcclusionMap", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": { + "m_SerializedTexture": "", + "m_Guid": "" + }, + "isMainTexture": false, + "useTilingAndOffset": false, + "m_Modifiable": true, + "m_DefaultType": 0 +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.BlockNode", @@ -951,6 +1296,49 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.MultiplyNode", + "m_ObjectId": "7644e994b4da4282b21650a0f58a3757", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Multiply", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -324.6665954589844, + "y": 193.99998474121095, + "width": 209.333251953125, + "height": 304.0 + } + }, + "m_Slots": [ + { + "m_Id": "dae5c5d4ef084500a261fd99b836b8f9" + }, + { + "m_Id": "ceca89b18616453c8f4b71f28bd633f5" + }, + { + "m_Id": "7f82ff7fd35d4ce28f4513fa7a46ac49" + } + ], + "synonyms": [ + "multiplication", + "times", + "x" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", @@ -1003,6 +1391,54 @@ "m_SerializedDescriptor": "VertexDescription.Tangent" } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "7f82ff7fd35d4ce28f4513fa7a46ac49", + "m_Id": 2, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "e00": 0.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 0.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 0.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 0.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", @@ -1117,6 +1553,21 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "868f3ba8f7724eb2b5bdb7af8db6b383", + "m_Id": 7, + "m_DisplayName": "A", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", @@ -1134,6 +1585,24 @@ ] } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", + "m_ObjectId": "8e5e7a322f89442789657fa3860211f0", + "m_Id": 1, + "m_DisplayName": "Texture", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Texture", + "m_StageCapability": 3, + "m_BareResource": false, + "m_Texture": { + "m_SerializedTexture": "", + "m_Guid": "" + }, + "m_DefaultType": 0 +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Internal.Texture2DShaderProperty", @@ -1242,6 +1711,21 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "a9fa65ff74114c879317162bdb85c658", + "m_Id": 0, + "m_DisplayName": "OcclusionStrength", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector3Node", @@ -1254,10 +1738,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": -471.3333435058594, - "y": 23.9999942779541, - "width": 129.3333740234375, - "height": 126.66666412353516 + "x": -479.3332824707031, + "y": -63.33333969116211, + "width": 129.33331298828126, + "height": 126.66668701171875 } }, "m_Slots": [ @@ -1294,6 +1778,19 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SamplerStateMaterialSlot", + "m_ObjectId": "c2a858a8ef4b47268a80969c0f02ee0a", + "m_Id": 3, + "m_DisplayName": "Sampler", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Sampler", + "m_StageCapability": 3, + "m_BareResource": false +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", @@ -1309,6 +1806,21 @@ "m_Labels": [] } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "c9897d71ed584480b6d4cfa325464e61", + "m_Id": 5, + "m_DisplayName": "G", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "G", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", @@ -1324,6 +1836,102 @@ "m_Labels": [] } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "ceca89b18616453c8f4b71f28bd633f5", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": { + "e00": 2.0, + "e01": 2.0, + "e02": 2.0, + "e03": 2.0, + "e10": 2.0, + "e11": 2.0, + "e12": 2.0, + "e13": 2.0, + "e20": 2.0, + "e21": 2.0, + "e22": 2.0, + "e23": 2.0, + "e30": 2.0, + "e31": 2.0, + "e32": 2.0, + "e33": 2.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "dae5c5d4ef084500a261fd99b836b8f9", + "m_Id": 0, + "m_DisplayName": "A", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": { + "e00": 0.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 0.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 0.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 0.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + { "m_SGVersion": 3, "m_Type": "UnityEditor.ShaderGraph.Internal.ColorShaderProperty", @@ -1354,6 +1962,21 @@ "m_ColorMode": 0 } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "df89e85942804209a6c5a8542deaaf9a", + "m_Id": 4, + "m_DisplayName": "R", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "R", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.NormalMaterialSlot", diff --git a/Assets/VRM10_Samples/VRM10Viewer/TinyPbrMaterialContext.cs b/Assets/VRM10_Samples/VRM10Viewer/TinyPbrMaterialContext.cs index ba9bbf55b..2c4872e66 100644 --- a/Assets/VRM10_Samples/VRM10Viewer/TinyPbrMaterialContext.cs +++ b/Assets/VRM10_Samples/VRM10Viewer/TinyPbrMaterialContext.cs @@ -14,6 +14,14 @@ namespace UniVRM10.VRM10Viewer /// When using shadergraph, require "Set as Main Texture" /// private static readonly int BaseMap = Shader.PropertyToID("_BaseMap"); + /// + /// float = 1 + /// + private static readonly int OcclusionStrengthProp = Shader.PropertyToID("_OcclusionStrength"); + /// + /// Texture2D = White + /// + private static readonly int OcclusionMap = Shader.PropertyToID("_OcclusionMap"); public readonly Material Material; public TinyPbrMaterialContext(Material material) @@ -26,7 +34,6 @@ namespace UniVRM10.VRM10Viewer get => Material.GetColor(BaseColorProp); set => Material.SetColor(BaseColorProp, value); } - public Texture BaseTexture { get => Material.GetTexture(BaseMap); @@ -42,5 +49,19 @@ namespace UniVRM10.VRM10Viewer get => Material.GetTextureScale(BaseMap); set => Material.SetTextureScale(BaseMap, value); } + + public float OcclusionStrength + { + get => Material.GetFloat(OcclusionStrengthProp); + set => Material.SetFloat(OcclusionStrengthProp, value); + } + public Texture OcclusionTexture + { + get => Material.GetTexture(OcclusionMap); + set + { + Material.SetTexture(OcclusionMap, value); + } + } } } \ No newline at end of file diff --git a/Assets/VRM10_Samples/VRM10Viewer/TinyPbrMaterialDescriptorGenerator.cs b/Assets/VRM10_Samples/VRM10Viewer/TinyPbrMaterialDescriptorGenerator.cs index 54c14e162..95b438467 100644 --- a/Assets/VRM10_Samples/VRM10Viewer/TinyPbrMaterialDescriptorGenerator.cs +++ b/Assets/VRM10_Samples/VRM10Viewer/TinyPbrMaterialDescriptorGenerator.cs @@ -71,7 +71,7 @@ namespace UniVRM10.VRM10Viewer // ImportSurfaceSettings(src, context); await ImportBaseColorAsync(data, src, context, getTextureAsync, awaitCaller); // await ImportMetallicSmoothnessAsync(data, src, context, getTextureAsync, awaitCaller); - // await ImportOcclusionAsync(data, src, context, getTextureAsync, awaitCaller); + await ImportOcclusionAsync(data, src, context, getTextureAsync, awaitCaller); // await ImportNormalAsync(data, src, context, getTextureAsync, awaitCaller); // await ImportEmissionAsync(data, src, context, getTextureAsync, awaitCaller); @@ -96,5 +96,16 @@ namespace UniVRM10.VRM10Viewer } } } + public static async Task ImportOcclusionAsync(GltfData data, glTFMaterial src, TinyPbrMaterialContext context, GetTextureAsyncFunc getTextureAsync, IAwaitCaller awaitCaller) + { + if (src is { occlusionTexture: { index: >= 0 } }) + { + if (GltfPbrTextureImporter.TryStandardTexture(data, src, out _, out var desc)) + { + context.OcclusionTexture = await getTextureAsync(desc, awaitCaller); + context.OcclusionStrength = src.occlusionTexture.strength; + } + } + } } } \ No newline at end of file From b477694298db31d1d6aebf87f83412b21c69c07c Mon Sep 17 00:00:00 2001 From: ousttrue Date: Wed, 5 Feb 2025 16:21:03 +0900 Subject: [PATCH 04/56] MetallicRoughness --- .../VRM10Viewer/Assets/TinyPbr.shadergraph | 1090 ++++++++++++++++- .../VRM10Viewer/TinyPbrMaterialContext.cs | 47 +- .../TinyPbrMaterialDescriptorGenerator.cs | 23 +- 3 files changed, 1139 insertions(+), 21 deletions(-) diff --git a/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyPbr.shadergraph b/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyPbr.shadergraph index 4bfe92693..808e1111a 100644 --- a/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyPbr.shadergraph +++ b/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyPbr.shadergraph @@ -14,6 +14,15 @@ }, { "m_Id": "6b344f9254d2438b8ad07e5eef11db71" + }, + { + "m_Id": "c4ff105a2181464aaee7d5b6146a2c9b" + }, + { + "m_Id": "2859cb147a7742fca0dbb5256243d468" + }, + { + "m_Id": "fd4b1637b32c44d79eea652e4b5626b2" } ], "m_Keywords": [], @@ -77,6 +86,27 @@ }, { "m_Id": "19964d5b976e467eb1b4a7f544bf3fef" + }, + { + "m_Id": "1cb9d3109e954f59889461d6d563c74c" + }, + { + "m_Id": "bff080be2f534b5d82990c22e3cc631e" + }, + { + "m_Id": "91aa9548b6024d17b2b8a4be2770ad97" + }, + { + "m_Id": "177b02b8f3b64be1b2f2e7e0055128cb" + }, + { + "m_Id": "b08614dabfc6474ebee92e0b18d28d4b" + }, + { + "m_Id": "a60bd914ad7646698bb7f9c25f78f88d" + }, + { + "m_Id": "73efafc771664c7b8a4e4b9e58a6e868" } ], "m_GroupDatas": [], @@ -96,6 +126,34 @@ "m_SlotId": 0 } }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "177b02b8f3b64be1b2f2e7e0055128cb" + }, + "m_SlotId": 5 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "bff080be2f534b5d82990c22e3cc631e" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "177b02b8f3b64be1b2f2e7e0055128cb" + }, + "m_SlotId": 6 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "1cb9d3109e954f59889461d6d563c74c" + }, + "m_SlotId": 1 + } + }, { "m_OutputSlot": { "m_Node": { @@ -110,6 +168,20 @@ "m_SlotId": 1 } }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "1cb9d3109e954f59889461d6d563c74c" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "6098dc7f36d84b83b8421cc0e56ed1a0" + }, + "m_SlotId": 0 + } + }, { "m_OutputSlot": { "m_Node": { @@ -208,6 +280,20 @@ "m_SlotId": 3 } }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "73efafc771664c7b8a4e4b9e58a6e868" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "1cb9d3109e954f59889461d6d563c74c" + }, + "m_SlotId": 0 + } + }, { "m_OutputSlot": { "m_Node": { @@ -222,6 +308,48 @@ "m_SlotId": 0 } }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "91aa9548b6024d17b2b8a4be2770ad97" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "53f1bc01113946bc946f0808f16df02b" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "a60bd914ad7646698bb7f9c25f78f88d" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "bff080be2f534b5d82990c22e3cc631e" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "b08614dabfc6474ebee92e0b18d28d4b" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "177b02b8f3b64be1b2f2e7e0055128cb" + }, + "m_SlotId": 1 + } + }, { "m_OutputSlot": { "m_Node": { @@ -235,6 +363,20 @@ }, "m_SlotId": 1 } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "bff080be2f534b5d82990c22e3cc631e" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "91aa9548b6024d17b2b8a4be2770ad97" + }, + "m_SlotId": 1 + } } ], "m_VertexContext": { @@ -267,10 +409,10 @@ "m_Id": "58ee8fea72cc4a649f9a1198b12d621b" }, { - "m_Id": "6098dc7f36d84b83b8421cc0e56ed1a0" + "m_Id": "53f1bc01113946bc946f0808f16df02b" }, { - "m_Id": "53f1bc01113946bc946f0808f16df02b" + "m_Id": "6098dc7f36d84b83b8421cc0e56ed1a0" }, { "m_Id": "6f683c2eb23a4baf8dc028500640b75a" @@ -301,6 +443,21 @@ ] } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "0066f90f9bd24aa69c3b20e8c87e10c6", + "m_Id": 5, + "m_DisplayName": "G", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "G", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", @@ -343,6 +500,15 @@ }, { "m_Id": "6b344f9254d2438b8ad07e5eef11db71" + }, + { + "m_Id": "2859cb147a7742fca0dbb5256243d468" + }, + { + "m_Id": "fd4b1637b32c44d79eea652e4b5626b2" + }, + { + "m_Id": "c4ff105a2181464aaee7d5b6146a2c9b" } ] } @@ -383,6 +549,21 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "0ed4fbfbef64412cb58364eefca5123d", + "m_Id": 0, + "m_DisplayName": "Metallic", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", @@ -491,6 +672,66 @@ "m_Labels": [] } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SampleTexture2DNode", + "m_ObjectId": "177b02b8f3b64be1b2f2e7e0055128cb", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Sample Texture 2D", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -633.9999389648438, + "y": 707.333251953125, + "width": 184.66668701171876, + "height": 254.66668701171876 + } + }, + "m_Slots": [ + { + "m_Id": "73dae5af12874f62a0ab55d8d0f86874" + }, + { + "m_Id": "68ec8f2063b9438c9d63bb33ab631b2d" + }, + { + "m_Id": "0066f90f9bd24aa69c3b20e8c87e10c6" + }, + { + "m_Id": "f270ed64ab2f4573bccddd9052f89b45" + }, + { + "m_Id": "f2cd25f551014ea49840fbd04e896d26" + }, + { + "m_Id": "ed7a1bf0296441bb937a9b1e6a9aa0c4" + }, + { + "m_Id": "580cf03335e3466680b45e02c4e8581a" + }, + { + "m_Id": "92d965669cb747908bb948442a355c47" + } + ], + "synonyms": [ + "tex2d" + ], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_TextureType": 0, + "m_NormalMapSpace": 1, + "m_EnableGlobalMipBias": true, + "m_MipSamplingMode": 0 +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.PropertyNode", @@ -566,6 +807,49 @@ "m_Space": 0 } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.MultiplyNode", + "m_ObjectId": "1cb9d3109e954f59889461d6d563c74c", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Multiply", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -324.6665954589844, + "y": 834.6666259765625, + "width": 209.33331298828126, + "height": 304.0001220703125 + } + }, + "m_Slots": [ + { + "m_Id": "5d77e11243834cf3a6f2e4fcf96ea6ff" + }, + { + "m_Id": "5b9961219b68470c9e8f957cef52af65" + }, + { + "m_Id": "3342995320024fdcb5e1e70917f28a44" + } + ], + "synonyms": [ + "multiplication", + "times", + "x" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.NormalMaterialSlot", @@ -638,6 +922,58 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "26b0cc6a64b84c52993d605193516242", + "m_Id": 0, + "m_DisplayName": "A", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": { + "x": 1.0, + "y": 1.0, + "z": 1.0, + "w": 1.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty", + "m_ObjectId": "2859cb147a7742fca0dbb5256243d468", + "m_Guid": { + "m_GuidSerialized": "a6fd3729-c8ec-4297-8e95-c4d2117333eb" + }, + "m_Name": "Roughness", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "Roughness", + "m_DefaultReferenceName": "_Roughness", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": 1.0, + "m_FloatType": 0, + "m_RangeValues": { + "x": 0.0, + "y": 1.0 + } +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.MultiplyNode", @@ -789,6 +1125,54 @@ "m_Labels": [] } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "3342995320024fdcb5e1e70917f28a44", + "m_Id": 2, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "e00": 0.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 0.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 0.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 0.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + { "m_SGVersion": 2, "m_Type": "UnityEditor.Rendering.Universal.ShaderGraph.UniversalLitSubTarget", @@ -850,6 +1234,19 @@ "m_Labels": [] } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DMaterialSlot", + "m_ObjectId": "435d79c5527e4cd8935ce1a874f4ad05", + "m_Id": 0, + "m_DisplayName": "MetallicRoughnessMap", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_BareResource": false +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Texture2DMaterialSlot", @@ -918,7 +1315,7 @@ "m_SerializableColors": [] }, "m_TextureType": 0, - "m_NormalMapSpace": 0, + "m_NormalMapSpace": 1, "m_EnableGlobalMipBias": true, "m_MipSamplingMode": 0 } @@ -945,6 +1342,54 @@ "m_Channel": 0 } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "4f7bef37b9a04a89a116a5756540a254", + "m_Id": 0, + "m_DisplayName": "A", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": { + "e00": 0.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 0.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 0.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 0.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", @@ -972,9 +1417,9 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": 4.6667375564575199, - "y": 304.66668701171877, - "width": 200.00003051757813, + "x": 10.000014305114746, + "y": 317.3333435058594, + "width": 199.9999542236328, "height": 42.666656494140628 } }, @@ -994,6 +1439,28 @@ "m_SerializedDescriptor": "SurfaceDescription.Smoothness" } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.UVMaterialSlot", + "m_ObjectId": "580cf03335e3466680b45e02c4e8581a", + "m_Id": 2, + "m_DisplayName": "UV", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "UV", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0 + }, + "m_Labels": [], + "m_Channel": 0 +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.BlockNode", @@ -1028,6 +1495,102 @@ "m_SerializedDescriptor": "SurfaceDescription.Occlusion" } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "5b9961219b68470c9e8f957cef52af65", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": { + "e00": 2.0, + "e01": 2.0, + "e02": 2.0, + "e03": 2.0, + "e10": 2.0, + "e11": 2.0, + "e12": 2.0, + "e13": 2.0, + "e20": 2.0, + "e21": 2.0, + "e22": 2.0, + "e23": 2.0, + "e30": 2.0, + "e31": 2.0, + "e32": 2.0, + "e33": 2.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "5d77e11243834cf3a6f2e4fcf96ea6ff", + "m_Id": 0, + "m_DisplayName": "A", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": { + "e00": 0.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 0.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 0.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 0.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.BlockNode", @@ -1174,6 +1737,21 @@ "m_MipSamplingMode": 0 } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "68ec8f2063b9438c9d63bb33ab631b2d", + "m_Id": 4, + "m_DisplayName": "R", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "R", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Texture2DMaterialSlot", @@ -1212,7 +1790,7 @@ "m_Guid": "" }, "isMainTexture": false, - "useTilingAndOffset": false, + "useTilingAndOffset": true, "m_Modifiable": true, "m_DefaultType": 0 } @@ -1266,6 +1844,67 @@ "m_Labels": [] } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "73dae5af12874f62a0ab55d8d0f86874", + "m_Id": 0, + "m_DisplayName": "RGBA", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "RGBA", + "m_StageCapability": 2, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "73efafc771664c7b8a4e4b9e58a6e868", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -813.333251953125, + "y": 816.6666259765625, + "width": 117.33331298828125, + "height": 36.00006103515625 + } + }, + "m_Slots": [ + { + "m_Id": "0ed4fbfbef64412cb58364eefca5123d" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "fd4b1637b32c44d79eea652e4b5626b2" + } +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.ColorRGBMaterialSlot", @@ -1553,6 +2192,21 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "86409fdb77e447f19dcf968176770f7f", + "m_Id": 0, + "m_DisplayName": "Roughness", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", @@ -1568,6 +2222,54 @@ "m_Labels": [] } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "86bb22958e0547bb9cc968a7ff4eb1b7", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": { + "x": 1.0, + "y": 1.0, + "z": 1.0, + "w": 1.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "8730cfb2eee34a7aaa30bc67b7f03014", + "m_Id": 2, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", @@ -1603,6 +2305,63 @@ "m_DefaultType": 0 } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SubtractNode", + "m_ObjectId": "91aa9548b6024d17b2b8a4be2770ad97", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Subtract", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -178.66664123535157, + "y": 498.0000305175781, + "width": 127.33338928222656, + "height": 119.99990844726563 + } + }, + "m_Slots": [ + { + "m_Id": "26b0cc6a64b84c52993d605193516242" + }, + { + "m_Id": "86bb22958e0547bb9cc968a7ff4eb1b7" + }, + { + "m_Id": "8730cfb2eee34a7aaa30bc67b7f03014" + } + ], + "synonyms": [ + "subtraction", + "remove", + "minus", + "take away" + ], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SamplerStateMaterialSlot", + "m_ObjectId": "92d965669cb747908bb948442a355c47", + "m_Id": 3, + "m_DisplayName": "Sampler", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Sampler", + "m_StageCapability": 3, + "m_BareResource": false +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Internal.Texture2DShaderProperty", @@ -1633,6 +2392,90 @@ "m_DefaultType": 0 } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "9512c4f761ea4aaaa2db8e7ec9d7bf37", + "m_Id": 2, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "e00": 0.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 0.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 0.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 0.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "a60bd914ad7646698bb7f9c25f78f88d", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -829.9999389648438, + "y": 702.6666259765625, + "width": 134.0, + "height": 36.00006103515625 + } + }, + "m_Slots": [ + { + "m_Id": "86409fdb77e447f19dcf968176770f7f" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "2859cb147a7742fca0dbb5256243d468" + } +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", @@ -1726,6 +2569,42 @@ "m_Labels": [] } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "b08614dabfc6474ebee92e0b18d28d4b", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -901.9999389648438, + "y": 738.6666870117188, + "width": 206.0, + "height": 35.9998779296875 + } + }, + "m_Slots": [ + { + "m_Id": "435d79c5527e4cd8935ce1a874f4ad05" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "c4ff105a2181464aaee7d5b6146a2c9b" + } +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector3Node", @@ -1778,6 +2657,49 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.MultiplyNode", + "m_ObjectId": "bff080be2f534b5d82990c22e3cc631e", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Multiply", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -414.6666564941406, + "y": 530.6666259765625, + "width": 209.3333282470703, + "height": 304.0 + } + }, + "m_Slots": [ + { + "m_Id": "4f7bef37b9a04a89a116a5756540a254" + }, + { + "m_Id": "e96a61a3df77424ea29af5a57479b600" + }, + { + "m_Id": "9512c4f761ea4aaaa2db8e7ec9d7bf37" + } + ], + "synonyms": [ + "multiplication", + "times", + "x" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.SamplerStateMaterialSlot", @@ -1806,6 +2728,36 @@ "m_Labels": [] } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Internal.Texture2DShaderProperty", + "m_ObjectId": "c4ff105a2181464aaee7d5b6146a2c9b", + "m_Guid": { + "m_GuidSerialized": "77edee86-bd02-4114-a7f5-247e9ba9cf42" + }, + "m_Name": "MetallicRoughnessMap", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "MetallicRoughnessMap", + "m_DefaultReferenceName": "_MetallicRoughnessMap", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": { + "m_SerializedTexture": "", + "m_Guid": "" + }, + "isMainTexture": false, + "useTilingAndOffset": true, + "m_Modifiable": true, + "m_DefaultType": 0 +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", @@ -2024,6 +2976,72 @@ "m_Labels": [] } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "e96a61a3df77424ea29af5a57479b600", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": { + "e00": 2.0, + "e01": 2.0, + "e02": 2.0, + "e03": 2.0, + "e10": 2.0, + "e11": 2.0, + "e12": 2.0, + "e13": 2.0, + "e20": 2.0, + "e21": 2.0, + "e22": 2.0, + "e23": 2.0, + "e30": 2.0, + "e31": 2.0, + "e32": 2.0, + "e33": 2.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", + "m_ObjectId": "ed7a1bf0296441bb937a9b1e6a9aa0c4", + "m_Id": 1, + "m_DisplayName": "Texture", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Texture", + "m_StageCapability": 3, + "m_BareResource": false, + "m_Texture": { + "m_SerializedTexture": "", + "m_Guid": "" + }, + "m_DefaultType": 0 +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", @@ -2049,6 +3067,36 @@ "m_Labels": [] } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "f270ed64ab2f4573bccddd9052f89b45", + "m_Id": 6, + "m_DisplayName": "B", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "f2cd25f551014ea49840fbd04e896d26", + "m_Id": 7, + "m_DisplayName": "A", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.BlockNode", @@ -2083,3 +3131,31 @@ "m_SerializedDescriptor": "VertexDescription.Position" } +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty", + "m_ObjectId": "fd4b1637b32c44d79eea652e4b5626b2", + "m_Guid": { + "m_GuidSerialized": "95cdef22-fc8b-49da-9fe2-98bab1d5658c" + }, + "m_Name": "Metallic", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "Metallic", + "m_DefaultReferenceName": "_Metallic", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": 1.0, + "m_FloatType": 0, + "m_RangeValues": { + "x": 0.0, + "y": 1.0 + } +} + diff --git a/Assets/VRM10_Samples/VRM10Viewer/TinyPbrMaterialContext.cs b/Assets/VRM10_Samples/VRM10Viewer/TinyPbrMaterialContext.cs index 2c4872e66..c9a8282f2 100644 --- a/Assets/VRM10_Samples/VRM10Viewer/TinyPbrMaterialContext.cs +++ b/Assets/VRM10_Samples/VRM10Viewer/TinyPbrMaterialContext.cs @@ -13,15 +13,22 @@ namespace UniVRM10.VRM10Viewer /// Texture2D = White /// When using shadergraph, require "Set as Main Texture" /// - private static readonly int BaseMap = Shader.PropertyToID("_BaseMap"); + private static readonly int BaseMapProp = Shader.PropertyToID("_BaseMap"); /// - /// float = 1 + /// float = 1.0 /// private static readonly int OcclusionStrengthProp = Shader.PropertyToID("_OcclusionStrength"); /// - /// Texture2D = White + /// Texture2D.Red = 1.0. /// - private static readonly int OcclusionMap = Shader.PropertyToID("_OcclusionMap"); + private static readonly int OcclusionMapProp = Shader.PropertyToID("_OcclusionMap"); + private static readonly int RoughnessProp = Shader.PropertyToID("_Roughness"); + private static readonly int MetallicProp = Shader.PropertyToID("_Metallic"); + /// + /// Texture2D.Green = 1.0. The roughness + /// Texture2D.Blue = 1.0. The metalness + /// + private static readonly int MetallicRoughnessMapProp = Shader.PropertyToID("_MetallicRoughnessMap"); public readonly Material Material; public TinyPbrMaterialContext(Material material) @@ -36,18 +43,18 @@ namespace UniVRM10.VRM10Viewer } public Texture BaseTexture { - get => Material.GetTexture(BaseMap); - set => Material.SetTexture(BaseMap, value); + get => Material.GetTexture(BaseMapProp); + set => Material.SetTexture(BaseMapProp, value); } public Vector2 BaseTextureOffset { - get => Material.GetTextureOffset(BaseMap); - set => Material.SetTextureOffset(BaseMap, value); + get => Material.GetTextureOffset(BaseMapProp); + set => Material.SetTextureOffset(BaseMapProp, value); } public Vector2 BaseTextureScale { - get => Material.GetTextureScale(BaseMap); - set => Material.SetTextureScale(BaseMap, value); + get => Material.GetTextureScale(BaseMapProp); + set => Material.SetTextureScale(BaseMapProp, value); } public float OcclusionStrength @@ -57,11 +64,27 @@ namespace UniVRM10.VRM10Viewer } public Texture OcclusionTexture { - get => Material.GetTexture(OcclusionMap); + get => Material.GetTexture(OcclusionMapProp); set { - Material.SetTexture(OcclusionMap, value); + Material.SetTexture(OcclusionMapProp, value); } } + + public float Roughness + { + get => Material.GetFloat(RoughnessProp); + set => Material.SetFloat(RoughnessProp, value); + } + public float Metallic + { + get => Material.GetFloat(MetallicProp); + set => Material.SetFloat(MetallicProp, value); + } + public Texture MetallicRoughnessMap + { + get => Material.GetTexture(MetallicRoughnessMapProp); + set => Material.SetTexture(MetallicRoughnessMapProp, value); + } } } \ No newline at end of file diff --git a/Assets/VRM10_Samples/VRM10Viewer/TinyPbrMaterialDescriptorGenerator.cs b/Assets/VRM10_Samples/VRM10Viewer/TinyPbrMaterialDescriptorGenerator.cs index 95b438467..7282b07af 100644 --- a/Assets/VRM10_Samples/VRM10Viewer/TinyPbrMaterialDescriptorGenerator.cs +++ b/Assets/VRM10_Samples/VRM10Viewer/TinyPbrMaterialDescriptorGenerator.cs @@ -70,7 +70,7 @@ namespace UniVRM10.VRM10Viewer // ImportSurfaceSettings(src, context); await ImportBaseColorAsync(data, src, context, getTextureAsync, awaitCaller); - // await ImportMetallicSmoothnessAsync(data, src, context, getTextureAsync, awaitCaller); + await ImportMetallicRoughnessAsync(data, src, context, getTextureAsync, awaitCaller); await ImportOcclusionAsync(data, src, context, getTextureAsync, awaitCaller); // await ImportNormalAsync(data, src, context, getTextureAsync, awaitCaller); // await ImportEmissionAsync(data, src, context, getTextureAsync, awaitCaller); @@ -96,11 +96,30 @@ namespace UniVRM10.VRM10Viewer } } } + + public static async Task ImportMetallicRoughnessAsync(GltfData data, glTFMaterial src, TinyPbrMaterialContext context, GetTextureAsyncFunc getTextureAsync, IAwaitCaller awaitCaller) + { + context.Metallic = src.pbrMetallicRoughness.metallicFactor; + context.Roughness = src.pbrMetallicRoughness.roughnessFactor; + + if (src is { pbrMetallicRoughness: { metallicRoughnessTexture: { index: >= 0 } } }) + { + var (offset, scale) = GltfTextureImporter.GetTextureOffsetAndScale(src.pbrMetallicRoughness.metallicRoughnessTexture); + if (GltfTextureImporter.TryCreateLinear(data, src.pbrMetallicRoughness.metallicRoughnessTexture.index, offset, scale, out var _, out var desc)) + { + context.MetallicRoughnessMap = await getTextureAsync(desc, awaitCaller); + context.Metallic = 1; + context.Roughness = 1; + } + } + } + public static async Task ImportOcclusionAsync(GltfData data, glTFMaterial src, TinyPbrMaterialContext context, GetTextureAsyncFunc getTextureAsync, IAwaitCaller awaitCaller) { if (src is { occlusionTexture: { index: >= 0 } }) { - if (GltfPbrTextureImporter.TryStandardTexture(data, src, out _, out var desc)) + var (offset, scale) = GltfTextureImporter.GetTextureOffsetAndScale(src.occlusionTexture); + if (GltfTextureImporter.TryCreateLinear(data, src.occlusionTexture.index, offset, scale, out var _, out var desc)) { context.OcclusionTexture = await getTextureAsync(desc, awaitCaller); context.OcclusionStrength = src.occlusionTexture.strength; From 0bc56bcb5a3d8df614153926ad5a71acd8d4fd89 Mon Sep 17 00:00:00 2001 From: ousttrue Date: Wed, 5 Feb 2025 18:41:26 +0900 Subject: [PATCH 05/56] fix MetallicRoughness --- .../VRM10Viewer/Assets/TinyPbr.shadergraph | 28 ++-- .../VRM10Viewer/Assets/black.png | Bin 0 -> 68 bytes .../VRM10Viewer/Assets/black.png.meta | 127 ++++++++++++++++++ .../VRM10_Samples/VRM10Viewer/Assets/blue.png | Bin 0 -> 79 bytes .../VRM10Viewer/Assets/blue.png.meta | 127 ++++++++++++++++++ .../VRM10_Samples/VRM10Viewer/Assets/red.png | Bin 0 -> 79 bytes .../VRM10Viewer/Assets/red.png.meta | 127 ++++++++++++++++++ .../VRM10Viewer/Assets/white.png | Bin 0 -> 79 bytes .../VRM10Viewer/Assets/white.png.meta | 127 ++++++++++++++++++ .../TinyPbrMaterialDescriptorGenerator.cs | 14 +- 10 files changed, 531 insertions(+), 19 deletions(-) create mode 100644 Assets/VRM10_Samples/VRM10Viewer/Assets/black.png create mode 100644 Assets/VRM10_Samples/VRM10Viewer/Assets/black.png.meta create mode 100644 Assets/VRM10_Samples/VRM10Viewer/Assets/blue.png create mode 100644 Assets/VRM10_Samples/VRM10Viewer/Assets/blue.png.meta create mode 100644 Assets/VRM10_Samples/VRM10Viewer/Assets/red.png create mode 100644 Assets/VRM10_Samples/VRM10Viewer/Assets/red.png.meta create mode 100644 Assets/VRM10_Samples/VRM10Viewer/Assets/white.png create mode 100644 Assets/VRM10_Samples/VRM10Viewer/Assets/white.png.meta diff --git a/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyPbr.shadergraph b/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyPbr.shadergraph index 808e1111a..2eb3b1c4d 100644 --- a/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyPbr.shadergraph +++ b/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyPbr.shadergraph @@ -966,7 +966,7 @@ "overrideHLSLDeclaration": false, "hlslDeclarationOverride": 0, "m_Hidden": false, - "m_Value": 1.0, + "m_Value": 0.0, "m_FloatType": 0, "m_RangeValues": { "x": 0.0, @@ -1786,7 +1786,7 @@ "hlslDeclarationOverride": 0, "m_Hidden": false, "m_Value": { - "m_SerializedTexture": "", + "m_SerializedTexture": "{\"texture\":{\"fileID\":2800000,\"guid\":\"51ce5cf2de6d788449c2fdd4b8488a92\",\"type\":3}}", "m_Guid": "" }, "isMainTexture": false, @@ -2317,10 +2317,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": -178.66664123535157, - "y": 498.0000305175781, - "width": 127.33338928222656, - "height": 119.99990844726563 + "x": -324.66668701171877, + "y": 508.00006103515627, + "width": 209.33328247070313, + "height": 303.99993896484377 } }, "m_Slots": [ @@ -2341,7 +2341,7 @@ "take away" ], "m_Precision": 0, - "m_PreviewExpanded": false, + "m_PreviewExpanded": true, "m_DismissedVersion": 0, "m_PreviewMode": 0, "m_CustomColors": { @@ -2383,7 +2383,7 @@ "hlslDeclarationOverride": 0, "m_Hidden": false, "m_Value": { - "m_SerializedTexture": "", + "m_SerializedTexture": "{\"texture\":{\"fileID\":2800000,\"guid\":\"3ab316f1cf207684abb754d9a2731c66\",\"type\":3}}", "m_Guid": "" }, "isMainTexture": true, @@ -2669,10 +2669,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": -414.6666564941406, - "y": 530.6666259765625, - "width": 209.3333282470703, - "height": 304.0 + "x": -530.0000610351563, + "y": 546.0000610351563, + "width": 127.3333740234375, + "height": 120.0 } }, "m_Slots": [ @@ -2692,7 +2692,7 @@ "x" ], "m_Precision": 0, - "m_PreviewExpanded": true, + "m_PreviewExpanded": false, "m_DismissedVersion": 0, "m_PreviewMode": 0, "m_CustomColors": { @@ -2749,7 +2749,7 @@ "hlslDeclarationOverride": 0, "m_Hidden": false, "m_Value": { - "m_SerializedTexture": "", + "m_SerializedTexture": "{\"texture\":{\"fileID\":2800000,\"guid\":\"909670d47b2f55d4a991788acca59d7e\",\"type\":3}}", "m_Guid": "" }, "isMainTexture": false, diff --git a/Assets/VRM10_Samples/VRM10Viewer/Assets/black.png b/Assets/VRM10_Samples/VRM10Viewer/Assets/black.png new file mode 100644 index 0000000000000000000000000000000000000000..aa8727af7477c12b66881bfabe91216f9e0abd42 GIT binary patch literal 68 zcmeAS@N?(olHy`uVBq!ia0vp^Od!kwBL7~QRScxKJzX3_IIbrrIIuA=@G&qNzPu|6 P6lU;r^>bP0l+XkKoE;79 literal 0 HcmV?d00001 diff --git a/Assets/VRM10_Samples/VRM10Viewer/Assets/black.png.meta b/Assets/VRM10_Samples/VRM10Viewer/Assets/black.png.meta new file mode 100644 index 000000000..37047a83e --- /dev/null +++ b/Assets/VRM10_Samples/VRM10Viewer/Assets/black.png.meta @@ -0,0 +1,127 @@ +fileFormatVersion: 2 +guid: d8c7685da35f7994799534cbc1acce4a +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 13 + mipmaps: + mipMapMode: 0 + enableMipMap: 1 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 0 + wrapV: 0 + wrapW: 0 + nPOTScale: 1 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 0 + spriteTessellationDetail: -1 + textureType: 0 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/VRM10_Samples/VRM10Viewer/Assets/blue.png b/Assets/VRM10_Samples/VRM10Viewer/Assets/blue.png new file mode 100644 index 0000000000000000000000000000000000000000..35cd4570f0705db3aa3258f52758ae66ceaa7419 GIT binary patch literal 79 zcmeAS@N?(olHy`uVBq!ia0vp^Od!kwBL7~QRScxWJY5_^IIbtBB>Xsk;J|?+Kz!f; a0|U1_BlFF5tKxww7(8A5T-G@yGywqqeiuUk literal 0 HcmV?d00001 diff --git a/Assets/VRM10_Samples/VRM10Viewer/Assets/blue.png.meta b/Assets/VRM10_Samples/VRM10Viewer/Assets/blue.png.meta new file mode 100644 index 000000000..78c97a508 --- /dev/null +++ b/Assets/VRM10_Samples/VRM10Viewer/Assets/blue.png.meta @@ -0,0 +1,127 @@ +fileFormatVersion: 2 +guid: 909670d47b2f55d4a991788acca59d7e +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 13 + mipmaps: + mipMapMode: 0 + enableMipMap: 1 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 0 + wrapV: 0 + wrapW: 0 + nPOTScale: 1 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 0 + spriteTessellationDetail: -1 + textureType: 0 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/VRM10_Samples/VRM10Viewer/Assets/red.png b/Assets/VRM10_Samples/VRM10Viewer/Assets/red.png new file mode 100644 index 0000000000000000000000000000000000000000..b90efb932a03fd2d0251dfcd544cd5a93a018845 GIT binary patch literal 79 zcmeAS@N?(olHy`uVBq!ia0vp^Od!kwBL7~QRScxWJY5_^IIbuEIe!2Ij(|y^dRazh U?U&0=097z}y85}Sb4q9e02Z$o^#A|> literal 0 HcmV?d00001 diff --git a/Assets/VRM10_Samples/VRM10Viewer/Assets/red.png.meta b/Assets/VRM10_Samples/VRM10Viewer/Assets/red.png.meta new file mode 100644 index 000000000..21e77cd47 --- /dev/null +++ b/Assets/VRM10_Samples/VRM10Viewer/Assets/red.png.meta @@ -0,0 +1,127 @@ +fileFormatVersion: 2 +guid: 51ce5cf2de6d788449c2fdd4b8488a92 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 13 + mipmaps: + mipMapMode: 0 + enableMipMap: 1 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 0 + wrapV: 0 + wrapW: 0 + nPOTScale: 1 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 0 + spriteTessellationDetail: -1 + textureType: 0 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/VRM10_Samples/VRM10Viewer/Assets/white.png b/Assets/VRM10_Samples/VRM10Viewer/Assets/white.png new file mode 100644 index 0000000000000000000000000000000000000000..8cd9f771b390c3a52ade99568cd4a51856b6b74b GIT binary patch literal 79 zcmeAS@N?(olHy`uVBq!ia0vp^Od!kwBL7~QRScxWJY5_^IIbuE`TyUZnVDG_h=G7X Xg^ihUuiWEZKotz0u6{1-oD!M= 0 } } }) { @@ -108,21 +111,22 @@ namespace UniVRM10.VRM10Viewer if (GltfTextureImporter.TryCreateLinear(data, src.pbrMetallicRoughness.metallicRoughnessTexture.index, offset, scale, out var _, out var desc)) { context.MetallicRoughnessMap = await getTextureAsync(desc, awaitCaller); - context.Metallic = 1; - context.Roughness = 1; } } } public static async Task ImportOcclusionAsync(GltfData data, glTFMaterial src, TinyPbrMaterialContext context, GetTextureAsyncFunc getTextureAsync, IAwaitCaller awaitCaller) { + if (src.occlusionTexture != null) + { + context.OcclusionStrength = src.occlusionTexture.strength; + } if (src is { occlusionTexture: { index: >= 0 } }) { var (offset, scale) = GltfTextureImporter.GetTextureOffsetAndScale(src.occlusionTexture); if (GltfTextureImporter.TryCreateLinear(data, src.occlusionTexture.index, offset, scale, out var _, out var desc)) { context.OcclusionTexture = await getTextureAsync(desc, awaitCaller); - context.OcclusionStrength = src.occlusionTexture.strength; } } } From 64c923e238fc9545e96d0dad2f8dbea3889fdf98 Mon Sep 17 00:00:00 2001 From: ousttrue Date: Wed, 5 Feb 2025 18:54:44 +0900 Subject: [PATCH 06/56] BumpMap --- .../VRM10Viewer/Assets/TinyPbr.shadergraph | 542 +++++++++++++++++- .../VRM10Viewer/TinyPbrMaterialContext.cs | 22 + .../TinyPbrMaterialDescriptorGenerator.cs | 14 +- 3 files changed, 575 insertions(+), 3 deletions(-) diff --git a/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyPbr.shadergraph b/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyPbr.shadergraph index 2eb3b1c4d..fd98bb652 100644 --- a/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyPbr.shadergraph +++ b/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyPbr.shadergraph @@ -23,6 +23,12 @@ }, { "m_Id": "fd4b1637b32c44d79eea652e4b5626b2" + }, + { + "m_Id": "f8ac3f450f1a4d849926601ace10a04f" + }, + { + "m_Id": "d77500f24b3f490daf8cc2f5dcd19f60" } ], "m_Keywords": [], @@ -107,6 +113,18 @@ }, { "m_Id": "73efafc771664c7b8a4e4b9e58a6e868" + }, + { + "m_Id": "42b5b42d2e304772a31a535448fded9c" + }, + { + "m_Id": "4f05aa87bb184723a2d2b15721a0c3e9" + }, + { + "m_Id": "b83e5bff780742a79344a87ff879965a" + }, + { + "m_Id": "609f313b8b6f4ee8a871650dc611dc0c" } ], "m_GroupDatas": [], @@ -224,6 +242,20 @@ "m_SlotId": 0 } }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "42b5b42d2e304772a31a535448fded9c" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "6f683c2eb23a4baf8dc028500640b75a" + }, + "m_SlotId": 0 + } + }, { "m_OutputSlot": { "m_Node": { @@ -238,6 +270,34 @@ "m_SlotId": 1 } }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "4f05aa87bb184723a2d2b15721a0c3e9" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "42b5b42d2e304772a31a535448fded9c" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "609f313b8b6f4ee8a871650dc611dc0c" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "4f05aa87bb184723a2d2b15721a0c3e9" + }, + "m_SlotId": 1 + } + }, { "m_OutputSlot": { "m_Node": { @@ -350,6 +410,20 @@ "m_SlotId": 1 } }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "b83e5bff780742a79344a87ff879965a" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "42b5b42d2e304772a31a535448fded9c" + }, + "m_SlotId": 1 + } + }, { "m_OutputSlot": { "m_Node": { @@ -483,6 +557,19 @@ "m_Labels": [] } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DMaterialSlot", + "m_ObjectId": "064aae75fadd4a0b942d21348da5dd81", + "m_Id": 0, + "m_DisplayName": "BumpMap", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_BareResource": false +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.CategoryData", @@ -509,6 +596,12 @@ }, { "m_Id": "c4ff105a2181464aaee7d5b6146a2c9b" + }, + { + "m_Id": "f8ac3f450f1a4d849926601ace10a04f" + }, + { + "m_Id": "d77500f24b3f490daf8cc2f5dcd19f60" } ] } @@ -1100,6 +1193,29 @@ "m_SerializedDescriptor": "VertexDescription.Normal" } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", + "m_ObjectId": "32680074fcd94dcfb904ea7725f3bdf7", + "m_Id": 0, + "m_DisplayName": "In", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "In", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 1.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [] +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", @@ -1234,6 +1350,47 @@ "m_Labels": [] } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.NormalStrengthNode", + "m_ObjectId": "42b5b42d2e304772a31a535448fded9c", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Normal Strength", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -324.6666259765625, + "y": 1138.6668701171875, + "width": 209.3333740234375, + "height": 303.9998779296875 + } + }, + "m_Slots": [ + { + "m_Id": "32680074fcd94dcfb904ea7725f3bdf7" + }, + { + "m_Id": "4e90ec3f541d453c8ae515b9ae1ecacc" + }, + { + "m_Id": "7a258b7ee50f42959e7e5e1bd2c7631b" + } + ], + "synonyms": [ + "intensity" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Texture2DMaterialSlot", @@ -1342,6 +1499,81 @@ "m_Channel": 0 } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "4e90ec3f541d453c8ae515b9ae1ecacc", + "m_Id": 1, + "m_DisplayName": "Strength", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Strength", + "m_StageCapability": 3, + "m_Value": 1.0, + "m_DefaultValue": 1.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SampleTexture2DNode", + "m_ObjectId": "4f05aa87bb184723a2d2b15721a0c3e9", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Sample Texture 2D", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -633.9999389648438, + "y": 979.3333129882813, + "width": 184.66665649414063, + "height": 254.66668701171876 + } + }, + "m_Slots": [ + { + "m_Id": "6d10127b9d4e4bcfa16626d3ae7ef55e" + }, + { + "m_Id": "b00b5f49f832499283825f4a2cf12f79" + }, + { + "m_Id": "c35266cc646a444b9bd38a748550b8e4" + }, + { + "m_Id": "aeac528b6a2444518362cffca1be05ba" + }, + { + "m_Id": "63a74a0ddc784303b8449630e548ae2c" + }, + { + "m_Id": "a071058625974c08b0932da5861c7128" + }, + { + "m_Id": "9a3a7785b0b44221afd748ed04b0dde6" + }, + { + "m_Id": "7d670b40f8f2468a9af5840562b1c62d" + } + ], + "synonyms": [ + "tex2d" + ], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_TextureType": 1, + "m_NormalMapSpace": 0, + "m_EnableGlobalMipBias": true, + "m_MipSamplingMode": 0 +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", @@ -1625,6 +1857,42 @@ "m_SerializedDescriptor": "SurfaceDescription.Metallic" } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "609f313b8b6f4ee8a871650dc611dc0c", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -833.9999389648438, + "y": 1216.0, + "width": 138.0, + "height": 35.9998779296875 + } + }, + "m_Slots": [ + { + "m_Id": "064aae75fadd4a0b942d21348da5dd81" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "d77500f24b3f490daf8cc2f5dcd19f60" + } +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.PositionMaterialSlot", @@ -1649,6 +1917,21 @@ "m_Space": 0 } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "63a74a0ddc784303b8449630e548ae2c", + "m_Id": 7, + "m_DisplayName": "A", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + { "m_SGVersion": 1, "m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty", @@ -1792,7 +2075,32 @@ "isMainTexture": false, "useTilingAndOffset": true, "m_Modifiable": true, - "m_DefaultType": 0 + "m_DefaultType": 4 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "6d10127b9d4e4bcfa16626d3ae7ef55e", + "m_Id": 0, + "m_DisplayName": "RGBA", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "RGBA", + "m_StageCapability": 2, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_Labels": [] } { @@ -1978,6 +2286,29 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", + "m_ObjectId": "7a258b7ee50f42959e7e5e1bd2c7631b", + "m_Id": 2, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [] +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", @@ -2030,6 +2361,19 @@ "m_SerializedDescriptor": "VertexDescription.Tangent" } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SamplerStateMaterialSlot", + "m_ObjectId": "7d670b40f8f2468a9af5840562b1c62d", + "m_Id": 3, + "m_DisplayName": "Sampler", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Sampler", + "m_StageCapability": 3, + "m_BareResource": false +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", @@ -2440,6 +2784,46 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.UVMaterialSlot", + "m_ObjectId": "9a3a7785b0b44221afd748ed04b0dde6", + "m_Id": 2, + "m_DisplayName": "UV", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "UV", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0 + }, + "m_Labels": [], + "m_Channel": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", + "m_ObjectId": "a071058625974c08b0932da5861c7128", + "m_Id": 1, + "m_DisplayName": "Texture", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Texture", + "m_StageCapability": 3, + "m_BareResource": false, + "m_Texture": { + "m_SerializedTexture": "", + "m_Guid": "" + }, + "m_DefaultType": 3 +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.PropertyNode", @@ -2569,6 +2953,36 @@ "m_Labels": [] } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "aeac528b6a2444518362cffca1be05ba", + "m_Id": 6, + "m_DisplayName": "B", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "b00b5f49f832499283825f4a2cf12f79", + "m_Id": 4, + "m_DisplayName": "R", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "R", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.PropertyNode", @@ -2605,6 +3019,42 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "b83e5bff780742a79344a87ff879965a", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -830.6666259765625, + "y": 1260.6666259765625, + "width": 134.66668701171876, + "height": 36.0 + } + }, + "m_Slots": [ + { + "m_Id": "e7d2ed98f9964f4aa647d47a4707f549" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "f8ac3f450f1a4d849926601ace10a04f" + } +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector3Node", @@ -2713,6 +3163,21 @@ "m_BareResource": false } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "c35266cc646a444b9bd38a748550b8e4", + "m_Id": 5, + "m_DisplayName": "G", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "G", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", @@ -2755,7 +3220,7 @@ "isMainTexture": false, "useTilingAndOffset": true, "m_Modifiable": true, - "m_DefaultType": 0 + "m_DefaultType": 4 } { @@ -2836,6 +3301,36 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Internal.Texture2DShaderProperty", + "m_ObjectId": "d77500f24b3f490daf8cc2f5dcd19f60", + "m_Guid": { + "m_GuidSerialized": "96cd3240-b1e2-4ec9-816f-b4be029dbeb6" + }, + "m_Name": "BumpMap", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "BumpMap", + "m_DefaultReferenceName": "_BumpMap", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": { + "m_SerializedTexture": "", + "m_Guid": "" + }, + "isMainTexture": false, + "useTilingAndOffset": false, + "m_Modifiable": true, + "m_DefaultType": 3 +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", @@ -2976,6 +3471,21 @@ "m_Labels": [] } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "e7d2ed98f9964f4aa647d47a4707f549", + "m_Id": 0, + "m_DisplayName": "BumpScale", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", @@ -3131,6 +3641,34 @@ "m_SerializedDescriptor": "VertexDescription.Position" } +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty", + "m_ObjectId": "f8ac3f450f1a4d849926601ace10a04f", + "m_Guid": { + "m_GuidSerialized": "8bb96dec-3d73-4fb0-8e69-db74dee7110e" + }, + "m_Name": "BumpScale", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "BumpScale", + "m_DefaultReferenceName": "_BumpScale", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": 0.0, + "m_FloatType": 0, + "m_RangeValues": { + "x": 0.0, + "y": 1.0 + } +} + { "m_SGVersion": 1, "m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty", diff --git a/Assets/VRM10_Samples/VRM10Viewer/TinyPbrMaterialContext.cs b/Assets/VRM10_Samples/VRM10Viewer/TinyPbrMaterialContext.cs index c9a8282f2..70b07e553 100644 --- a/Assets/VRM10_Samples/VRM10Viewer/TinyPbrMaterialContext.cs +++ b/Assets/VRM10_Samples/VRM10Viewer/TinyPbrMaterialContext.cs @@ -29,6 +29,14 @@ namespace UniVRM10.VRM10Viewer /// Texture2D.Blue = 1.0. The metalness /// private static readonly int MetallicRoughnessMapProp = Shader.PropertyToID("_MetallicRoughnessMap"); + /// + /// float = 1.0 + /// + private static readonly int BumpScaleProp = Shader.PropertyToID("_BumpScale"); + /// + /// Texture2D = [0, 0, 1.0] + /// + private static readonly int BumpMapProp = Shader.PropertyToID("_BumpMap"); public readonly Material Material; public TinyPbrMaterialContext(Material material) @@ -86,5 +94,19 @@ namespace UniVRM10.VRM10Viewer get => Material.GetTexture(MetallicRoughnessMapProp); set => Material.SetTexture(MetallicRoughnessMapProp, value); } + + public float BumpScale + { + get => Material.GetFloat(BumpScaleProp); + set => Material.SetFloat(BumpScaleProp, value); + } + public Texture BumpMap + { + get => Material.GetTexture(BumpMapProp); + set + { + Material.SetTexture(BumpMapProp, value); + } + } } } \ No newline at end of file diff --git a/Assets/VRM10_Samples/VRM10Viewer/TinyPbrMaterialDescriptorGenerator.cs b/Assets/VRM10_Samples/VRM10Viewer/TinyPbrMaterialDescriptorGenerator.cs index 035c2a539..5ba063422 100644 --- a/Assets/VRM10_Samples/VRM10Viewer/TinyPbrMaterialDescriptorGenerator.cs +++ b/Assets/VRM10_Samples/VRM10Viewer/TinyPbrMaterialDescriptorGenerator.cs @@ -72,7 +72,7 @@ namespace UniVRM10.VRM10Viewer await ImportBaseColorAsync(data, src, context, getTextureAsync, awaitCaller); await ImportMetallicRoughnessAsync(data, src, context, getTextureAsync, awaitCaller); await ImportOcclusionAsync(data, src, context, getTextureAsync, awaitCaller); - // await ImportNormalAsync(data, src, context, getTextureAsync, awaitCaller); + await ImportNormalAsync(data, src, context, getTextureAsync, awaitCaller); // await ImportEmissionAsync(data, src, context, getTextureAsync, awaitCaller); // context.Validate(); @@ -130,5 +130,17 @@ namespace UniVRM10.VRM10Viewer } } } + + private static async Task ImportNormalAsync(GltfData data, glTFMaterial src, TinyPbrMaterialContext context, GetTextureAsyncFunc getTextureAsync, IAwaitCaller awaitCaller) + { + if (src.normalTexture is { index: >= 0 }) + { + if (GltfPbrTextureImporter.TryNormalTexture(data, src, out _, out var desc)) + { + context.BumpMap = await getTextureAsync(desc, awaitCaller); + context.BumpScale = src.normalTexture.scale; + } + } + } } } \ No newline at end of file From 71e72c79e3b80473672d6b64431f846f90a13081 Mon Sep 17 00:00:00 2001 From: ousttrue Date: Wed, 5 Feb 2025 19:15:54 +0900 Subject: [PATCH 07/56] emission --- .../VRM10Viewer/Assets/TinyPbr.shadergraph | 635 ++++++++++++++++++ .../VRM10Viewer/Assets/white_hdr.hdr | 6 + .../VRM10Viewer/Assets/white_hdr.hdr.meta | 127 ++++ .../VRM10Viewer/TinyPbrMaterialContext.cs | 24 +- .../TinyPbrMaterialDescriptorGenerator.cs | 19 +- 5 files changed, 809 insertions(+), 2 deletions(-) create mode 100644 Assets/VRM10_Samples/VRM10Viewer/Assets/white_hdr.hdr create mode 100644 Assets/VRM10_Samples/VRM10Viewer/Assets/white_hdr.hdr.meta diff --git a/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyPbr.shadergraph b/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyPbr.shadergraph index fd98bb652..d375e750d 100644 --- a/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyPbr.shadergraph +++ b/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyPbr.shadergraph @@ -29,6 +29,12 @@ }, { "m_Id": "d77500f24b3f490daf8cc2f5dcd19f60" + }, + { + "m_Id": "9e699a1f35ed460f9274b370e7e01749" + }, + { + "m_Id": "2138b6eae95a4a249265714cefb1795f" } ], "m_Keywords": [], @@ -125,6 +131,18 @@ }, { "m_Id": "609f313b8b6f4ee8a871650dc611dc0c" + }, + { + "m_Id": "61ad74e00639449f90b3e8cd5747f9a2" + }, + { + "m_Id": "0ec124cb35be4b22af0a2dfb725df3fd" + }, + { + "m_Id": "94fe3f50fd0c4ce3a036c672b2d71557" + }, + { + "m_Id": "f36558b3ef9547e295ba8c189a69b79a" } ], "m_GroupDatas": [], @@ -144,6 +162,20 @@ "m_SlotId": 0 } }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "0ec124cb35be4b22af0a2dfb725df3fd" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "61ad74e00639449f90b3e8cd5747f9a2" + }, + "m_SlotId": 1 + } + }, { "m_OutputSlot": { "m_Node": { @@ -298,6 +330,20 @@ "m_SlotId": 1 } }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "61ad74e00639449f90b3e8cd5747f9a2" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "0f64718141f34878916463ec72c9d2d8" + }, + "m_SlotId": 0 + } + }, { "m_OutputSlot": { "m_Node": { @@ -382,6 +428,20 @@ "m_SlotId": 0 } }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "94fe3f50fd0c4ce3a036c672b2d71557" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "61ad74e00639449f90b3e8cd5747f9a2" + }, + "m_SlotId": 0 + } + }, { "m_OutputSlot": { "m_Node": { @@ -451,6 +511,20 @@ }, "m_SlotId": 1 } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "f36558b3ef9547e295ba8c189a69b79a" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "0ec124cb35be4b22af0a2dfb725df3fd" + }, + "m_SlotId": 1 + } } ], "m_VertexContext": { @@ -602,6 +676,12 @@ }, { "m_Id": "d77500f24b3f490daf8cc2f5dcd19f60" + }, + { + "m_Id": "9e699a1f35ed460f9274b370e7e01749" + }, + { + "m_Id": "2138b6eae95a4a249265714cefb1795f" } ] } @@ -642,6 +722,66 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SampleTexture2DNode", + "m_ObjectId": "0ec124cb35be4b22af0a2dfb725df3fd", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Sample Texture 2D", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -634.0, + "y": 1446.6666259765625, + "width": 184.66671752929688, + "height": 254.666748046875 + } + }, + "m_Slots": [ + { + "m_Id": "362985acc7f845c1b9f7b1218298da18" + }, + { + "m_Id": "1ed603dfb0b0451e944135351d8a365c" + }, + { + "m_Id": "82214cd81d964d3d85c2827edfacfe14" + }, + { + "m_Id": "bc0f521c8b5a422682fee09706fe01c2" + }, + { + "m_Id": "ad96a8905a0342aa9a8d4de299ac0597" + }, + { + "m_Id": "600f11bf782744918d280e9924d8a921" + }, + { + "m_Id": "bb835b61b10946b985e60bf0f403d51e" + }, + { + "m_Id": "5c2a18cbde0e45c088c239270ad0949d" + } + ], + "synonyms": [ + "tex2d" + ], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_TextureType": 0, + "m_NormalMapSpace": 1, + "m_EnableGlobalMipBias": true, + "m_MipSamplingMode": 0 +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", @@ -943,6 +1083,21 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "1ed603dfb0b0451e944135351d8a365c", + "m_Id": 4, + "m_DisplayName": "R", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "R", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.NormalMaterialSlot", @@ -1015,6 +1170,36 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Internal.Texture2DShaderProperty", + "m_ObjectId": "2138b6eae95a4a249265714cefb1795f", + "m_Guid": { + "m_GuidSerialized": "38fb1136-db3c-4ff9-b392-107a99d04afb" + }, + "m_Name": "EmissionMap", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "EmissionMap", + "m_DefaultReferenceName": "_EmissionMap", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": { + "m_SerializedTexture": "{\"texture\":{\"fileID\":2800000,\"guid\":\"09e6225be3a2a43489e11a41cb198377\",\"type\":3}}", + "m_Guid": "" + }, + "isMainTexture": false, + "useTilingAndOffset": true, + "m_Modifiable": true, + "m_DefaultType": 4 +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", @@ -1299,6 +1484,79 @@ "m_BlendModePreserveSpecular": true } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "362985acc7f845c1b9f7b1218298da18", + "m_Id": 0, + "m_DisplayName": "RGBA", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "RGBA", + "m_StageCapability": 2, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "38ee4cc0f5934ebb9fc033495c2e25a4", + "m_Id": 2, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "e00": 0.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 0.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 0.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 0.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.PropertyNode", @@ -1775,6 +2033,19 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SamplerStateMaterialSlot", + "m_ObjectId": "5c2a18cbde0e45c088c239270ad0949d", + "m_Id": 3, + "m_DisplayName": "Sampler", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Sampler", + "m_StageCapability": 3, + "m_BareResource": false +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", @@ -1823,6 +2094,49 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "5dc2f5aa641347b2aeb52a9767a433ce", + "m_Id": 0, + "m_DisplayName": "EmissionColor", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", + "m_ObjectId": "600f11bf782744918d280e9924d8a921", + "m_Id": 1, + "m_DisplayName": "Texture", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Texture", + "m_StageCapability": 3, + "m_BareResource": false, + "m_Texture": { + "m_SerializedTexture": "", + "m_Guid": "" + }, + "m_DefaultType": 0 +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.BlockNode", @@ -1917,6 +2231,49 @@ "m_Space": 0 } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.MultiplyNode", + "m_ObjectId": "61ad74e00639449f90b3e8cd5747f9a2", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Multiply", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -324.6666564941406, + "y": 1442.6668701171875, + "width": 209.3333740234375, + "height": 303.9998779296875 + } + }, + "m_Slots": [ + { + "m_Id": "8298b050e7144f5c88983ff8a703db19" + }, + { + "m_Id": "f17d8746454e409e891b2a301f143151" + }, + { + "m_Id": "38ee4cc0f5934ebb9fc033495c2e25a4" + } + ], + "synonyms": [ + "multiplication", + "times", + "x" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", @@ -2152,6 +2509,19 @@ "m_Labels": [] } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DMaterialSlot", + "m_ObjectId": "72164721f8af40cba28e44f84a0f4fd5", + "m_Id": 0, + "m_DisplayName": "EmissionMap", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_BareResource": false +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", @@ -2471,6 +2841,21 @@ "m_SerializedDescriptor": "SurfaceDescription.BaseColor" } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "82214cd81d964d3d85c2827edfacfe14", + "m_Id": 5, + "m_DisplayName": "G", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "G", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", @@ -2488,6 +2873,54 @@ ] } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "8298b050e7144f5c88983ff8a703db19", + "m_Id": 0, + "m_DisplayName": "A", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": { + "e00": 0.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 0.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 0.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 0.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", @@ -2736,6 +3169,42 @@ "m_DefaultType": 0 } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "94fe3f50fd0c4ce3a036c672b2d71557", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -802.6666259765625, + "y": 1406.666748046875, + "width": 106.66668701171875, + "height": 36.0 + } + }, + "m_Slots": [ + { + "m_Id": "5dc2f5aa641347b2aeb52a9767a433ce" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "9e699a1f35ed460f9274b370e7e01749" + } +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", @@ -2806,6 +3275,36 @@ "m_Channel": 0 } +{ + "m_SGVersion": 3, + "m_Type": "UnityEditor.ShaderGraph.Internal.ColorShaderProperty", + "m_ObjectId": "9e699a1f35ed460f9274b370e7e01749", + "m_Guid": { + "m_GuidSerialized": "9962908c-bb06-4540-874e-237cdf21a29e" + }, + "m_Name": "EmissionColor", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "EmissionColor", + "m_DefaultReferenceName": "_EmissionColor", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": { + "r": 0.0, + "g": 0.0, + "b": 0.0, + "a": 0.0 + }, + "isMainColor": false, + "m_ColorMode": 1 +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", @@ -2953,6 +3452,21 @@ "m_Labels": [] } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "ad96a8905a0342aa9a8d4de299ac0597", + "m_Id": 7, + "m_DisplayName": "A", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", @@ -3055,6 +3569,43 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.UVMaterialSlot", + "m_ObjectId": "bb835b61b10946b985e60bf0f403d51e", + "m_Id": 2, + "m_DisplayName": "UV", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "UV", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0 + }, + "m_Labels": [], + "m_Channel": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "bc0f521c8b5a422682fee09706fe01c2", + "m_Id": 6, + "m_DisplayName": "B", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector3Node", @@ -3577,6 +4128,54 @@ "m_Labels": [] } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "f17d8746454e409e891b2a301f143151", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": { + "e00": 2.0, + "e01": 2.0, + "e02": 2.0, + "e03": 2.0, + "e10": 2.0, + "e11": 2.0, + "e12": 2.0, + "e13": 2.0, + "e20": 2.0, + "e21": 2.0, + "e22": 2.0, + "e23": 2.0, + "e30": 2.0, + "e31": 2.0, + "e32": 2.0, + "e33": 2.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", @@ -3607,6 +4206,42 @@ "m_Labels": [] } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "f36558b3ef9547e295ba8c189a69b79a", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -835.9999389648438, + "y": 1446.6666259765625, + "width": 140.0, + "height": 36.0 + } + }, + "m_Slots": [ + { + "m_Id": "72164721f8af40cba28e44f84a0f4fd5" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "2138b6eae95a4a249265714cefb1795f" + } +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.BlockNode", diff --git a/Assets/VRM10_Samples/VRM10Viewer/Assets/white_hdr.hdr b/Assets/VRM10_Samples/VRM10Viewer/Assets/white_hdr.hdr new file mode 100644 index 000000000..004f75c44 --- /dev/null +++ b/Assets/VRM10_Samples/VRM10Viewer/Assets/white_hdr.hdr @@ -0,0 +1,6 @@ +#?RADIANCE +SOFTWARE=GEGL +FORMAT=32-bit_rle_rgbe + +-Y 2 +X 2 + \ No newline at end of file diff --git a/Assets/VRM10_Samples/VRM10Viewer/Assets/white_hdr.hdr.meta b/Assets/VRM10_Samples/VRM10Viewer/Assets/white_hdr.hdr.meta new file mode 100644 index 000000000..febb863ca --- /dev/null +++ b/Assets/VRM10_Samples/VRM10Viewer/Assets/white_hdr.hdr.meta @@ -0,0 +1,127 @@ +fileFormatVersion: 2 +guid: 09e6225be3a2a43489e11a41cb198377 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 13 + mipmaps: + mipMapMode: 0 + enableMipMap: 1 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 0 + wrapV: 0 + wrapW: 0 + nPOTScale: 1 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 0 + spriteTessellationDetail: -1 + textureType: 0 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/VRM10_Samples/VRM10Viewer/TinyPbrMaterialContext.cs b/Assets/VRM10_Samples/VRM10Viewer/TinyPbrMaterialContext.cs index 70b07e553..28e2c7116 100644 --- a/Assets/VRM10_Samples/VRM10Viewer/TinyPbrMaterialContext.cs +++ b/Assets/VRM10_Samples/VRM10Viewer/TinyPbrMaterialContext.cs @@ -4,13 +4,16 @@ namespace UniVRM10.VRM10Viewer { public class TinyPbrMaterialContext { + // // When using shadergraph, you need to expose the following properties. + // + /// /// Color = White /// private static readonly int BaseColorProp = Shader.PropertyToID("_BaseColor"); /// - /// Texture2D = White + /// Texture2D = white /// When using shadergraph, require "Set as Main Texture" /// private static readonly int BaseMapProp = Shader.PropertyToID("_BaseMap"); @@ -37,6 +40,14 @@ namespace UniVRM10.VRM10Viewer /// Texture2D = [0, 0, 1.0] /// private static readonly int BumpMapProp = Shader.PropertyToID("_BumpMap"); + /// + /// Color = black + /// + private static readonly int EmissionColor = Shader.PropertyToID("_EmissionColor"); + /// + /// Texture2D = black + /// + private static readonly int EmissionMap = Shader.PropertyToID("_EmissionMap"); public readonly Material Material; public TinyPbrMaterialContext(Material material) @@ -108,5 +119,16 @@ namespace UniVRM10.VRM10Viewer Material.SetTexture(BumpMapProp, value); } } + + public Color EmissionColorLinear + { + get => Material.GetColor(EmissionColor); + set => Material.SetColor(EmissionColor, value); + } + public Texture EmissionTexture + { + get => Material.GetTexture(EmissionMap); + set => Material.SetTexture(EmissionMap, value); + } } } \ No newline at end of file diff --git a/Assets/VRM10_Samples/VRM10Viewer/TinyPbrMaterialDescriptorGenerator.cs b/Assets/VRM10_Samples/VRM10Viewer/TinyPbrMaterialDescriptorGenerator.cs index 5ba063422..d275ec200 100644 --- a/Assets/VRM10_Samples/VRM10Viewer/TinyPbrMaterialDescriptorGenerator.cs +++ b/Assets/VRM10_Samples/VRM10Viewer/TinyPbrMaterialDescriptorGenerator.cs @@ -73,7 +73,7 @@ namespace UniVRM10.VRM10Viewer await ImportMetallicRoughnessAsync(data, src, context, getTextureAsync, awaitCaller); await ImportOcclusionAsync(data, src, context, getTextureAsync, awaitCaller); await ImportNormalAsync(data, src, context, getTextureAsync, awaitCaller); - // await ImportEmissionAsync(data, src, context, getTextureAsync, awaitCaller); + await ImportEmissionAsync(data, src, context, getTextureAsync, awaitCaller); // context.Validate(); } @@ -142,5 +142,22 @@ namespace UniVRM10.VRM10Viewer } } } + + private static async Task ImportEmissionAsync(GltfData data, glTFMaterial src, TinyPbrMaterialContext context, GetTextureAsyncFunc getTextureAsync, IAwaitCaller awaitCaller) + { + var emissiveFactor = GltfMaterialImportUtils.ImportLinearEmissiveFactor(data, src); + if (emissiveFactor.HasValue) + { + context.EmissionColorLinear = emissiveFactor.Value; + } + + if (src is { emissiveTexture: { index: >= 0 } }) + { + if (GltfPbrTextureImporter.TryEmissiveTexture(data, src, out _, out var desc)) + { + context.EmissionTexture = await getTextureAsync(desc, awaitCaller); + } + } + } } } \ No newline at end of file From fa0a4f377967cc8bb2378c0ecf6e0fdab8ac6701 Mon Sep 17 00:00:00 2001 From: ousttrue Date: Wed, 5 Feb 2025 21:44:08 +0900 Subject: [PATCH 08/56] AlphaBlend --- ...enderingServicePostProcessingProfile.asset | 2 +- .../Assets/TinyPbrAlphaBlend.shadergraph | 4938 +++++++++++++++++ .../Assets/TinyPbrAlphaBlend.shadergraph.meta | 10 + ....shadergraph => TinyPbrOpaque.shadergraph} | 0 ...ph.meta => TinyPbrOpaque.shadergraph.meta} | 0 .../TinyPbrMaterialDescriptorGenerator.cs | 19 +- .../VRM10Viewer/VRM10Viewer.unity | 6 +- .../VRM10Viewer/VRM10ViewerUI.cs | 11 +- 8 files changed, 4976 insertions(+), 10 deletions(-) create mode 100644 Assets/VRM10_Samples/VRM10Viewer/Assets/TinyPbrAlphaBlend.shadergraph create mode 100644 Assets/VRM10_Samples/VRM10Viewer/Assets/TinyPbrAlphaBlend.shadergraph.meta rename Assets/VRM10_Samples/VRM10Viewer/Assets/{TinyPbr.shadergraph => TinyPbrOpaque.shadergraph} (100%) rename Assets/VRM10_Samples/VRM10Viewer/Assets/{TinyPbr.shadergraph.meta => TinyPbrOpaque.shadergraph.meta} (100%) diff --git a/Assets/UniGLTF/Runtime/Scenes/LookDev/RenderingServicePostProcessingProfile.asset b/Assets/UniGLTF/Runtime/Scenes/LookDev/RenderingServicePostProcessingProfile.asset index 0ec610d06..ed58c30e6 100644 --- a/Assets/UniGLTF/Runtime/Scenes/LookDev/RenderingServicePostProcessingProfile.asset +++ b/Assets/UniGLTF/Runtime/Scenes/LookDev/RenderingServicePostProcessingProfile.asset @@ -45,7 +45,7 @@ MonoBehaviour: value: 65472 diffusion: overrideState: 1 - value: 7 + value: 6.4 anamorphicRatio: overrideState: 0 value: 0 diff --git a/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyPbrAlphaBlend.shadergraph b/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyPbrAlphaBlend.shadergraph new file mode 100644 index 000000000..a87b10c20 --- /dev/null +++ b/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyPbrAlphaBlend.shadergraph @@ -0,0 +1,4938 @@ +{ + "m_SGVersion": 3, + "m_Type": "UnityEditor.ShaderGraph.GraphData", + "m_ObjectId": "77181a4b19324ebdb175da71cf4f6186", + "m_Properties": [ + { + "m_Id": "92f5ab11614c4ec1b4d632f73041ba65" + }, + { + "m_Id": "dea047da4cb0442bac26d6f468ba8f66" + }, + { + "m_Id": "653228a387f647d5a5e1fa4da9b5f6d7" + }, + { + "m_Id": "6b344f9254d2438b8ad07e5eef11db71" + }, + { + "m_Id": "c4ff105a2181464aaee7d5b6146a2c9b" + }, + { + "m_Id": "2859cb147a7742fca0dbb5256243d468" + }, + { + "m_Id": "fd4b1637b32c44d79eea652e4b5626b2" + }, + { + "m_Id": "f8ac3f450f1a4d849926601ace10a04f" + }, + { + "m_Id": "d77500f24b3f490daf8cc2f5dcd19f60" + }, + { + "m_Id": "9e699a1f35ed460f9274b370e7e01749" + }, + { + "m_Id": "2138b6eae95a4a249265714cefb1795f" + } + ], + "m_Keywords": [], + "m_Dropdowns": [], + "m_CategoryData": [ + { + "m_Id": "0778abfa54c94f9abfd0482e1de4d602" + } + ], + "m_Nodes": [ + { + "m_Id": "f56f676a56e04566a12f41980b760358" + }, + { + "m_Id": "307a94d3f1ca45a39f6170433e3c81c6" + }, + { + "m_Id": "7b57df1b4e444208bd41b7b749f485d0" + }, + { + "m_Id": "80fce1dbcef04945aa9b988609dbe324" + }, + { + "m_Id": "6f683c2eb23a4baf8dc028500640b75a" + }, + { + "m_Id": "6098dc7f36d84b83b8421cc0e56ed1a0" + }, + { + "m_Id": "53f1bc01113946bc946f0808f16df02b" + }, + { + "m_Id": "0f64718141f34878916463ec72c9d2d8" + }, + { + "m_Id": "58ee8fea72cc4a649f9a1198b12d621b" + }, + { + "m_Id": "6637a91f035a40e798e76f70bed17d7e" + }, + { + "m_Id": "305a571d629e4b258d80c3ad877cb596" + }, + { + "m_Id": "0b94be19d37c4268b363243bac818ac4" + }, + { + "m_Id": "bc1b1f1db2674d2eb92cff962761dad3" + }, + { + "m_Id": "2a5a6e02ee104d45a3ecc82a5ff7b17c" + }, + { + "m_Id": "7644e994b4da4282b21650a0f58a3757" + }, + { + "m_Id": "497c741e95244480b7cb6a37a51bb19a" + }, + { + "m_Id": "3be41b6b511d440c94c29229f4a7bdc2" + }, + { + "m_Id": "19964d5b976e467eb1b4a7f544bf3fef" + }, + { + "m_Id": "1cb9d3109e954f59889461d6d563c74c" + }, + { + "m_Id": "bff080be2f534b5d82990c22e3cc631e" + }, + { + "m_Id": "91aa9548b6024d17b2b8a4be2770ad97" + }, + { + "m_Id": "177b02b8f3b64be1b2f2e7e0055128cb" + }, + { + "m_Id": "b08614dabfc6474ebee92e0b18d28d4b" + }, + { + "m_Id": "a60bd914ad7646698bb7f9c25f78f88d" + }, + { + "m_Id": "73efafc771664c7b8a4e4b9e58a6e868" + }, + { + "m_Id": "42b5b42d2e304772a31a535448fded9c" + }, + { + "m_Id": "4f05aa87bb184723a2d2b15721a0c3e9" + }, + { + "m_Id": "b83e5bff780742a79344a87ff879965a" + }, + { + "m_Id": "609f313b8b6f4ee8a871650dc611dc0c" + }, + { + "m_Id": "61ad74e00639449f90b3e8cd5747f9a2" + }, + { + "m_Id": "0ec124cb35be4b22af0a2dfb725df3fd" + }, + { + "m_Id": "94fe3f50fd0c4ce3a036c672b2d71557" + }, + { + "m_Id": "f36558b3ef9547e295ba8c189a69b79a" + }, + { + "m_Id": "13c40b9504d247499cd3ce8a57badab2" + }, + { + "m_Id": "ae95328961414c969e0a0dd7ac9bdb73" + }, + { + "m_Id": "165e36ddc0554916b7670ae4096eb278" + }, + { + "m_Id": "8db1c68dfd2946afb8d345a98ddc0889" + } + ], + "m_GroupDatas": [], + "m_StickyNoteDatas": [], + "m_Edges": [ + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "0b94be19d37c4268b363243bac818ac4" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "165e36ddc0554916b7670ae4096eb278" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "0ec124cb35be4b22af0a2dfb725df3fd" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "61ad74e00639449f90b3e8cd5747f9a2" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "165e36ddc0554916b7670ae4096eb278" + }, + "m_SlotId": 1 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "8db1c68dfd2946afb8d345a98ddc0889" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "165e36ddc0554916b7670ae4096eb278" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "8db1c68dfd2946afb8d345a98ddc0889" + }, + "m_SlotId": 2 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "165e36ddc0554916b7670ae4096eb278" + }, + "m_SlotId": 3 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "8db1c68dfd2946afb8d345a98ddc0889" + }, + "m_SlotId": 3 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "165e36ddc0554916b7670ae4096eb278" + }, + "m_SlotId": 4 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "ae95328961414c969e0a0dd7ac9bdb73" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "177b02b8f3b64be1b2f2e7e0055128cb" + }, + "m_SlotId": 5 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "bff080be2f534b5d82990c22e3cc631e" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "177b02b8f3b64be1b2f2e7e0055128cb" + }, + "m_SlotId": 6 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "1cb9d3109e954f59889461d6d563c74c" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "19964d5b976e467eb1b4a7f544bf3fef" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "497c741e95244480b7cb6a37a51bb19a" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "1cb9d3109e954f59889461d6d563c74c" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "6098dc7f36d84b83b8421cc0e56ed1a0" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "2a5a6e02ee104d45a3ecc82a5ff7b17c" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "80fce1dbcef04945aa9b988609dbe324" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "305a571d629e4b258d80c3ad877cb596" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "6637a91f035a40e798e76f70bed17d7e" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "3be41b6b511d440c94c29229f4a7bdc2" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "7644e994b4da4282b21650a0f58a3757" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "42b5b42d2e304772a31a535448fded9c" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "6f683c2eb23a4baf8dc028500640b75a" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "497c741e95244480b7cb6a37a51bb19a" + }, + "m_SlotId": 4 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "7644e994b4da4282b21650a0f58a3757" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "4f05aa87bb184723a2d2b15721a0c3e9" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "42b5b42d2e304772a31a535448fded9c" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "609f313b8b6f4ee8a871650dc611dc0c" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "4f05aa87bb184723a2d2b15721a0c3e9" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "61ad74e00639449f90b3e8cd5747f9a2" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "0f64718141f34878916463ec72c9d2d8" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "6637a91f035a40e798e76f70bed17d7e" + }, + "m_SlotId": 4 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "bc1b1f1db2674d2eb92cff962761dad3" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "6637a91f035a40e798e76f70bed17d7e" + }, + "m_SlotId": 5 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "bc1b1f1db2674d2eb92cff962761dad3" + }, + "m_SlotId": 2 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "6637a91f035a40e798e76f70bed17d7e" + }, + "m_SlotId": 6 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "bc1b1f1db2674d2eb92cff962761dad3" + }, + "m_SlotId": 3 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "6637a91f035a40e798e76f70bed17d7e" + }, + "m_SlotId": 7 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "ae95328961414c969e0a0dd7ac9bdb73" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "73efafc771664c7b8a4e4b9e58a6e868" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "1cb9d3109e954f59889461d6d563c74c" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "7644e994b4da4282b21650a0f58a3757" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "58ee8fea72cc4a649f9a1198b12d621b" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "8db1c68dfd2946afb8d345a98ddc0889" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "2a5a6e02ee104d45a3ecc82a5ff7b17c" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "91aa9548b6024d17b2b8a4be2770ad97" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "53f1bc01113946bc946f0808f16df02b" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "94fe3f50fd0c4ce3a036c672b2d71557" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "61ad74e00639449f90b3e8cd5747f9a2" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "a60bd914ad7646698bb7f9c25f78f88d" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "bff080be2f534b5d82990c22e3cc631e" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "ae95328961414c969e0a0dd7ac9bdb73" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "13c40b9504d247499cd3ce8a57badab2" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "b08614dabfc6474ebee92e0b18d28d4b" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "177b02b8f3b64be1b2f2e7e0055128cb" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "b83e5bff780742a79344a87ff879965a" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "42b5b42d2e304772a31a535448fded9c" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "bc1b1f1db2674d2eb92cff962761dad3" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "2a5a6e02ee104d45a3ecc82a5ff7b17c" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "bff080be2f534b5d82990c22e3cc631e" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "91aa9548b6024d17b2b8a4be2770ad97" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "f36558b3ef9547e295ba8c189a69b79a" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "0ec124cb35be4b22af0a2dfb725df3fd" + }, + "m_SlotId": 1 + } + } + ], + "m_VertexContext": { + "m_Position": { + "x": 0.0, + "y": 0.0 + }, + "m_Blocks": [ + { + "m_Id": "f56f676a56e04566a12f41980b760358" + }, + { + "m_Id": "307a94d3f1ca45a39f6170433e3c81c6" + }, + { + "m_Id": "7b57df1b4e444208bd41b7b749f485d0" + } + ] + }, + "m_FragmentContext": { + "m_Position": { + "x": 0.000029290516977198422, + "y": 198.0 + }, + "m_Blocks": [ + { + "m_Id": "80fce1dbcef04945aa9b988609dbe324" + }, + { + "m_Id": "13c40b9504d247499cd3ce8a57badab2" + }, + { + "m_Id": "58ee8fea72cc4a649f9a1198b12d621b" + }, + { + "m_Id": "53f1bc01113946bc946f0808f16df02b" + }, + { + "m_Id": "6098dc7f36d84b83b8421cc0e56ed1a0" + }, + { + "m_Id": "6f683c2eb23a4baf8dc028500640b75a" + }, + { + "m_Id": "0f64718141f34878916463ec72c9d2d8" + } + ] + }, + "m_PreviewData": { + "serializedMesh": { + "m_SerializedMesh": "{\"mesh\":{\"instanceID\":0}}", + "m_Guid": "" + }, + "preventRotation": false + }, + "m_Path": "Shader Graphs", + "m_GraphPrecision": 1, + "m_PreviewMode": 2, + "m_OutputNode": { + "m_Id": "" + }, + "m_SubDatas": [], + "m_ActiveTargets": [ + { + "m_Id": "15cb78699c8c4194ad103421699dbd17" + } + ] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "0066f90f9bd24aa69c3b20e8c87e10c6", + "m_Id": 5, + "m_DisplayName": "G", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "G", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "02acc5a4d1de49f087b1a9268cf423ed", + "m_Id": 0, + "m_DisplayName": "RGBA", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "RGBA", + "m_StageCapability": 2, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DMaterialSlot", + "m_ObjectId": "064aae75fadd4a0b942d21348da5dd81", + "m_Id": 0, + "m_DisplayName": "BumpMap", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_BareResource": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.CategoryData", + "m_ObjectId": "0778abfa54c94f9abfd0482e1de4d602", + "m_Name": "", + "m_ChildObjectList": [ + { + "m_Id": "92f5ab11614c4ec1b4d632f73041ba65" + }, + { + "m_Id": "dea047da4cb0442bac26d6f468ba8f66" + }, + { + "m_Id": "653228a387f647d5a5e1fa4da9b5f6d7" + }, + { + "m_Id": "6b344f9254d2438b8ad07e5eef11db71" + }, + { + "m_Id": "2859cb147a7742fca0dbb5256243d468" + }, + { + "m_Id": "fd4b1637b32c44d79eea652e4b5626b2" + }, + { + "m_Id": "c4ff105a2181464aaee7d5b6146a2c9b" + }, + { + "m_Id": "f8ac3f450f1a4d849926601ace10a04f" + }, + { + "m_Id": "d77500f24b3f490daf8cc2f5dcd19f60" + }, + { + "m_Id": "9e699a1f35ed460f9274b370e7e01749" + }, + { + "m_Id": "2138b6eae95a4a249265714cefb1795f" + } + ] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "0b94be19d37c4268b363243bac818ac4", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -830.0000610351563, + "y": -536.666748046875, + "width": 132.0, + "height": 36.0 + } + }, + "m_Slots": [ + { + "m_Id": "ef0016b4d1214fc5b0766f3f8883eaca" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "dea047da4cb0442bac26d6f468ba8f66" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "0dfb9947a79047cb9ec4aaa9cc4e3d0f", + "m_Id": 0, + "m_DisplayName": "A", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": { + "e00": 0.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 0.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 0.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 0.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SampleTexture2DNode", + "m_ObjectId": "0ec124cb35be4b22af0a2dfb725df3fd", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Sample Texture 2D", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -634.0, + "y": 1446.6666259765625, + "width": 184.66671752929688, + "height": 254.666748046875 + } + }, + "m_Slots": [ + { + "m_Id": "362985acc7f845c1b9f7b1218298da18" + }, + { + "m_Id": "1ed603dfb0b0451e944135351d8a365c" + }, + { + "m_Id": "82214cd81d964d3d85c2827edfacfe14" + }, + { + "m_Id": "bc0f521c8b5a422682fee09706fe01c2" + }, + { + "m_Id": "ad96a8905a0342aa9a8d4de299ac0597" + }, + { + "m_Id": "600f11bf782744918d280e9924d8a921" + }, + { + "m_Id": "bb835b61b10946b985e60bf0f403d51e" + }, + { + "m_Id": "5c2a18cbde0e45c088c239270ad0949d" + } + ], + "synonyms": [ + "tex2d" + ], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_TextureType": 0, + "m_NormalMapSpace": 1, + "m_EnableGlobalMipBias": true, + "m_MipSamplingMode": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "0ed4fbfbef64412cb58364eefca5123d", + "m_Id": 0, + "m_DisplayName": "Metallic", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "0f6262482aaf43a49f4f529e2e26cca2", + "m_Id": 1, + "m_DisplayName": "X", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "X", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "0f64718141f34878916463ec72c9d2d8", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.Emission", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 0.0, + "y": 0.0, + "width": 0.0, + "height": 0.0 + } + }, + "m_Slots": [ + { + "m_Id": "a8a3476bbfe8465fbf208d8592d231a3" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.Emission" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.UVMaterialSlot", + "m_ObjectId": "0f8d05511f944456995a00a6ee4ab46b", + "m_Id": 2, + "m_DisplayName": "UV", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "UV", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0 + }, + "m_Labels": [], + "m_Channel": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "13c40b9504d247499cd3ce8a57badab2", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.Alpha", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 36.66667175292969, + "y": 270.6667175292969, + "width": 200.0, + "height": 42.666656494140628 + } + }, + "m_Slots": [ + { + "m_Id": "c79e0b8d88444f8d919d1715bead490b" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.Alpha" +} + +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.Rendering.Universal.ShaderGraph.UniversalTarget", + "m_ObjectId": "15cb78699c8c4194ad103421699dbd17", + "m_Datas": [], + "m_ActiveSubTarget": { + "m_Id": "352f1953e12a45019330c49643812248" + }, + "m_AllowMaterialOverride": false, + "m_SurfaceType": 1, + "m_ZTestMode": 4, + "m_ZWriteControl": 0, + "m_AlphaMode": 0, + "m_RenderFace": 2, + "m_AlphaClip": false, + "m_CastShadows": true, + "m_ReceiveShadows": true, + "m_SupportsLODCrossFade": false, + "m_CustomEditorGUI": "", + "m_SupportVFX": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SplitNode", + "m_ObjectId": "165e36ddc0554916b7670ae4096eb278", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Split", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -676.0000610351563, + "y": -570.0000610351563, + "width": 120.66668701171875, + "height": 150.66668701171876 + } + }, + "m_Slots": [ + { + "m_Id": "fff66f836130425b9e2960dee565ff7c" + }, + { + "m_Id": "21f3f18f29764b8db530bd46f31006c7" + }, + { + "m_Id": "82223ca7dd444f5b9d78b7d481c86991" + }, + { + "m_Id": "49cb90fb03db42cab7848081ad63bf3a" + }, + { + "m_Id": "b6aa5de0dd804752baa437dbf4a528c0" + } + ], + "synonyms": [ + "separate" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "166221f031724c63ad3fad1420b18fe1", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": { + "e00": 2.0, + "e01": 2.0, + "e02": 2.0, + "e03": 2.0, + "e10": 2.0, + "e11": 2.0, + "e12": 2.0, + "e13": 2.0, + "e20": 2.0, + "e21": 2.0, + "e22": 2.0, + "e23": 2.0, + "e30": 2.0, + "e31": 2.0, + "e32": 2.0, + "e33": 2.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "1773542df3cf4760b4bc7081934f54ca", + "m_Id": 0, + "m_DisplayName": "Smoothness", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Smoothness", + "m_StageCapability": 2, + "m_Value": 0.5, + "m_DefaultValue": 0.5, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SampleTexture2DNode", + "m_ObjectId": "177b02b8f3b64be1b2f2e7e0055128cb", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Sample Texture 2D", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -633.9999389648438, + "y": 707.333251953125, + "width": 184.66668701171876, + "height": 254.66668701171876 + } + }, + "m_Slots": [ + { + "m_Id": "73dae5af12874f62a0ab55d8d0f86874" + }, + { + "m_Id": "68ec8f2063b9438c9d63bb33ab631b2d" + }, + { + "m_Id": "0066f90f9bd24aa69c3b20e8c87e10c6" + }, + { + "m_Id": "f270ed64ab2f4573bccddd9052f89b45" + }, + { + "m_Id": "f2cd25f551014ea49840fbd04e896d26" + }, + { + "m_Id": "ed7a1bf0296441bb937a9b1e6a9aa0c4" + }, + { + "m_Id": "580cf03335e3466680b45e02c4e8581a" + }, + { + "m_Id": "92d965669cb747908bb948442a355c47" + } + ], + "synonyms": [ + "tex2d" + ], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_TextureType": 0, + "m_NormalMapSpace": 1, + "m_EnableGlobalMipBias": true, + "m_MipSamplingMode": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "19964d5b976e467eb1b4a7f544bf3fef", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -826.666748046875, + "y": 261.3333435058594, + "width": 159.3333740234375, + "height": 35.999969482421878 + } + }, + "m_Slots": [ + { + "m_Id": "6aef7829a5044fd4a7f91e8641f0f647" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "6b344f9254d2438b8ad07e5eef11db71" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "1b504994184f46fb86fd313496af2752", + "m_Id": 0, + "m_DisplayName": "Ambient Occlusion", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Occlusion", + "m_StageCapability": 2, + "m_Value": 1.0, + "m_DefaultValue": 1.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.TangentMaterialSlot", + "m_ObjectId": "1c1aa306b109406fae4e7ad7412fdb14", + "m_Id": 0, + "m_DisplayName": "Tangent", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Tangent", + "m_StageCapability": 1, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_Space": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.MultiplyNode", + "m_ObjectId": "1cb9d3109e954f59889461d6d563c74c", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Multiply", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -324.6665954589844, + "y": 834.6666259765625, + "width": 209.33331298828126, + "height": 304.0001220703125 + } + }, + "m_Slots": [ + { + "m_Id": "5d77e11243834cf3a6f2e4fcf96ea6ff" + }, + { + "m_Id": "5b9961219b68470c9e8f957cef52af65" + }, + { + "m_Id": "3342995320024fdcb5e1e70917f28a44" + } + ], + "synonyms": [ + "multiplication", + "times", + "x" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "1ed603dfb0b0451e944135351d8a365c", + "m_Id": 4, + "m_DisplayName": "R", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "R", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.NormalMaterialSlot", + "m_ObjectId": "204b111e465b44809369f1d3e5a90370", + "m_Id": 0, + "m_DisplayName": "Normal (Tangent Space)", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "NormalTS", + "m_StageCapability": 2, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_Space": 3 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "212accc3030f4e0384e8c4c800750373", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": { + "e00": 2.0, + "e01": 2.0, + "e02": 2.0, + "e03": 2.0, + "e10": 2.0, + "e11": 2.0, + "e12": 2.0, + "e13": 2.0, + "e20": 2.0, + "e21": 2.0, + "e22": 2.0, + "e23": 2.0, + "e30": 2.0, + "e31": 2.0, + "e32": 2.0, + "e33": 2.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Internal.Texture2DShaderProperty", + "m_ObjectId": "2138b6eae95a4a249265714cefb1795f", + "m_Guid": { + "m_GuidSerialized": "38fb1136-db3c-4ff9-b392-107a99d04afb" + }, + "m_Name": "EmissionMap", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "EmissionMap", + "m_DefaultReferenceName": "_EmissionMap", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": { + "m_SerializedTexture": "{\"texture\":{\"fileID\":2800000,\"guid\":\"09e6225be3a2a43489e11a41cb198377\",\"type\":3}}", + "m_Guid": "" + }, + "isMainTexture": false, + "useTilingAndOffset": true, + "m_Modifiable": true, + "m_DefaultType": 4 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "21f3f18f29764b8db530bd46f31006c7", + "m_Id": 1, + "m_DisplayName": "R", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "R", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "23b6100595664ffb9b2af900eb011615", + "m_Id": 2, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "e00": 0.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 0.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 0.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 0.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "26b0cc6a64b84c52993d605193516242", + "m_Id": 0, + "m_DisplayName": "A", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": { + "x": 1.0, + "y": 1.0, + "z": 1.0, + "w": 1.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty", + "m_ObjectId": "2859cb147a7742fca0dbb5256243d468", + "m_Guid": { + "m_GuidSerialized": "a6fd3729-c8ec-4297-8e95-c4d2117333eb" + }, + "m_Name": "Roughness", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "Roughness", + "m_DefaultReferenceName": "_Roughness", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": 0.0, + "m_FloatType": 0, + "m_RangeValues": { + "x": 0.0, + "y": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.MultiplyNode", + "m_ObjectId": "2a5a6e02ee104d45a3ecc82a5ff7b17c", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Multiply", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -324.6665954589844, + "y": -452.0000305175781, + "width": 209.33322143554688, + "height": 304.0000305175781 + } + }, + "m_Slots": [ + { + "m_Id": "85d0d0e7cba94789b07a7f99cdd83648" + }, + { + "m_Id": "212accc3030f4e0384e8c4c800750373" + }, + { + "m_Id": "a752e540f3f040338fda387047382672" + } + ], + "synonyms": [ + "multiplication", + "times", + "x" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SamplerStateMaterialSlot", + "m_ObjectId": "2b57ee1b447443b39131b7d7ca5656c4", + "m_Id": 3, + "m_DisplayName": "Sampler", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Sampler", + "m_StageCapability": 3, + "m_BareResource": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "305a571d629e4b258d80c3ad877cb596", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -828.0, + "y": -409.99993896484377, + "width": 133.33331298828126, + "height": 36.0 + } + }, + "m_Slots": [ + { + "m_Id": "46fb52b8b307424ab27250d54f2c27f9" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "92f5ab11614c4ec1b4d632f73041ba65" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "307a94d3f1ca45a39f6170433e3c81c6", + "m_Group": { + "m_Id": "" + }, + "m_Name": "VertexDescription.Normal", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 0.0, + "y": 0.0, + "width": 0.0, + "height": 0.0 + } + }, + "m_Slots": [ + { + "m_Id": "e1de0ca351fd43ff866485e33328e300" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "VertexDescription.Normal" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", + "m_ObjectId": "32680074fcd94dcfb904ea7725f3bdf7", + "m_Id": 0, + "m_DisplayName": "In", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "In", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 1.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "32aabad897d84b59bff831681715cd30", + "m_Id": 0, + "m_DisplayName": "RGBA", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "RGBA", + "m_StageCapability": 2, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "3342995320024fdcb5e1e70917f28a44", + "m_Id": 2, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "e00": 0.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 0.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 0.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 0.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 2, + "m_Type": "UnityEditor.Rendering.Universal.ShaderGraph.UniversalLitSubTarget", + "m_ObjectId": "352f1953e12a45019330c49643812248", + "m_WorkflowMode": 1, + "m_NormalDropOffSpace": 0, + "m_ClearCoat": false, + "m_BlendModePreserveSpecular": true +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "362985acc7f845c1b9f7b1218298da18", + "m_Id": 0, + "m_DisplayName": "RGBA", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "RGBA", + "m_StageCapability": 2, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "38ee4cc0f5934ebb9fc033495c2e25a4", + "m_Id": 2, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "e00": 0.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 0.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 0.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 0.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "3be41b6b511d440c94c29229f4a7bdc2", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -826.666748046875, + "y": 207.33331298828126, + "width": 172.666748046875, + "height": 35.99998474121094 + } + }, + "m_Slots": [ + { + "m_Id": "a9fa65ff74114c879317162bdb85c658" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "653228a387f647d5a5e1fa4da9b5f6d7" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "408c7be450e8421abf78f79621f38a90", + "m_Id": 6, + "m_DisplayName": "B", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.NormalStrengthNode", + "m_ObjectId": "42b5b42d2e304772a31a535448fded9c", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Normal Strength", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -324.6666259765625, + "y": 1138.6668701171875, + "width": 209.3333740234375, + "height": 303.9998779296875 + } + }, + "m_Slots": [ + { + "m_Id": "32680074fcd94dcfb904ea7725f3bdf7" + }, + { + "m_Id": "4e90ec3f541d453c8ae515b9ae1ecacc" + }, + { + "m_Id": "7a258b7ee50f42959e7e5e1bd2c7631b" + } + ], + "synonyms": [ + "intensity" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DMaterialSlot", + "m_ObjectId": "435d79c5527e4cd8935ce1a874f4ad05", + "m_Id": 0, + "m_DisplayName": "MetallicRoughnessMap", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_BareResource": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DMaterialSlot", + "m_ObjectId": "46fb52b8b307424ab27250d54f2c27f9", + "m_Id": 0, + "m_DisplayName": "BaseMap", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_BareResource": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SampleTexture2DNode", + "m_ObjectId": "497c741e95244480b7cb6a37a51bb19a", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Sample Texture 2D", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -647.3333740234375, + "y": 243.3332977294922, + "width": 184.66665649414063, + "height": 254.6666717529297 + } + }, + "m_Slots": [ + { + "m_Id": "32aabad897d84b59bff831681715cd30" + }, + { + "m_Id": "df89e85942804209a6c5a8542deaaf9a" + }, + { + "m_Id": "c9897d71ed584480b6d4cfa325464e61" + }, + { + "m_Id": "53e3002a7ed54a55b683dc1cc2780d8b" + }, + { + "m_Id": "868f3ba8f7724eb2b5bdb7af8db6b383" + }, + { + "m_Id": "8e5e7a322f89442789657fa3860211f0" + }, + { + "m_Id": "0f8d05511f944456995a00a6ee4ab46b" + }, + { + "m_Id": "c2a858a8ef4b47268a80969c0f02ee0a" + } + ], + "synonyms": [ + "tex2d" + ], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_TextureType": 0, + "m_NormalMapSpace": 1, + "m_EnableGlobalMipBias": true, + "m_MipSamplingMode": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "49cb90fb03db42cab7848081ad63bf3a", + "m_Id": 3, + "m_DisplayName": "B", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.UVMaterialSlot", + "m_ObjectId": "4c1d0e69fdc7482b9e9587c61e9aee52", + "m_Id": 2, + "m_DisplayName": "UV", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "UV", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0 + }, + "m_Labels": [], + "m_Channel": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "4e90ec3f541d453c8ae515b9ae1ecacc", + "m_Id": 1, + "m_DisplayName": "Strength", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Strength", + "m_StageCapability": 3, + "m_Value": 1.0, + "m_DefaultValue": 1.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SampleTexture2DNode", + "m_ObjectId": "4f05aa87bb184723a2d2b15721a0c3e9", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Sample Texture 2D", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -633.9999389648438, + "y": 979.3333129882813, + "width": 184.66665649414063, + "height": 254.66668701171876 + } + }, + "m_Slots": [ + { + "m_Id": "6d10127b9d4e4bcfa16626d3ae7ef55e" + }, + { + "m_Id": "b00b5f49f832499283825f4a2cf12f79" + }, + { + "m_Id": "c35266cc646a444b9bd38a748550b8e4" + }, + { + "m_Id": "aeac528b6a2444518362cffca1be05ba" + }, + { + "m_Id": "63a74a0ddc784303b8449630e548ae2c" + }, + { + "m_Id": "a071058625974c08b0932da5861c7128" + }, + { + "m_Id": "9a3a7785b0b44221afd748ed04b0dde6" + }, + { + "m_Id": "7d670b40f8f2468a9af5840562b1c62d" + } + ], + "synonyms": [ + "tex2d" + ], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_TextureType": 1, + "m_NormalMapSpace": 0, + "m_EnableGlobalMipBias": true, + "m_MipSamplingMode": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "4f7bef37b9a04a89a116a5756540a254", + "m_Id": 0, + "m_DisplayName": "A", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": { + "e00": 0.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 0.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 0.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 0.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "53e3002a7ed54a55b683dc1cc2780d8b", + "m_Id": 6, + "m_DisplayName": "B", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "53f1bc01113946bc946f0808f16df02b", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.Smoothness", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 10.000014305114746, + "y": 317.3333435058594, + "width": 199.9999542236328, + "height": 42.666656494140628 + } + }, + "m_Slots": [ + { + "m_Id": "1773542df3cf4760b4bc7081934f54ca" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.Smoothness" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.UVMaterialSlot", + "m_ObjectId": "580cf03335e3466680b45e02c4e8581a", + "m_Id": 2, + "m_DisplayName": "UV", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "UV", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0 + }, + "m_Labels": [], + "m_Channel": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "58ee8fea72cc4a649f9a1198b12d621b", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.Occlusion", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 15.999993324279786, + "y": 262.0000305175781, + "width": 199.99993896484376, + "height": 42.66668701171875 + } + }, + "m_Slots": [ + { + "m_Id": "1b504994184f46fb86fd313496af2752" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.Occlusion" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "5b9961219b68470c9e8f957cef52af65", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": { + "e00": 2.0, + "e01": 2.0, + "e02": 2.0, + "e03": 2.0, + "e10": 2.0, + "e11": 2.0, + "e12": 2.0, + "e13": 2.0, + "e20": 2.0, + "e21": 2.0, + "e22": 2.0, + "e23": 2.0, + "e30": 2.0, + "e31": 2.0, + "e32": 2.0, + "e33": 2.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SamplerStateMaterialSlot", + "m_ObjectId": "5c2a18cbde0e45c088c239270ad0949d", + "m_Id": 3, + "m_DisplayName": "Sampler", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Sampler", + "m_StageCapability": 3, + "m_BareResource": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "5d77e11243834cf3a6f2e4fcf96ea6ff", + "m_Id": 0, + "m_DisplayName": "A", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": { + "e00": 0.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 0.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 0.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 0.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "5dc2f5aa641347b2aeb52a9767a433ce", + "m_Id": 0, + "m_DisplayName": "EmissionColor", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", + "m_ObjectId": "600f11bf782744918d280e9924d8a921", + "m_Id": 1, + "m_DisplayName": "Texture", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Texture", + "m_StageCapability": 3, + "m_BareResource": false, + "m_Texture": { + "m_SerializedTexture": "", + "m_Guid": "" + }, + "m_DefaultType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "6098dc7f36d84b83b8421cc0e56ed1a0", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.Metallic", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 10.000083923339844, + "y": 268.0, + "width": 199.99993896484376, + "height": 42.66668701171875 + } + }, + "m_Slots": [ + { + "m_Id": "cd2a46a6fe0746ae965dc193ce0757eb" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.Metallic" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "609f313b8b6f4ee8a871650dc611dc0c", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -833.9999389648438, + "y": 1216.0, + "width": 138.0, + "height": 35.9998779296875 + } + }, + "m_Slots": [ + { + "m_Id": "064aae75fadd4a0b942d21348da5dd81" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "d77500f24b3f490daf8cc2f5dcd19f60" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PositionMaterialSlot", + "m_ObjectId": "619a91e5d75d4a629f14de895dbebb39", + "m_Id": 0, + "m_DisplayName": "Position", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Position", + "m_StageCapability": 1, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_Space": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.MultiplyNode", + "m_ObjectId": "61ad74e00639449f90b3e8cd5747f9a2", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Multiply", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -324.6666564941406, + "y": 1442.6668701171875, + "width": 209.3333740234375, + "height": 303.9998779296875 + } + }, + "m_Slots": [ + { + "m_Id": "8298b050e7144f5c88983ff8a703db19" + }, + { + "m_Id": "f17d8746454e409e891b2a301f143151" + }, + { + "m_Id": "38ee4cc0f5934ebb9fc033495c2e25a4" + } + ], + "synonyms": [ + "multiplication", + "times", + "x" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "63a74a0ddc784303b8449630e548ae2c", + "m_Id": 7, + "m_DisplayName": "A", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty", + "m_ObjectId": "653228a387f647d5a5e1fa4da9b5f6d7", + "m_Guid": { + "m_GuidSerialized": "2403dd65-ec64-45a0-a766-875dd5bcd6d8" + }, + "m_Name": "OcclusionStrength", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "OcclusionStrength", + "m_DefaultReferenceName": "_OcclusionStrength", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": 1.0, + "m_FloatType": 0, + "m_RangeValues": { + "x": 0.0, + "y": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SampleTexture2DNode", + "m_ObjectId": "6637a91f035a40e798e76f70bed17d7e", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Sample Texture 2D", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -676.0000610351563, + "y": -410.0000305175781, + "width": 184.6666259765625, + "height": 254.6667022705078 + } + }, + "m_Slots": [ + { + "m_Id": "02acc5a4d1de49f087b1a9268cf423ed" + }, + { + "m_Id": "8057542115c941488ee696e0d023e9d8" + }, + { + "m_Id": "c47fe1183b3b44d1ad66a998fde085f5" + }, + { + "m_Id": "408c7be450e8421abf78f79621f38a90" + }, + { + "m_Id": "70bb30a82355421ca010103090de0f4a" + }, + { + "m_Id": "7aa32b9c5fc74c8088ac31ed5fc87f50" + }, + { + "m_Id": "4c1d0e69fdc7482b9e9587c61e9aee52" + }, + { + "m_Id": "2b57ee1b447443b39131b7d7ca5656c4" + } + ], + "synonyms": [ + "tex2d" + ], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_TextureType": 0, + "m_NormalMapSpace": 1, + "m_EnableGlobalMipBias": true, + "m_MipSamplingMode": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "68ec8f2063b9438c9d63bb33ab631b2d", + "m_Id": 4, + "m_DisplayName": "R", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "R", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DMaterialSlot", + "m_ObjectId": "6aef7829a5044fd4a7f91e8641f0f647", + "m_Id": 0, + "m_DisplayName": "OcclusionMap", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_BareResource": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Internal.Texture2DShaderProperty", + "m_ObjectId": "6b344f9254d2438b8ad07e5eef11db71", + "m_Guid": { + "m_GuidSerialized": "2056943e-f283-4125-862c-dd5321f1cdd2" + }, + "m_Name": "OcclusionMap", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "OcclusionMap", + "m_DefaultReferenceName": "_OcclusionMap", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": { + "m_SerializedTexture": "{\"texture\":{\"fileID\":2800000,\"guid\":\"51ce5cf2de6d788449c2fdd4b8488a92\",\"type\":3}}", + "m_Guid": "" + }, + "isMainTexture": false, + "useTilingAndOffset": true, + "m_Modifiable": true, + "m_DefaultType": 4 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "6d10127b9d4e4bcfa16626d3ae7ef55e", + "m_Id": 0, + "m_DisplayName": "RGBA", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "RGBA", + "m_StageCapability": 2, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "6f683c2eb23a4baf8dc028500640b75a", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.NormalTS", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 0.0, + "y": 0.0, + "width": 0.0, + "height": 0.0 + } + }, + "m_Slots": [ + { + "m_Id": "204b111e465b44809369f1d3e5a90370" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.NormalTS" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "70bb30a82355421ca010103090de0f4a", + "m_Id": 7, + "m_DisplayName": "A", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DMaterialSlot", + "m_ObjectId": "72164721f8af40cba28e44f84a0f4fd5", + "m_Id": 0, + "m_DisplayName": "EmissionMap", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_BareResource": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "73dae5af12874f62a0ab55d8d0f86874", + "m_Id": 0, + "m_DisplayName": "RGBA", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "RGBA", + "m_StageCapability": 2, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "73efafc771664c7b8a4e4b9e58a6e868", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -813.333251953125, + "y": 816.6666259765625, + "width": 117.33331298828125, + "height": 36.00006103515625 + } + }, + "m_Slots": [ + { + "m_Id": "0ed4fbfbef64412cb58364eefca5123d" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "fd4b1637b32c44d79eea652e4b5626b2" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.ColorRGBMaterialSlot", + "m_ObjectId": "7454a78d02bb4f79b6ff0f81f6b795a0", + "m_Id": 0, + "m_DisplayName": "Base Color", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "BaseColor", + "m_StageCapability": 2, + "m_Value": { + "x": 0.5, + "y": 0.5, + "z": 0.5 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_ColorMode": 0, + "m_DefaultColor": { + "r": 0.5, + "g": 0.5, + "b": 0.5, + "a": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.MultiplyNode", + "m_ObjectId": "7644e994b4da4282b21650a0f58a3757", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Multiply", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -324.6665954589844, + "y": 193.99998474121095, + "width": 209.333251953125, + "height": 304.0 + } + }, + "m_Slots": [ + { + "m_Id": "dae5c5d4ef084500a261fd99b836b8f9" + }, + { + "m_Id": "ceca89b18616453c8f4b71f28bd633f5" + }, + { + "m_Id": "7f82ff7fd35d4ce28f4513fa7a46ac49" + } + ], + "synonyms": [ + "multiplication", + "times", + "x" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", + "m_ObjectId": "7a258b7ee50f42959e7e5e1bd2c7631b", + "m_Id": 2, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", + "m_ObjectId": "7aa32b9c5fc74c8088ac31ed5fc87f50", + "m_Id": 1, + "m_DisplayName": "Texture", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Texture", + "m_StageCapability": 3, + "m_BareResource": false, + "m_Texture": { + "m_SerializedTexture": "", + "m_Guid": "" + }, + "m_DefaultType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "7b07900736604fa89742489eef62e10a", + "m_Id": 2, + "m_DisplayName": "Y", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Y", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [ + "Y" + ] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "7b57df1b4e444208bd41b7b749f485d0", + "m_Group": { + "m_Id": "" + }, + "m_Name": "VertexDescription.Tangent", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 0.0, + "y": 0.0, + "width": 0.0, + "height": 0.0 + } + }, + "m_Slots": [ + { + "m_Id": "1c1aa306b109406fae4e7ad7412fdb14" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "VertexDescription.Tangent" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SamplerStateMaterialSlot", + "m_ObjectId": "7d670b40f8f2468a9af5840562b1c62d", + "m_Id": 3, + "m_DisplayName": "Sampler", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Sampler", + "m_StageCapability": 3, + "m_BareResource": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "7f82ff7fd35d4ce28f4513fa7a46ac49", + "m_Id": 2, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "e00": 0.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 0.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 0.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 0.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "8057542115c941488ee696e0d023e9d8", + "m_Id": 4, + "m_DisplayName": "R", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "R", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "80fce1dbcef04945aa9b988609dbe324", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.BaseColor", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 0.0, + "y": 0.0, + "width": 0.0, + "height": 0.0 + } + }, + "m_Slots": [ + { + "m_Id": "7454a78d02bb4f79b6ff0f81f6b795a0" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.BaseColor" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "82214cd81d964d3d85c2827edfacfe14", + "m_Id": 5, + "m_DisplayName": "G", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "G", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "82223ca7dd444f5b9d78b7d481c86991", + "m_Id": 2, + "m_DisplayName": "G", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "G", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "827a8a770c064322a7f2aa9cf901cad3", + "m_Id": 3, + "m_DisplayName": "Z", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Z", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [ + "Z" + ] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "8298b050e7144f5c88983ff8a703db19", + "m_Id": 0, + "m_DisplayName": "A", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": { + "e00": 0.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 0.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 0.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 0.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "85d0d0e7cba94789b07a7f99cdd83648", + "m_Id": 0, + "m_DisplayName": "A", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": { + "e00": 0.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 0.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 0.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 0.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "86409fdb77e447f19dcf968176770f7f", + "m_Id": 0, + "m_DisplayName": "Roughness", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "868f3ba8f7724eb2b5bdb7af8db6b383", + "m_Id": 7, + "m_DisplayName": "A", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "86bb22958e0547bb9cc968a7ff4eb1b7", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": { + "x": 1.0, + "y": 1.0, + "z": 1.0, + "w": 1.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "8730cfb2eee34a7aaa30bc67b7f03014", + "m_Id": 2, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector3Node", + "m_ObjectId": "8db1c68dfd2946afb8d345a98ddc0889", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Vector 3", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -479.3333435058594, + "y": -536.666748046875, + "width": 129.33334350585938, + "height": 126.66671752929688 + } + }, + "m_Slots": [ + { + "m_Id": "98ca5280bf5d46c58a096f1a85ba287f" + }, + { + "m_Id": "7b07900736604fa89742489eef62e10a" + }, + { + "m_Id": "b247daf80bb24d2a85512c9a25bde144" + }, + { + "m_Id": "c10f98a3262e4cff850be19663af3d43" + } + ], + "synonyms": [ + "3", + "v3", + "vec3", + "float3" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "8e3b1b83b1f2472facb7e921e188e546", + "m_Id": 2, + "m_DisplayName": "Y", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Y", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [ + "Y" + ] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", + "m_ObjectId": "8e5e7a322f89442789657fa3860211f0", + "m_Id": 1, + "m_DisplayName": "Texture", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Texture", + "m_StageCapability": 3, + "m_BareResource": false, + "m_Texture": { + "m_SerializedTexture": "", + "m_Guid": "" + }, + "m_DefaultType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SubtractNode", + "m_ObjectId": "91aa9548b6024d17b2b8a4be2770ad97", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Subtract", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -324.66668701171877, + "y": 508.00006103515627, + "width": 209.33328247070313, + "height": 303.99993896484377 + } + }, + "m_Slots": [ + { + "m_Id": "26b0cc6a64b84c52993d605193516242" + }, + { + "m_Id": "86bb22958e0547bb9cc968a7ff4eb1b7" + }, + { + "m_Id": "8730cfb2eee34a7aaa30bc67b7f03014" + } + ], + "synonyms": [ + "subtraction", + "remove", + "minus", + "take away" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SamplerStateMaterialSlot", + "m_ObjectId": "92d965669cb747908bb948442a355c47", + "m_Id": 3, + "m_DisplayName": "Sampler", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Sampler", + "m_StageCapability": 3, + "m_BareResource": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Internal.Texture2DShaderProperty", + "m_ObjectId": "92f5ab11614c4ec1b4d632f73041ba65", + "m_Guid": { + "m_GuidSerialized": "df5eef53-f7a6-40ef-8fca-1fd91f86d83f" + }, + "m_Name": "BaseMap", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "BaseMap", + "m_DefaultReferenceName": "_BaseMap", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": { + "m_SerializedTexture": "{\"texture\":{\"fileID\":2800000,\"guid\":\"3ab316f1cf207684abb754d9a2731c66\",\"type\":3}}", + "m_Guid": "" + }, + "isMainTexture": true, + "useTilingAndOffset": true, + "m_Modifiable": true, + "m_DefaultType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "94fe3f50fd0c4ce3a036c672b2d71557", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -802.6666259765625, + "y": 1406.666748046875, + "width": 106.66668701171875, + "height": 36.0 + } + }, + "m_Slots": [ + { + "m_Id": "5dc2f5aa641347b2aeb52a9767a433ce" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "9e699a1f35ed460f9274b370e7e01749" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "9512c4f761ea4aaaa2db8e7ec9d7bf37", + "m_Id": 2, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "e00": 0.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 0.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 0.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 0.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "98ca5280bf5d46c58a096f1a85ba287f", + "m_Id": 1, + "m_DisplayName": "X", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "X", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.UVMaterialSlot", + "m_ObjectId": "9a3a7785b0b44221afd748ed04b0dde6", + "m_Id": 2, + "m_DisplayName": "UV", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "UV", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0 + }, + "m_Labels": [], + "m_Channel": 0 +} + +{ + "m_SGVersion": 3, + "m_Type": "UnityEditor.ShaderGraph.Internal.ColorShaderProperty", + "m_ObjectId": "9e699a1f35ed460f9274b370e7e01749", + "m_Guid": { + "m_GuidSerialized": "9962908c-bb06-4540-874e-237cdf21a29e" + }, + "m_Name": "EmissionColor", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "EmissionColor", + "m_DefaultReferenceName": "_EmissionColor", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": { + "r": 0.0, + "g": 0.0, + "b": 0.0, + "a": 0.0 + }, + "isMainColor": false, + "m_ColorMode": 1 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", + "m_ObjectId": "a071058625974c08b0932da5861c7128", + "m_Id": 1, + "m_DisplayName": "Texture", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Texture", + "m_StageCapability": 3, + "m_BareResource": false, + "m_Texture": { + "m_SerializedTexture": "", + "m_Guid": "" + }, + "m_DefaultType": 3 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "a60bd914ad7646698bb7f9c25f78f88d", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -829.9999389648438, + "y": 702.6666259765625, + "width": 134.0, + "height": 36.00006103515625 + } + }, + "m_Slots": [ + { + "m_Id": "86409fdb77e447f19dcf968176770f7f" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "2859cb147a7742fca0dbb5256243d468" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "a752e540f3f040338fda387047382672", + "m_Id": 2, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "e00": 0.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 0.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 0.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 0.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.ColorRGBMaterialSlot", + "m_ObjectId": "a8a3476bbfe8465fbf208d8592d231a3", + "m_Id": 0, + "m_DisplayName": "Emission", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Emission", + "m_StageCapability": 2, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_ColorMode": 1, + "m_DefaultColor": { + "r": 0.0, + "g": 0.0, + "b": 0.0, + "a": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "a9fa65ff74114c879317162bdb85c658", + "m_Id": 0, + "m_DisplayName": "OcclusionStrength", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "ad96a8905a0342aa9a8d4de299ac0597", + "m_Id": 7, + "m_DisplayName": "A", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.MultiplyNode", + "m_ObjectId": "ae95328961414c969e0a0dd7ac9bdb73", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Multiply", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -324.6665954589844, + "y": -128.0, + "width": 209.33322143554688, + "height": 304.0 + } + }, + "m_Slots": [ + { + "m_Id": "0dfb9947a79047cb9ec4aaa9cc4e3d0f" + }, + { + "m_Id": "166221f031724c63ad3fad1420b18fe1" + }, + { + "m_Id": "23b6100595664ffb9b2af900eb011615" + } + ], + "synonyms": [ + "multiplication", + "times", + "x" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "aeac528b6a2444518362cffca1be05ba", + "m_Id": 6, + "m_DisplayName": "B", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "b00b5f49f832499283825f4a2cf12f79", + "m_Id": 4, + "m_DisplayName": "R", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "R", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "b08614dabfc6474ebee92e0b18d28d4b", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -901.9999389648438, + "y": 738.6666870117188, + "width": 206.0, + "height": 35.9998779296875 + } + }, + "m_Slots": [ + { + "m_Id": "435d79c5527e4cd8935ce1a874f4ad05" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "c4ff105a2181464aaee7d5b6146a2c9b" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "b247daf80bb24d2a85512c9a25bde144", + "m_Id": 3, + "m_DisplayName": "Z", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Z", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [ + "Z" + ] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "b6aa5de0dd804752baa437dbf4a528c0", + "m_Id": 4, + "m_DisplayName": "A", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "b83e5bff780742a79344a87ff879965a", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -830.6666259765625, + "y": 1260.6666259765625, + "width": 134.66668701171876, + "height": 36.0 + } + }, + "m_Slots": [ + { + "m_Id": "e7d2ed98f9964f4aa647d47a4707f549" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "f8ac3f450f1a4d849926601ace10a04f" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.UVMaterialSlot", + "m_ObjectId": "bb835b61b10946b985e60bf0f403d51e", + "m_Id": 2, + "m_DisplayName": "UV", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "UV", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0 + }, + "m_Labels": [], + "m_Channel": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "bc0f521c8b5a422682fee09706fe01c2", + "m_Id": 6, + "m_DisplayName": "B", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector3Node", + "m_ObjectId": "bc1b1f1db2674d2eb92cff962761dad3", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Vector 3", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -479.3333435058594, + "y": -391.99993896484377, + "width": 129.33331298828126, + "height": 126.66668701171875 + } + }, + "m_Slots": [ + { + "m_Id": "0f6262482aaf43a49f4f529e2e26cca2" + }, + { + "m_Id": "8e3b1b83b1f2472facb7e921e188e546" + }, + { + "m_Id": "827a8a770c064322a7f2aa9cf901cad3" + }, + { + "m_Id": "e27f6627b19f4372bfcf798965a0b49a" + } + ], + "synonyms": [ + "3", + "v3", + "vec3", + "float3" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.MultiplyNode", + "m_ObjectId": "bff080be2f534b5d82990c22e3cc631e", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Multiply", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -530.0000610351563, + "y": 546.0000610351563, + "width": 127.3333740234375, + "height": 120.0 + } + }, + "m_Slots": [ + { + "m_Id": "4f7bef37b9a04a89a116a5756540a254" + }, + { + "m_Id": "e96a61a3df77424ea29af5a57479b600" + }, + { + "m_Id": "9512c4f761ea4aaaa2db8e7ec9d7bf37" + } + ], + "synonyms": [ + "multiplication", + "times", + "x" + ], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", + "m_ObjectId": "c10f98a3262e4cff850be19663af3d43", + "m_Id": 0, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SamplerStateMaterialSlot", + "m_ObjectId": "c2a858a8ef4b47268a80969c0f02ee0a", + "m_Id": 3, + "m_DisplayName": "Sampler", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Sampler", + "m_StageCapability": 3, + "m_BareResource": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "c35266cc646a444b9bd38a748550b8e4", + "m_Id": 5, + "m_DisplayName": "G", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "G", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "c47fe1183b3b44d1ad66a998fde085f5", + "m_Id": 5, + "m_DisplayName": "G", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "G", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Internal.Texture2DShaderProperty", + "m_ObjectId": "c4ff105a2181464aaee7d5b6146a2c9b", + "m_Guid": { + "m_GuidSerialized": "77edee86-bd02-4114-a7f5-247e9ba9cf42" + }, + "m_Name": "MetallicRoughnessMap", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "MetallicRoughnessMap", + "m_DefaultReferenceName": "_MetallicRoughnessMap", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": { + "m_SerializedTexture": "{\"texture\":{\"fileID\":2800000,\"guid\":\"909670d47b2f55d4a991788acca59d7e\",\"type\":3}}", + "m_Guid": "" + }, + "isMainTexture": false, + "useTilingAndOffset": true, + "m_Modifiable": true, + "m_DefaultType": 4 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "c79e0b8d88444f8d919d1715bead490b", + "m_Id": 0, + "m_DisplayName": "Alpha", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Alpha", + "m_StageCapability": 2, + "m_Value": 1.0, + "m_DefaultValue": 1.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "c9897d71ed584480b6d4cfa325464e61", + "m_Id": 5, + "m_DisplayName": "G", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "G", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "cd2a46a6fe0746ae965dc193ce0757eb", + "m_Id": 0, + "m_DisplayName": "Metallic", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Metallic", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "ceca89b18616453c8f4b71f28bd633f5", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": { + "e00": 2.0, + "e01": 2.0, + "e02": 2.0, + "e03": 2.0, + "e10": 2.0, + "e11": 2.0, + "e12": 2.0, + "e13": 2.0, + "e20": 2.0, + "e21": 2.0, + "e22": 2.0, + "e23": 2.0, + "e30": 2.0, + "e31": 2.0, + "e32": 2.0, + "e33": 2.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Internal.Texture2DShaderProperty", + "m_ObjectId": "d77500f24b3f490daf8cc2f5dcd19f60", + "m_Guid": { + "m_GuidSerialized": "96cd3240-b1e2-4ec9-816f-b4be029dbeb6" + }, + "m_Name": "BumpMap", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "BumpMap", + "m_DefaultReferenceName": "_BumpMap", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": { + "m_SerializedTexture": "", + "m_Guid": "" + }, + "isMainTexture": false, + "useTilingAndOffset": false, + "m_Modifiable": true, + "m_DefaultType": 3 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "dae5c5d4ef084500a261fd99b836b8f9", + "m_Id": 0, + "m_DisplayName": "A", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": { + "e00": 0.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 0.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 0.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 0.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 3, + "m_Type": "UnityEditor.ShaderGraph.Internal.ColorShaderProperty", + "m_ObjectId": "dea047da4cb0442bac26d6f468ba8f66", + "m_Guid": { + "m_GuidSerialized": "b6ef105a-c541-4441-9f6c-3ac20a1e813c" + }, + "m_Name": "BaseColor", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "BaseColor", + "m_DefaultReferenceName": "_BaseColor", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": { + "r": 1.0, + "g": 1.0, + "b": 1.0, + "a": 0.0 + }, + "isMainColor": false, + "m_ColorMode": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "df89e85942804209a6c5a8542deaaf9a", + "m_Id": 4, + "m_DisplayName": "R", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "R", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.NormalMaterialSlot", + "m_ObjectId": "e1de0ca351fd43ff866485e33328e300", + "m_Id": 0, + "m_DisplayName": "Normal", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Normal", + "m_StageCapability": 1, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_Space": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", + "m_ObjectId": "e27f6627b19f4372bfcf798965a0b49a", + "m_Id": 0, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "e7d2ed98f9964f4aa647d47a4707f549", + "m_Id": 0, + "m_DisplayName": "BumpScale", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "e96a61a3df77424ea29af5a57479b600", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": { + "e00": 2.0, + "e01": 2.0, + "e02": 2.0, + "e03": 2.0, + "e10": 2.0, + "e11": 2.0, + "e12": 2.0, + "e13": 2.0, + "e20": 2.0, + "e21": 2.0, + "e22": 2.0, + "e23": 2.0, + "e30": 2.0, + "e31": 2.0, + "e32": 2.0, + "e33": 2.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", + "m_ObjectId": "ed7a1bf0296441bb937a9b1e6a9aa0c4", + "m_Id": 1, + "m_DisplayName": "Texture", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Texture", + "m_StageCapability": 3, + "m_BareResource": false, + "m_Texture": { + "m_SerializedTexture": "", + "m_Guid": "" + }, + "m_DefaultType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "ef0016b4d1214fc5b0766f3f8883eaca", + "m_Id": 0, + "m_DisplayName": "BaseColor", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "f17d8746454e409e891b2a301f143151", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": { + "e00": 2.0, + "e01": 2.0, + "e02": 2.0, + "e03": 2.0, + "e10": 2.0, + "e11": 2.0, + "e12": 2.0, + "e13": 2.0, + "e20": 2.0, + "e21": 2.0, + "e22": 2.0, + "e23": 2.0, + "e30": 2.0, + "e31": 2.0, + "e32": 2.0, + "e33": 2.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "f270ed64ab2f4573bccddd9052f89b45", + "m_Id": 6, + "m_DisplayName": "B", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "f2cd25f551014ea49840fbd04e896d26", + "m_Id": 7, + "m_DisplayName": "A", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "f36558b3ef9547e295ba8c189a69b79a", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -835.9999389648438, + "y": 1446.6666259765625, + "width": 140.0, + "height": 36.0 + } + }, + "m_Slots": [ + { + "m_Id": "72164721f8af40cba28e44f84a0f4fd5" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "2138b6eae95a4a249265714cefb1795f" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "f56f676a56e04566a12f41980b760358", + "m_Group": { + "m_Id": "" + }, + "m_Name": "VertexDescription.Position", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 0.0, + "y": 0.0, + "width": 0.0, + "height": 0.0 + } + }, + "m_Slots": [ + { + "m_Id": "619a91e5d75d4a629f14de895dbebb39" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "VertexDescription.Position" +} + +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty", + "m_ObjectId": "f8ac3f450f1a4d849926601ace10a04f", + "m_Guid": { + "m_GuidSerialized": "8bb96dec-3d73-4fb0-8e69-db74dee7110e" + }, + "m_Name": "BumpScale", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "BumpScale", + "m_DefaultReferenceName": "_BumpScale", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": 0.0, + "m_FloatType": 0, + "m_RangeValues": { + "x": 0.0, + "y": 1.0 + } +} + +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty", + "m_ObjectId": "fd4b1637b32c44d79eea652e4b5626b2", + "m_Guid": { + "m_GuidSerialized": "95cdef22-fc8b-49da-9fe2-98bab1d5658c" + }, + "m_Name": "Metallic", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "Metallic", + "m_DefaultReferenceName": "_Metallic", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": 1.0, + "m_FloatType": 0, + "m_RangeValues": { + "x": 0.0, + "y": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "fff66f836130425b9e2960dee565ff7c", + "m_Id": 0, + "m_DisplayName": "In", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "In", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + diff --git a/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyPbrAlphaBlend.shadergraph.meta b/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyPbrAlphaBlend.shadergraph.meta new file mode 100644 index 000000000..a1060023f --- /dev/null +++ b/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyPbrAlphaBlend.shadergraph.meta @@ -0,0 +1,10 @@ +fileFormatVersion: 2 +guid: 868190a58757d6242bb3ca456402f82f +ScriptedImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 2 + userData: + assetBundleName: + assetBundleVariant: + script: {fileID: 11500000, guid: 625f186215c104763be7675aa2d941aa, type: 3} diff --git a/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyPbr.shadergraph b/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyPbrOpaque.shadergraph similarity index 100% rename from Assets/VRM10_Samples/VRM10Viewer/Assets/TinyPbr.shadergraph rename to Assets/VRM10_Samples/VRM10Viewer/Assets/TinyPbrOpaque.shadergraph diff --git a/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyPbr.shadergraph.meta b/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyPbrOpaque.shadergraph.meta similarity index 100% rename from Assets/VRM10_Samples/VRM10Viewer/Assets/TinyPbr.shadergraph.meta rename to Assets/VRM10_Samples/VRM10Viewer/Assets/TinyPbrOpaque.shadergraph.meta diff --git a/Assets/VRM10_Samples/VRM10Viewer/TinyPbrMaterialDescriptorGenerator.cs b/Assets/VRM10_Samples/VRM10Viewer/TinyPbrMaterialDescriptorGenerator.cs index d275ec200..62fa19b47 100644 --- a/Assets/VRM10_Samples/VRM10Viewer/TinyPbrMaterialDescriptorGenerator.cs +++ b/Assets/VRM10_Samples/VRM10Viewer/TinyPbrMaterialDescriptorGenerator.cs @@ -14,12 +14,21 @@ namespace UniVRM10.VRM10Viewer public UrpGltfPbrMaterialImporter PbrMaterialImporter { get; } = new(); public UrpGltfDefaultMaterialImporter DefaultMaterialImporter { get; } = new(); - public Material Material { get; set; } - + public Material OpaqueMaterial { get; set; } + public Material AlphaBlendMaterial { get; set; } + /// TinyPbr material - public TinyPbrMaterialDescriptorGenerator(Material material) + public TinyPbrMaterialDescriptorGenerator( + Material opaque, + Material alphaBlend + ) { - Material = material; + if (opaque == null) + { + throw new ArgumentNullException("opaque"); + } + OpaqueMaterial = opaque; + AlphaBlendMaterial = alphaBlend ?? opaque; } public MaterialDescriptor Get(GltfData data, int i) @@ -50,7 +59,7 @@ namespace UniVRM10.VRM10Viewer var src = data.GLTF.materials[i]; matDesc = new MaterialDescriptor( GltfMaterialImportUtils.ImportMaterialName(i, src), - Material.shader, + src.alphaMode == "BLEND" ? AlphaBlendMaterial.shader : OpaqueMaterial.shader, null, new Dictionary(), new Dictionary(), diff --git a/Assets/VRM10_Samples/VRM10Viewer/VRM10Viewer.unity b/Assets/VRM10_Samples/VRM10Viewer/VRM10Viewer.unity index 018237120..a18ab6f3c 100644 --- a/Assets/VRM10_Samples/VRM10Viewer/VRM10Viewer.unity +++ b/Assets/VRM10_Samples/VRM10Viewer/VRM10Viewer.unity @@ -30638,7 +30638,11 @@ MonoBehaviour: Root: {fileID: 124675793} m_version: {fileID: 1268276256} m_faceCamera: {fileID: 1150163685} - m_customMaterial: {fileID: -876546973899608171, guid: ac58f8c11a130e04ba883a82ae4b78e4, + m_opaqueMaterial: {fileID: -876546973899608171, guid: ac58f8c11a130e04ba883a82ae4b78e4, + type: 3} + m_alphaBlendMaterial: {fileID: -876546973899608171, guid: 868190a58757d6242bb3ca456402f82f, + type: 3} + m_cutoffMaterial: {fileID: -876546973899608171, guid: 9a01f29343f749440b30e3ff1c26b013, type: 3} m_useCustomMaterial: {fileID: 731212246} m_openModel: {fileID: 2009818433} diff --git a/Assets/VRM10_Samples/VRM10Viewer/VRM10ViewerUI.cs b/Assets/VRM10_Samples/VRM10Viewer/VRM10ViewerUI.cs index eeda467f5..f07222901 100644 --- a/Assets/VRM10_Samples/VRM10Viewer/VRM10ViewerUI.cs +++ b/Assets/VRM10_Samples/VRM10Viewer/VRM10ViewerUI.cs @@ -24,7 +24,9 @@ namespace UniVRM10.VRM10Viewer [Header("Material")] [SerializeField] - Material m_customMaterial = default; + Material m_opaqueMaterial = default; + [SerializeField] + Material m_alphaBlendMaterial = default; [Header("UI")] [SerializeField] @@ -499,7 +501,7 @@ namespace UniVRM10.VRM10Viewer Motion = BvhMotion.LoadBvhFromText(m_motion.text); if (m_useCustomMaterial.isOn) { - Motion.SetBoxManMaterial(Instantiate(m_customMaterial)); + Motion.SetBoxManMaterial(Instantiate(m_opaqueMaterial)); } } @@ -773,7 +775,10 @@ namespace UniVRM10.VRM10Viewer { if (m_useCustomMaterial.isOn) { - return new TinyPbrMaterialDescriptorGenerator(m_customMaterial); + return new TinyPbrMaterialDescriptorGenerator( + m_opaqueMaterial, + m_alphaBlendMaterial + ); } else { From aacb3a74de5792036956c78379d2ccc3c3fffdc1 Mon Sep 17 00:00:00 2001 From: ousttrue Date: Wed, 5 Feb 2025 22:37:16 +0900 Subject: [PATCH 09/56] Cutoff --- .../Assets/TinyPbrOpaque.shadergraph | 543 ++++++++++++++++-- .../VRM10Viewer/TinyPbrMaterialContext.cs | 32 +- .../TinyPbrMaterialDescriptorGenerator.cs | 23 +- 3 files changed, 554 insertions(+), 44 deletions(-) diff --git a/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyPbrOpaque.shadergraph b/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyPbrOpaque.shadergraph index d375e750d..2156b977d 100644 --- a/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyPbrOpaque.shadergraph +++ b/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyPbrOpaque.shadergraph @@ -35,6 +35,12 @@ }, { "m_Id": "2138b6eae95a4a249265714cefb1795f" + }, + { + "m_Id": "ef1c5fb59a8d4550ab9c739f843edaa0" + }, + { + "m_Id": "fb6c28211dec4e1bb1a36cbd93aff5e3" } ], "m_Keywords": [], @@ -143,6 +149,21 @@ }, { "m_Id": "f36558b3ef9547e295ba8c189a69b79a" + }, + { + "m_Id": "307a96558a0a40ada3c66e2e38e269ca" + }, + { + "m_Id": "b81ee26f89a540ea946cb683ac7de047" + }, + { + "m_Id": "67d23f92ffe24661a1bdf746af189547" + }, + { + "m_Id": "a2cf70a9a7fe4202893a8b40f35571f9" + }, + { + "m_Id": "855308f399fb4f71bc6584937719e851" } ], "m_GroupDatas": [], @@ -386,6 +407,34 @@ "m_SlotId": 3 } }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "6637a91f035a40e798e76f70bed17d7e" + }, + "m_SlotId": 7 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "307a96558a0a40ada3c66e2e38e269ca" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "67d23f92ffe24661a1bdf746af189547" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "a2cf70a9a7fe4202893a8b40f35571f9" + }, + "m_SlotId": 1 + } + }, { "m_OutputSlot": { "m_Node": { @@ -414,6 +463,20 @@ "m_SlotId": 0 } }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "855308f399fb4f71bc6584937719e851" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "a2cf70a9a7fe4202893a8b40f35571f9" + }, + "m_SlotId": 0 + } + }, { "m_OutputSlot": { "m_Node": { @@ -442,6 +505,20 @@ "m_SlotId": 0 } }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "a2cf70a9a7fe4202893a8b40f35571f9" + }, + "m_SlotId": 3 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "b81ee26f89a540ea946cb683ac7de047" + }, + "m_SlotId": 0 + } + }, { "m_OutputSlot": { "m_Node": { @@ -553,18 +630,24 @@ { "m_Id": "80fce1dbcef04945aa9b988609dbe324" }, + { + "m_Id": "307a96558a0a40ada3c66e2e38e269ca" + }, + { + "m_Id": "b81ee26f89a540ea946cb683ac7de047" + }, { "m_Id": "58ee8fea72cc4a649f9a1198b12d621b" }, + { + "m_Id": "6f683c2eb23a4baf8dc028500640b75a" + }, { "m_Id": "53f1bc01113946bc946f0808f16df02b" }, { "m_Id": "6098dc7f36d84b83b8421cc0e56ed1a0" }, - { - "m_Id": "6f683c2eb23a4baf8dc028500640b75a" - }, { "m_Id": "0f64718141f34878916463ec72c9d2d8" } @@ -606,6 +689,30 @@ "m_Labels": [] } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "01187177ae5b4d289136898d4db4856b", + "m_Id": 2, + "m_DisplayName": "False", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "False", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", @@ -682,6 +789,12 @@ }, { "m_Id": "2138b6eae95a4a249265714cefb1795f" + }, + { + "m_Id": "ef1c5fb59a8d4550ab9c739f843edaa0" + }, + { + "m_Id": "fb6c28211dec4e1bb1a36cbd93aff5e3" } ] } @@ -698,10 +811,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": -828.0, - "y": -123.33331298828125, + "x": -965.3333129882813, + "y": -416.6666564941406, "width": 132.0, - "height": 35.999969482421878 + "height": 36.0 } }, "m_Slots": [ @@ -868,6 +981,21 @@ "m_Channel": 0 } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "13a810e2e4804785b217f835e16a95ff", + "m_Id": 0, + "m_DisplayName": "Alpha Clip Threshold", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "AlphaClipThreshold", + "m_StageCapability": 2, + "m_Value": 0.5, + "m_DefaultValue": 0.5, + "m_Labels": [] +} + { "m_SGVersion": 1, "m_Type": "UnityEditor.Rendering.Universal.ShaderGraph.UniversalTarget", @@ -882,7 +1010,7 @@ "m_ZWriteControl": 0, "m_AlphaMode": 0, "m_RenderFace": 2, - "m_AlphaClip": false, + "m_AlphaClip": true, "m_CastShadows": true, "m_ReceiveShadows": true, "m_SupportsLODCrossFade": false, @@ -977,8 +1105,8 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": -855.3333740234375, - "y": 198.00001525878907, + "x": -861.3333740234375, + "y": 198.00003051757813, "width": 159.33331298828126, "height": 35.99998474121094 } @@ -1264,10 +1392,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": -324.6665954589844, - "y": -109.99999237060547, - "width": 209.333251953125, - "height": 303.9999694824219 + "x": -363.3333435058594, + "y": -207.33334350585938, + "width": 209.33334350585938, + "height": 304.0000305175781 } }, "m_Slots": [ @@ -1308,6 +1436,35 @@ "m_BareResource": false } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BooleanMaterialSlot", + "m_ObjectId": "2d379c192d3048f19eef9dda9d4b8906", + "m_Id": 0, + "m_DisplayName": "Predicate", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Predicate", + "m_StageCapability": 3, + "m_Value": false, + "m_DefaultValue": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "2fef3aa40b9f478a82efab3210662993", + "m_Id": 0, + "m_DisplayName": "Cutoff", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.PropertyNode", @@ -1320,10 +1477,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": -828.0, - "y": -81.33334350585938, - "width": 133.33331298828126, - "height": 36.0000114440918 + "x": -965.3333129882813, + "y": -374.6666564941406, + "width": 133.333251953125, + "height": 36.0 } }, "m_Slots": [ @@ -1378,6 +1535,40 @@ "m_SerializedDescriptor": "VertexDescription.Normal" } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "307a96558a0a40ada3c66e2e38e269ca", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.Alpha", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 13.999950408935547, + "y": 248.6666717529297, + "width": 200.00006103515626, + "height": 42.66664123535156 + } + }, + "m_Slots": [ + { + "m_Id": "72c7e7802e024978b702d83a9535194b" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.Alpha" +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", @@ -1569,10 +1760,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": -868.666748046875, - "y": 161.99998474121095, + "x": -874.666748046875, + "y": 162.00006103515626, "width": 172.66668701171876, - "height": 36.000030517578128 + "height": 35.999969482421878 } }, "m_Slots": [ @@ -1687,10 +1878,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": -676.0000610351563, - "y": 198.00001525878907, - "width": 184.6666259765625, - "height": 254.6667022705078 + "x": -682.0000610351563, + "y": 198.00003051757813, + "width": 184.66665649414063, + "height": 254.66668701171876 } }, "m_Slots": [ @@ -2329,10 +2520,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": -676.0, - "y": -87.33334350585938, - "width": 184.66671752929688, - "height": 254.6666717529297 + "x": -813.3333740234375, + "y": -380.6666564941406, + "width": 184.66668701171876, + "height": 254.66665649414063 } }, "m_Slots": [ @@ -2377,6 +2568,42 @@ "m_MipSamplingMode": 0 } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "67d23f92ffe24661a1bdf746af189547", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -769.333251953125, + "y": 67.33330535888672, + "width": 109.33331298828125, + "height": 36.000022888183597 + } + }, + "m_Slots": [ + { + "m_Id": "2fef3aa40b9f478a82efab3210662993" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "fb6c28211dec4e1bb1a36cbd93aff5e3" + } +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", @@ -2522,6 +2749,21 @@ "m_BareResource": false } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "72c7e7802e024978b702d83a9535194b", + "m_Id": 0, + "m_DisplayName": "Alpha", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Alpha", + "m_StageCapability": 2, + "m_Value": 1.0, + "m_DefaultValue": 1.0, + "m_Labels": [] +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", @@ -2625,10 +2867,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": -324.6665954589844, - "y": 193.99998474121095, - "width": 209.333251953125, - "height": 304.0 + "x": -449.3333740234375, + "y": 198.00003051757813, + "width": 209.33335876464845, + "height": 304.0000305175781 } }, "m_Slots": [ @@ -2921,6 +3163,42 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "855308f399fb4f71bc6584937719e851", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -813.3331909179688, + "y": 31.33333969116211, + "width": 153.333251953125, + "height": 35.99996566772461 + } + }, + "m_Slots": [ + { + "m_Id": "d6da5d2783dc4a238c7349e189e235eb" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "ef1c5fb59a8d4550ab9c739f843edaa0" + } +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", @@ -3323,6 +3601,52 @@ "m_DefaultType": 3 } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BranchNode", + "m_ObjectId": "a2cf70a9a7fe4202893a8b40f35571f9", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Branch", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -535.3333129882813, + "y": -0.000020460582163650542, + "width": 171.99993896484376, + "height": 143.99996948242188 + } + }, + "m_Slots": [ + { + "m_Id": "2d379c192d3048f19eef9dda9d4b8906" + }, + { + "m_Id": "ffe9c7f7a99b4e618171fac09d7a60da" + }, + { + "m_Id": "01187177ae5b4d289136898d4db4856b" + }, + { + "m_Id": "cfa6122569d6441bbd009755d3eada60" + } + ], + "synonyms": [ + "switch", + "if", + "else" + ], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.PropertyNode", @@ -3533,6 +3857,40 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "b81ee26f89a540ea946cb683ac7de047", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.AlphaClipThreshold", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 21.333335876464845, + "y": 301.9999694824219, + "width": 200.00003051757813, + "height": 42.66668701171875 + } + }, + "m_Slots": [ + { + "m_Id": "13a810e2e4804785b217f835e16a95ff" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.AlphaClipThreshold" +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.PropertyNode", @@ -3618,10 +3976,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": -479.3332824707031, - "y": -63.33333969116211, - "width": 129.33331298828126, - "height": 126.66668701171875 + "x": -616.6666870117188, + "y": -356.6666564941406, + "width": 129.33334350585938, + "height": 126.66665649414063 } }, "m_Slots": [ @@ -3852,6 +4210,44 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "cfa6122569d6441bbd009755d3eada60", + "m_Id": 3, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BooleanMaterialSlot", + "m_ObjectId": "d6da5d2783dc4a238c7349e189e235eb", + "m_Id": 0, + "m_DisplayName": "CutoffEnabled", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": false, + "m_DefaultValue": false +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Internal.Texture2DShaderProperty", @@ -4128,6 +4524,29 @@ "m_Labels": [] } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Internal.BooleanShaderProperty", + "m_ObjectId": "ef1c5fb59a8d4550ab9c739f843edaa0", + "m_Guid": { + "m_GuidSerialized": "d167437b-253b-4e6d-8ae4-5d62902a0350" + }, + "m_Name": "CutoffEnabled", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "CutoffEnabled", + "m_DefaultReferenceName": "_CutoffEnabled", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": true +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", @@ -4304,6 +4723,34 @@ } } +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty", + "m_ObjectId": "fb6c28211dec4e1bb1a36cbd93aff5e3", + "m_Guid": { + "m_GuidSerialized": "ddae6a56-f28d-4ec9-8f5e-3fb80da4ccf3" + }, + "m_Name": "Cutoff", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "Cutoff", + "m_DefaultReferenceName": "_Cutoff", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": 0.5, + "m_FloatType": 0, + "m_RangeValues": { + "x": 0.0, + "y": 1.0 + } +} + { "m_SGVersion": 1, "m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty", @@ -4332,3 +4779,27 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "ffe9c7f7a99b4e618171fac09d7a60da", + "m_Id": 1, + "m_DisplayName": "True", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "True", + "m_StageCapability": 3, + "m_Value": { + "x": 10.0, + "y": 1.0, + "z": 1.0, + "w": 1.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + diff --git a/Assets/VRM10_Samples/VRM10Viewer/TinyPbrMaterialContext.cs b/Assets/VRM10_Samples/VRM10Viewer/TinyPbrMaterialContext.cs index 28e2c7116..3f74055e6 100644 --- a/Assets/VRM10_Samples/VRM10Viewer/TinyPbrMaterialContext.cs +++ b/Assets/VRM10_Samples/VRM10Viewer/TinyPbrMaterialContext.cs @@ -43,11 +43,19 @@ namespace UniVRM10.VRM10Viewer /// /// Color = black /// - private static readonly int EmissionColor = Shader.PropertyToID("_EmissionColor"); + private static readonly int EmissionColorProp = Shader.PropertyToID("_EmissionColor"); /// /// Texture2D = black /// - private static readonly int EmissionMap = Shader.PropertyToID("_EmissionMap"); + private static readonly int EmissionMapProp = Shader.PropertyToID("_EmissionMap"); + /// + /// boolean keyword + /// + private static readonly int CutoffEnabledProp = Shader.PropertyToID("_CutoffEnabled"); + /// + /// float = 0.5 + /// + private static readonly int CutoffProp = Shader.PropertyToID("_Cutoff"); public readonly Material Material; public TinyPbrMaterialContext(Material material) @@ -122,13 +130,25 @@ namespace UniVRM10.VRM10Viewer public Color EmissionColorLinear { - get => Material.GetColor(EmissionColor); - set => Material.SetColor(EmissionColor, value); + get => Material.GetColor(EmissionColorProp); + set => Material.SetColor(EmissionColorProp, value); } public Texture EmissionTexture { - get => Material.GetTexture(EmissionMap); - set => Material.SetTexture(EmissionMap, value); + get => Material.GetTexture(EmissionMapProp); + set => Material.SetTexture(EmissionMapProp, value); + } + + public bool CutoffEnabled + { + get => Material.GetInt(CutoffEnabledProp) != 0; + set => Material.SetInt(CutoffEnabledProp, value ? 1 : 0); + } + + public float Cutoff + { + get => Material.GetFloat(CutoffProp); + set => Material.SetFloat(CutoffProp, value); } } } \ No newline at end of file diff --git a/Assets/VRM10_Samples/VRM10Viewer/TinyPbrMaterialDescriptorGenerator.cs b/Assets/VRM10_Samples/VRM10Viewer/TinyPbrMaterialDescriptorGenerator.cs index 62fa19b47..960cf7b8f 100644 --- a/Assets/VRM10_Samples/VRM10Viewer/TinyPbrMaterialDescriptorGenerator.cs +++ b/Assets/VRM10_Samples/VRM10Viewer/TinyPbrMaterialDescriptorGenerator.cs @@ -16,7 +16,7 @@ namespace UniVRM10.VRM10Viewer public Material OpaqueMaterial { get; set; } public Material AlphaBlendMaterial { get; set; } - + /// TinyPbr material public TinyPbrMaterialDescriptorGenerator( Material opaque, @@ -77,7 +77,7 @@ namespace UniVRM10.VRM10Viewer { var context = new TinyPbrMaterialContext(dst); - // ImportSurfaceSettings(src, context); + ImportSurfaceSettings(src, context); await ImportBaseColorAsync(data, src, context, getTextureAsync, awaitCaller); await ImportMetallicRoughnessAsync(data, src, context, getTextureAsync, awaitCaller); await ImportOcclusionAsync(data, src, context, getTextureAsync, awaitCaller); @@ -87,6 +87,25 @@ namespace UniVRM10.VRM10Viewer // context.Validate(); } + public static void ImportSurfaceSettings(glTFMaterial src, TinyPbrMaterialContext context) + { + // context.SurfaceType = src.alphaMode switch + // { + // "OPAQUE" => UrpLitSurfaceType.Opaque, + // "MASK" => UrpLitSurfaceType.Transparent, + // "BLEND" => UrpLitSurfaceType.Transparent, + // _ => UrpLitSurfaceType.Opaque, + // }; + // context.BlendMode = context.SurfaceType switch + // { + // UrpLitSurfaceType.Transparent => UrpLitBlendMode.Alpha, + // _ => UrpLitBlendMode.Alpha, + // }; + context.CutoffEnabled = src.alphaMode == "MASK"; + context.Cutoff = src.alphaCutoff; + // context.CullMode = src.doubleSided ? CullMode.Off : CullMode.Back; + } + public static async Task ImportBaseColorAsync(GltfData data, glTFMaterial src, TinyPbrMaterialContext context, GetTextureAsyncFunc getTextureAsync, IAwaitCaller awaitCaller) { var baseColorFactor = GltfMaterialImportUtils.ImportLinearBaseColorFactor(data, src); From 832e3f83ef980408750a2dfd0f9669d5dcfe6ffa Mon Sep 17 00:00:00 2001 From: ousttrue Date: Thu, 6 Feb 2025 03:43:16 +0900 Subject: [PATCH 10/56] TinyMToon.shadergraph --- .../VRM10Viewer/Assets/TinyMToon.shadergraph | 975 ++++++++++++++++++ .../Assets/TinyMToon.shadergraph.meta | 10 + .../VRM10Viewer/IMaterialImporter.cs | 9 + .../VRM10Viewer/IMaterialImporter.cs.meta | 11 + .../OrderedMaterialDescriptorGenerator.cs | 41 + ...rderedMaterialDescriptorGenerator.cs.meta} | 0 .../VRM10Viewer/TinyMToonMaterialContext.cs | 154 +++ .../TinyMToonMaterialContext.cs.meta | 11 + .../VRM10Viewer/TinyMToonMaterialImporter.cs | 82 ++ .../TinyMToonMaterialImporter.cs.meta | 11 + ...enerator.cs => TinyPbrMaterialImporter.cs} | 48 +- .../TinyPbrMaterialImporter.cs.meta | 11 + .../VRM10Viewer/VRM10Viewer.unity | 2 +- .../VRM10Viewer/VRM10ViewerUI.cs | 22 +- 14 files changed, 1344 insertions(+), 43 deletions(-) create mode 100644 Assets/VRM10_Samples/VRM10Viewer/Assets/TinyMToon.shadergraph create mode 100644 Assets/VRM10_Samples/VRM10Viewer/Assets/TinyMToon.shadergraph.meta create mode 100644 Assets/VRM10_Samples/VRM10Viewer/IMaterialImporter.cs create mode 100644 Assets/VRM10_Samples/VRM10Viewer/IMaterialImporter.cs.meta create mode 100644 Assets/VRM10_Samples/VRM10Viewer/OrderedMaterialDescriptorGenerator.cs rename Assets/VRM10_Samples/VRM10Viewer/{TinyPbrMaterialDescriptorGenerator.cs.meta => OrderedMaterialDescriptorGenerator.cs.meta} (100%) create mode 100644 Assets/VRM10_Samples/VRM10Viewer/TinyMToonMaterialContext.cs create mode 100644 Assets/VRM10_Samples/VRM10Viewer/TinyMToonMaterialContext.cs.meta create mode 100644 Assets/VRM10_Samples/VRM10Viewer/TinyMToonMaterialImporter.cs create mode 100644 Assets/VRM10_Samples/VRM10Viewer/TinyMToonMaterialImporter.cs.meta rename Assets/VRM10_Samples/VRM10Viewer/{TinyPbrMaterialDescriptorGenerator.cs => TinyPbrMaterialImporter.cs} (79%) create mode 100644 Assets/VRM10_Samples/VRM10Viewer/TinyPbrMaterialImporter.cs.meta diff --git a/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyMToon.shadergraph b/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyMToon.shadergraph new file mode 100644 index 000000000..29a8bad40 --- /dev/null +++ b/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyMToon.shadergraph @@ -0,0 +1,975 @@ +{ + "m_SGVersion": 3, + "m_Type": "UnityEditor.ShaderGraph.GraphData", + "m_ObjectId": "5e8062d7742046c5a0cbef2f61ceca95", + "m_Properties": [ + { + "m_Id": "4e79611254fb4f7ebaa9dc55ea52a427" + } + ], + "m_Keywords": [], + "m_Dropdowns": [], + "m_CategoryData": [ + { + "m_Id": "867e133e4da04154ac66a450c056f228" + } + ], + "m_Nodes": [ + { + "m_Id": "8e6b987b3d2e4b438d4618bd99e12be6" + }, + { + "m_Id": "7e3c0b97666e47ffa0460010d1a64071" + }, + { + "m_Id": "4ad89151ecf0451d9f92f4db3f59ca3d" + }, + { + "m_Id": "e27b69744886424eb5f477011f04efd2" + }, + { + "m_Id": "978fb2b4d6a64b13baf4df534019c0ef" + }, + { + "m_Id": "12d6f083f5bf4fe396e430f312c91445" + }, + { + "m_Id": "945c5856342a4d05a37a15c8fd76dd91" + }, + { + "m_Id": "ef80aee428f942ea9ba07ca5ff70d8b7" + }, + { + "m_Id": "c043e21ac8d54fe3af1f367b6682ea76" + }, + { + "m_Id": "6f5745e22b43420db4198550f74935a6" + }, + { + "m_Id": "001956a26193431db776814a0429e033" + } + ], + "m_GroupDatas": [], + "m_StickyNoteDatas": [], + "m_Edges": [ + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "001956a26193431db776814a0429e033" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "6f5745e22b43420db4198550f74935a6" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "6f5745e22b43420db4198550f74935a6" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "e27b69744886424eb5f477011f04efd2" + }, + "m_SlotId": 0 + } + } + ], + "m_VertexContext": { + "m_Position": { + "x": 0.0, + "y": 0.0 + }, + "m_Blocks": [ + { + "m_Id": "8e6b987b3d2e4b438d4618bd99e12be6" + }, + { + "m_Id": "7e3c0b97666e47ffa0460010d1a64071" + }, + { + "m_Id": "4ad89151ecf0451d9f92f4db3f59ca3d" + } + ] + }, + "m_FragmentContext": { + "m_Position": { + "x": 0.0, + "y": 200.0 + }, + "m_Blocks": [ + { + "m_Id": "e27b69744886424eb5f477011f04efd2" + }, + { + "m_Id": "978fb2b4d6a64b13baf4df534019c0ef" + }, + { + "m_Id": "12d6f083f5bf4fe396e430f312c91445" + }, + { + "m_Id": "945c5856342a4d05a37a15c8fd76dd91" + }, + { + "m_Id": "ef80aee428f942ea9ba07ca5ff70d8b7" + }, + { + "m_Id": "c043e21ac8d54fe3af1f367b6682ea76" + } + ] + }, + "m_PreviewData": { + "serializedMesh": { + "m_SerializedMesh": "{\"mesh\":{\"instanceID\":0}}", + "m_Guid": "" + }, + "preventRotation": false + }, + "m_Path": "Shader Graphs", + "m_GraphPrecision": 1, + "m_PreviewMode": 2, + "m_OutputNode": { + "m_Id": "" + }, + "m_SubDatas": [], + "m_ActiveTargets": [ + { + "m_Id": "cd04b2ec603c4ce98f51d924e2a512c2" + } + ] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "001956a26193431db776814a0429e033", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -434.6666564941406, + "y": 140.0, + "width": 140.0, + "height": 35.99998474121094 + } + }, + "m_Slots": [ + { + "m_Id": "896378e2743d4645bbfd8533cf1826e5" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "4e79611254fb4f7ebaa9dc55ea52a427" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.ColorRGBMaterialSlot", + "m_ObjectId": "019aac67658b4391a0fbbde2235300db", + "m_Id": 0, + "m_DisplayName": "Emission", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Emission", + "m_StageCapability": 2, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_ColorMode": 1, + "m_DefaultColor": { + "r": 0.0, + "g": 0.0, + "b": 0.0, + "a": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.NormalMaterialSlot", + "m_ObjectId": "01c54a54e6cb42a290e72e354571cec5", + "m_Id": 0, + "m_DisplayName": "Normal", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Normal", + "m_StageCapability": 1, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_Space": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "119a395b33c7443980ebe76a78156c14", + "m_Id": 4, + "m_DisplayName": "R", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "R", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "12d6f083f5bf4fe396e430f312c91445", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.Metallic", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 0.0, + "y": 0.0, + "width": 0.0, + "height": 0.0 + } + }, + "m_Slots": [ + { + "m_Id": "bed0fcfe71ee4b1e85fb3d9d7ee1e4c1" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.Metallic" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.ColorRGBMaterialSlot", + "m_ObjectId": "3b076e005942425f99ce3907ec24fe79", + "m_Id": 0, + "m_DisplayName": "Base Color", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "BaseColor", + "m_StageCapability": 2, + "m_Value": { + "x": 0.5, + "y": 0.5, + "z": 0.5 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_ColorMode": 0, + "m_DefaultColor": { + "r": 0.5, + "g": 0.5, + "b": 0.5, + "a": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "4ad89151ecf0451d9f92f4db3f59ca3d", + "m_Group": { + "m_Id": "" + }, + "m_Name": "VertexDescription.Tangent", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 0.0, + "y": 0.0, + "width": 0.0, + "height": 0.0 + } + }, + "m_Slots": [ + { + "m_Id": "b977eab87a834a02956948283a300909" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "VertexDescription.Tangent" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Internal.Texture2DShaderProperty", + "m_ObjectId": "4e79611254fb4f7ebaa9dc55ea52a427", + "m_Guid": { + "m_GuidSerialized": "8ba0f7ac-16b0-4874-83a9-5f7ed0c10efa" + }, + "m_Name": "BaseMap", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "BaseMap", + "m_DefaultReferenceName": "_BaseMap", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": { + "m_SerializedTexture": "", + "m_Guid": "" + }, + "isMainTexture": true, + "useTilingAndOffset": true, + "m_Modifiable": true, + "m_DefaultType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "5e4571167e004d41962bea79b2d6ec12", + "m_Id": 7, + "m_DisplayName": "A", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.NormalMaterialSlot", + "m_ObjectId": "6ea9aa166ed74644b3a8a23458367734", + "m_Id": 0, + "m_DisplayName": "Normal (Tangent Space)", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "NormalTS", + "m_StageCapability": 2, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_Space": 3 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SampleTexture2DNode", + "m_ObjectId": "6f5745e22b43420db4198550f74935a6", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Sample Texture 2D", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -319.1457214355469, + "y": 221.52105712890626, + "width": 209.3333282470703, + "height": 438.66668701171877 + } + }, + "m_Slots": [ + { + "m_Id": "976fc3a4005841bc9f2506ad8a880ad2" + }, + { + "m_Id": "119a395b33c7443980ebe76a78156c14" + }, + { + "m_Id": "9b9bcc2fdef244b09b85c0d444a1464e" + }, + { + "m_Id": "702ae318a63f41199008fba14c3e0d46" + }, + { + "m_Id": "5e4571167e004d41962bea79b2d6ec12" + }, + { + "m_Id": "d6894d8dff434dd59a557d72bf9f60fb" + }, + { + "m_Id": "e7932487a75244b7b646db0d63a82e8e" + }, + { + "m_Id": "f92de9080fa848f6831d9ff9301e7ca9" + } + ], + "synonyms": [ + "tex2d" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_TextureType": 0, + "m_NormalMapSpace": 0, + "m_EnableGlobalMipBias": true, + "m_MipSamplingMode": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "702ae318a63f41199008fba14c3e0d46", + "m_Id": 6, + "m_DisplayName": "B", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "7e3c0b97666e47ffa0460010d1a64071", + "m_Group": { + "m_Id": "" + }, + "m_Name": "VertexDescription.Normal", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 0.0, + "y": 0.0, + "width": 0.0, + "height": 0.0 + } + }, + "m_Slots": [ + { + "m_Id": "01c54a54e6cb42a290e72e354571cec5" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "VertexDescription.Normal" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.CategoryData", + "m_ObjectId": "867e133e4da04154ac66a450c056f228", + "m_Name": "", + "m_ChildObjectList": [ + { + "m_Id": "4e79611254fb4f7ebaa9dc55ea52a427" + } + ] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DMaterialSlot", + "m_ObjectId": "896378e2743d4645bbfd8533cf1826e5", + "m_Id": 0, + "m_DisplayName": "BaseMap", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_BareResource": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "8e6b987b3d2e4b438d4618bd99e12be6", + "m_Group": { + "m_Id": "" + }, + "m_Name": "VertexDescription.Position", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 0.0, + "y": 0.0, + "width": 0.0, + "height": 0.0 + } + }, + "m_Slots": [ + { + "m_Id": "f3a2f016faaf422f9c936817f13cb82d" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "VertexDescription.Position" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "945c5856342a4d05a37a15c8fd76dd91", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.Smoothness", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 0.0, + "y": 0.0, + "width": 0.0, + "height": 0.0 + } + }, + "m_Slots": [ + { + "m_Id": "da4800c1d386405fb154caff690abd85" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.Smoothness" +} + +{ + "m_SGVersion": 2, + "m_Type": "UnityEditor.Rendering.Universal.ShaderGraph.UniversalLitSubTarget", + "m_ObjectId": "97355bb871ae412c90915a1c95a39813", + "m_WorkflowMode": 1, + "m_NormalDropOffSpace": 0, + "m_ClearCoat": false, + "m_BlendModePreserveSpecular": true +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "976fc3a4005841bc9f2506ad8a880ad2", + "m_Id": 0, + "m_DisplayName": "RGBA", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "RGBA", + "m_StageCapability": 2, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "978fb2b4d6a64b13baf4df534019c0ef", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.NormalTS", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 0.0, + "y": 0.0, + "width": 0.0, + "height": 0.0 + } + }, + "m_Slots": [ + { + "m_Id": "6ea9aa166ed74644b3a8a23458367734" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.NormalTS" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "9b9bcc2fdef244b09b85c0d444a1464e", + "m_Id": 5, + "m_DisplayName": "G", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "G", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.TangentMaterialSlot", + "m_ObjectId": "b977eab87a834a02956948283a300909", + "m_Id": 0, + "m_DisplayName": "Tangent", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Tangent", + "m_StageCapability": 1, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_Space": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "bed0fcfe71ee4b1e85fb3d9d7ee1e4c1", + "m_Id": 0, + "m_DisplayName": "Metallic", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Metallic", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "c043e21ac8d54fe3af1f367b6682ea76", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.Occlusion", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 0.0, + "y": 0.0, + "width": 0.0, + "height": 0.0 + } + }, + "m_Slots": [ + { + "m_Id": "e0d5d67a35d246f4be028fa5a4c778bf" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.Occlusion" +} + +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.Rendering.Universal.ShaderGraph.UniversalTarget", + "m_ObjectId": "cd04b2ec603c4ce98f51d924e2a512c2", + "m_Datas": [], + "m_ActiveSubTarget": { + "m_Id": "97355bb871ae412c90915a1c95a39813" + }, + "m_AllowMaterialOverride": false, + "m_SurfaceType": 0, + "m_ZTestMode": 4, + "m_ZWriteControl": 0, + "m_AlphaMode": 0, + "m_RenderFace": 2, + "m_AlphaClip": false, + "m_CastShadows": true, + "m_ReceiveShadows": true, + "m_SupportsLODCrossFade": false, + "m_CustomEditorGUI": "", + "m_SupportVFX": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", + "m_ObjectId": "d6894d8dff434dd59a557d72bf9f60fb", + "m_Id": 1, + "m_DisplayName": "Texture", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Texture", + "m_StageCapability": 3, + "m_BareResource": false, + "m_Texture": { + "m_SerializedTexture": "", + "m_Guid": "" + }, + "m_DefaultType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "da4800c1d386405fb154caff690abd85", + "m_Id": 0, + "m_DisplayName": "Smoothness", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Smoothness", + "m_StageCapability": 2, + "m_Value": 0.5, + "m_DefaultValue": 0.5, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "e0d5d67a35d246f4be028fa5a4c778bf", + "m_Id": 0, + "m_DisplayName": "Ambient Occlusion", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Occlusion", + "m_StageCapability": 2, + "m_Value": 1.0, + "m_DefaultValue": 1.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "e27b69744886424eb5f477011f04efd2", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.BaseColor", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 0.0, + "y": 0.0, + "width": 0.0, + "height": 0.0 + } + }, + "m_Slots": [ + { + "m_Id": "3b076e005942425f99ce3907ec24fe79" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.BaseColor" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.UVMaterialSlot", + "m_ObjectId": "e7932487a75244b7b646db0d63a82e8e", + "m_Id": 2, + "m_DisplayName": "UV", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "UV", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0 + }, + "m_Labels": [], + "m_Channel": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "ef80aee428f942ea9ba07ca5ff70d8b7", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.Emission", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 0.0, + "y": 0.0, + "width": 0.0, + "height": 0.0 + } + }, + "m_Slots": [ + { + "m_Id": "019aac67658b4391a0fbbde2235300db" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.Emission" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PositionMaterialSlot", + "m_ObjectId": "f3a2f016faaf422f9c936817f13cb82d", + "m_Id": 0, + "m_DisplayName": "Position", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Position", + "m_StageCapability": 1, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_Space": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SamplerStateMaterialSlot", + "m_ObjectId": "f92de9080fa848f6831d9ff9301e7ca9", + "m_Id": 3, + "m_DisplayName": "Sampler", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Sampler", + "m_StageCapability": 3, + "m_BareResource": false +} + diff --git a/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyMToon.shadergraph.meta b/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyMToon.shadergraph.meta new file mode 100644 index 000000000..04c5857b3 --- /dev/null +++ b/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyMToon.shadergraph.meta @@ -0,0 +1,10 @@ +fileFormatVersion: 2 +guid: fd08e80eb7e04e849b8a6d534e48efea +ScriptedImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 2 + userData: + assetBundleName: + assetBundleVariant: + script: {fileID: 11500000, guid: 625f186215c104763be7675aa2d941aa, type: 3} diff --git a/Assets/VRM10_Samples/VRM10Viewer/IMaterialImporter.cs b/Assets/VRM10_Samples/VRM10Viewer/IMaterialImporter.cs new file mode 100644 index 000000000..7906b2a3c --- /dev/null +++ b/Assets/VRM10_Samples/VRM10Viewer/IMaterialImporter.cs @@ -0,0 +1,9 @@ +using UniGLTF; + +namespace UniVRM10.VRM10Viewer +{ + public interface IMaterialImporter + { + bool TryCreateParam(GltfData data, int i, out MaterialDescriptor matDesc); + } +} \ No newline at end of file diff --git a/Assets/VRM10_Samples/VRM10Viewer/IMaterialImporter.cs.meta b/Assets/VRM10_Samples/VRM10Viewer/IMaterialImporter.cs.meta new file mode 100644 index 000000000..72183176b --- /dev/null +++ b/Assets/VRM10_Samples/VRM10Viewer/IMaterialImporter.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: a73adafc0b11d6e459306666f5b0ceb8 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/VRM10_Samples/VRM10Viewer/OrderedMaterialDescriptorGenerator.cs b/Assets/VRM10_Samples/VRM10Viewer/OrderedMaterialDescriptorGenerator.cs new file mode 100644 index 000000000..e8d644d30 --- /dev/null +++ b/Assets/VRM10_Samples/VRM10Viewer/OrderedMaterialDescriptorGenerator.cs @@ -0,0 +1,41 @@ +using UniGLTF; + +namespace UniVRM10.VRM10Viewer +{ + public sealed class OrderedMaterialDescriptorGenerator : IMaterialDescriptorGenerator + { + private IMaterialImporter[] _importers; + + public UrpGltfDefaultMaterialImporter DefaultMaterialImporter { get; } = new(); + + /// + /// 順に TryCreateParam を実行して最初に成功したら終わる。 + /// 全て失敗したら UrpGltfDefaultMaterialImporter を実行する。 + /// 通常 vrm-1.0, unlit, pbr の順に試行する。 + /// + /// + public OrderedMaterialDescriptorGenerator(params IMaterialImporter[] importers) + { + _importers = importers; + } + + public MaterialDescriptor Get(GltfData data, int i) + { + foreach (var importer in _importers) + { + if (importer.TryCreateParam(data, i, out var param)) + { + return param; + } + } + // NOTE: Fallback to default material + if (Symbols.VRM_DEVELOP) + { + UniGLTFLogger.Warning($"material: {i} out of range. fallback"); + } + return GetGltfDefault(GltfMaterialImportUtils.ImportMaterialName(i, null)); + } + + public MaterialDescriptor GetGltfDefault(string materialName = null) => DefaultMaterialImporter.CreateParam(materialName); + } +} \ No newline at end of file diff --git a/Assets/VRM10_Samples/VRM10Viewer/TinyPbrMaterialDescriptorGenerator.cs.meta b/Assets/VRM10_Samples/VRM10Viewer/OrderedMaterialDescriptorGenerator.cs.meta similarity index 100% rename from Assets/VRM10_Samples/VRM10Viewer/TinyPbrMaterialDescriptorGenerator.cs.meta rename to Assets/VRM10_Samples/VRM10Viewer/OrderedMaterialDescriptorGenerator.cs.meta diff --git a/Assets/VRM10_Samples/VRM10Viewer/TinyMToonMaterialContext.cs b/Assets/VRM10_Samples/VRM10Viewer/TinyMToonMaterialContext.cs new file mode 100644 index 000000000..4df95163d --- /dev/null +++ b/Assets/VRM10_Samples/VRM10Viewer/TinyMToonMaterialContext.cs @@ -0,0 +1,154 @@ +using UnityEngine; + +namespace UniVRM10.VRM10Viewer +{ + public class TinyMToonMaterialContext + { + // + // When using shadergraph, you need to expose the following properties. + // + + /// + /// Color = White + /// + private static readonly int BaseColorProp = Shader.PropertyToID("_BaseColor"); + /// + /// Texture2D = white + /// When using shadergraph, require "Set as Main Texture" + /// + private static readonly int BaseMapProp = Shader.PropertyToID("_BaseMap"); + /// + /// float = 1.0 + /// + private static readonly int OcclusionStrengthProp = Shader.PropertyToID("_OcclusionStrength"); + /// + /// Texture2D.Red = 1.0. + /// + private static readonly int OcclusionMapProp = Shader.PropertyToID("_OcclusionMap"); + private static readonly int RoughnessProp = Shader.PropertyToID("_Roughness"); + private static readonly int MetallicProp = Shader.PropertyToID("_Metallic"); + /// + /// Texture2D.Green = 1.0. The roughness + /// Texture2D.Blue = 1.0. The metalness + /// + private static readonly int MetallicRoughnessMapProp = Shader.PropertyToID("_MetallicRoughnessMap"); + /// + /// float = 1.0 + /// + private static readonly int BumpScaleProp = Shader.PropertyToID("_BumpScale"); + /// + /// Texture2D = [0, 0, 1.0] + /// + private static readonly int BumpMapProp = Shader.PropertyToID("_BumpMap"); + /// + /// Color = black + /// + private static readonly int EmissionColorProp = Shader.PropertyToID("_EmissionColor"); + /// + /// Texture2D = black + /// + private static readonly int EmissionMapProp = Shader.PropertyToID("_EmissionMap"); + /// + /// boolean keyword + /// + private static readonly int CutoffEnabledProp = Shader.PropertyToID("_CutoffEnabled"); + /// + /// float = 0.5 + /// + private static readonly int CutoffProp = Shader.PropertyToID("_Cutoff"); + + public readonly Material Material; + public TinyMToonMaterialContext(Material material) + { + Material = material; + } + + public Color BaseColorSrgb + { + get => Material.GetColor(BaseColorProp); + set => Material.SetColor(BaseColorProp, value); + } + public Texture BaseTexture + { + get => Material.GetTexture(BaseMapProp); + set => Material.SetTexture(BaseMapProp, value); + } + public Vector2 BaseTextureOffset + { + get => Material.GetTextureOffset(BaseMapProp); + set => Material.SetTextureOffset(BaseMapProp, value); + } + public Vector2 BaseTextureScale + { + get => Material.GetTextureScale(BaseMapProp); + set => Material.SetTextureScale(BaseMapProp, value); + } + + public float OcclusionStrength + { + get => Material.GetFloat(OcclusionStrengthProp); + set => Material.SetFloat(OcclusionStrengthProp, value); + } + public Texture OcclusionTexture + { + get => Material.GetTexture(OcclusionMapProp); + set + { + Material.SetTexture(OcclusionMapProp, value); + } + } + + public float Roughness + { + get => Material.GetFloat(RoughnessProp); + set => Material.SetFloat(RoughnessProp, value); + } + public float Metallic + { + get => Material.GetFloat(MetallicProp); + set => Material.SetFloat(MetallicProp, value); + } + public Texture MetallicRoughnessMap + { + get => Material.GetTexture(MetallicRoughnessMapProp); + set => Material.SetTexture(MetallicRoughnessMapProp, value); + } + + public float BumpScale + { + get => Material.GetFloat(BumpScaleProp); + set => Material.SetFloat(BumpScaleProp, value); + } + public Texture BumpMap + { + get => Material.GetTexture(BumpMapProp); + set + { + Material.SetTexture(BumpMapProp, value); + } + } + + public Color EmissionColorLinear + { + get => Material.GetColor(EmissionColorProp); + set => Material.SetColor(EmissionColorProp, value); + } + public Texture EmissionTexture + { + get => Material.GetTexture(EmissionMapProp); + set => Material.SetTexture(EmissionMapProp, value); + } + + public bool CutoffEnabled + { + get => Material.GetInt(CutoffEnabledProp) != 0; + set => Material.SetInt(CutoffEnabledProp, value ? 1 : 0); + } + + public float Cutoff + { + get => Material.GetFloat(CutoffProp); + set => Material.SetFloat(CutoffProp, value); + } + } +} \ No newline at end of file diff --git a/Assets/VRM10_Samples/VRM10Viewer/TinyMToonMaterialContext.cs.meta b/Assets/VRM10_Samples/VRM10Viewer/TinyMToonMaterialContext.cs.meta new file mode 100644 index 000000000..1f1447c44 --- /dev/null +++ b/Assets/VRM10_Samples/VRM10Viewer/TinyMToonMaterialContext.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 74278bbebb772d043ad87b46a42e9cc3 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/VRM10_Samples/VRM10Viewer/TinyMToonMaterialImporter.cs b/Assets/VRM10_Samples/VRM10Viewer/TinyMToonMaterialImporter.cs new file mode 100644 index 000000000..9da754da7 --- /dev/null +++ b/Assets/VRM10_Samples/VRM10Viewer/TinyMToonMaterialImporter.cs @@ -0,0 +1,82 @@ +using System; +using System.Collections.Generic; +using System.Threading.Tasks; +using UniGLTF; +using UnityEngine; + +namespace UniVRM10.VRM10Viewer +{ + public class TinyMToonrMaterialImporter : IMaterialImporter + { + private Material m_opaque; + public TinyMToonrMaterialImporter(Material material) + { + m_opaque = material; + } + + bool IMaterialImporter.TryCreateParam(GltfData data, int i, out MaterialDescriptor matDesc) + { + if (i < 0 || i >= data.GLTF.materials.Count) + { + matDesc = default; + return false; + } + + var src = data.GLTF.materials[i]; + if (!UniGLTF.Extensions.VRMC_materials_mtoon.GltfDeserializer.TryGet(src.extensions, out var mtoon)) + { + // Fallback to glTF, when MToon extension does not exist. + matDesc = default; + return false; + } + + matDesc = new MaterialDescriptor( + GltfMaterialImportUtils.ImportMaterialName(i, src), + m_opaque.shader, + null, + new Dictionary(), + new Dictionary(), + new Dictionary(), + new Dictionary(), + new List>(), + new[] { (MaterialDescriptor.MaterialGenerateAsyncFunc)AsyncAction } + ); + return true; + + Task AsyncAction(Material x, GetTextureAsyncFunc y, IAwaitCaller z) => GenerateMaterialAsync(data, src, x, y, z); + } + + public static async Task GenerateMaterialAsync(GltfData data, glTFMaterial src, Material dst, GetTextureAsyncFunc getTextureAsync, IAwaitCaller awaitCaller) + { + var context = new TinyMToonMaterialContext(dst); + + // ImportSurfaceSettings(src, context); + await ImportBaseColorAsync(data, src, context, getTextureAsync, awaitCaller); + // await ImportMetallicRoughnessAsync(data, src, context, getTextureAsync, awaitCaller); + // await ImportOcclusionAsync(data, src, context, getTextureAsync, awaitCaller); + // await ImportNormalAsync(data, src, context, getTextureAsync, awaitCaller); + // await ImportEmissionAsync(data, src, context, getTextureAsync, awaitCaller); + + // context.Validate(); + } + + public static async Task ImportBaseColorAsync(GltfData data, glTFMaterial src, TinyMToonMaterialContext context, GetTextureAsyncFunc getTextureAsync, IAwaitCaller awaitCaller) + { + var baseColorFactor = GltfMaterialImportUtils.ImportLinearBaseColorFactor(data, src); + if (baseColorFactor.HasValue) + { + context.BaseColorSrgb = baseColorFactor.Value.gamma; + } + + if (src is { pbrMetallicRoughness: { baseColorTexture: { index: >= 0 } } }) + { + if (GltfPbrTextureImporter.TryBaseColorTexture(data, src, out _, out var desc)) + { + context.BaseTexture = await getTextureAsync(desc, awaitCaller); + context.BaseTextureOffset = desc.Offset; + context.BaseTextureScale = desc.Scale; + } + } + } + } +} \ No newline at end of file diff --git a/Assets/VRM10_Samples/VRM10Viewer/TinyMToonMaterialImporter.cs.meta b/Assets/VRM10_Samples/VRM10Viewer/TinyMToonMaterialImporter.cs.meta new file mode 100644 index 000000000..45cb388c7 --- /dev/null +++ b/Assets/VRM10_Samples/VRM10Viewer/TinyMToonMaterialImporter.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 65362ac3cba13c14299e8a8ce356927d +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/VRM10_Samples/VRM10Viewer/TinyPbrMaterialDescriptorGenerator.cs b/Assets/VRM10_Samples/VRM10Viewer/TinyPbrMaterialImporter.cs similarity index 79% rename from Assets/VRM10_Samples/VRM10Viewer/TinyPbrMaterialDescriptorGenerator.cs rename to Assets/VRM10_Samples/VRM10Viewer/TinyPbrMaterialImporter.cs index 960cf7b8f..35f137a28 100644 --- a/Assets/VRM10_Samples/VRM10Viewer/TinyPbrMaterialDescriptorGenerator.cs +++ b/Assets/VRM10_Samples/VRM10Viewer/TinyPbrMaterialImporter.cs @@ -6,49 +6,21 @@ using UnityEngine; namespace UniVRM10.VRM10Viewer { - /// - /// TinyPbr 向け - /// - public sealed class TinyPbrMaterialDescriptorGenerator : IMaterialDescriptorGenerator + public class TinyPbrMaterialImporter : IMaterialImporter { - public UrpGltfPbrMaterialImporter PbrMaterialImporter { get; } = new(); - public UrpGltfDefaultMaterialImporter DefaultMaterialImporter { get; } = new(); + // public const string ALPHABLEND_SHADER_NAME = "Shader Graphs/TinyPbrAlphaBlend"; + // public const string OPAQUE_SHADER_NAME = "Shader Graphs/TinyPbrOpaque"; - public Material OpaqueMaterial { get; set; } - public Material AlphaBlendMaterial { get; set; } + Material m_opaque; + Material m_alphablend; - /// TinyPbr material - public TinyPbrMaterialDescriptorGenerator( - Material opaque, - Material alphaBlend - ) + public TinyPbrMaterialImporter(Material opaque, Material alphablend) { - if (opaque == null) - { - throw new ArgumentNullException("opaque"); - } - OpaqueMaterial = opaque; - AlphaBlendMaterial = alphaBlend ?? opaque; + m_opaque = opaque; + m_alphablend = alphablend; } - public MaterialDescriptor Get(GltfData data, int i) - { - // UNLIT - if (BuiltInGltfUnlitMaterialImporter.TryCreateParam(data, i, out var param)) return param; - - if (TryCreateParam(data, i, out param)) return param; - - // NOTE: Fallback to default material - if (Symbols.VRM_DEVELOP) - { - UniGLTFLogger.Warning($"material: {i} out of range. fallback"); - } - return GetGltfDefault(GltfMaterialImportUtils.ImportMaterialName(i, null)); - } - - public MaterialDescriptor GetGltfDefault(string materialName = null) => DefaultMaterialImporter.CreateParam(materialName); - - public bool TryCreateParam(GltfData data, int i, out MaterialDescriptor matDesc) + bool IMaterialImporter.TryCreateParam(GltfData data, int i, out MaterialDescriptor matDesc) { if (i < 0 || i >= data.GLTF.materials.Count) { @@ -59,7 +31,7 @@ namespace UniVRM10.VRM10Viewer var src = data.GLTF.materials[i]; matDesc = new MaterialDescriptor( GltfMaterialImportUtils.ImportMaterialName(i, src), - src.alphaMode == "BLEND" ? AlphaBlendMaterial.shader : OpaqueMaterial.shader, + src.alphaMode == "BLEND" ? m_alphablend.shader : m_opaque.shader, null, new Dictionary(), new Dictionary(), diff --git a/Assets/VRM10_Samples/VRM10Viewer/TinyPbrMaterialImporter.cs.meta b/Assets/VRM10_Samples/VRM10Viewer/TinyPbrMaterialImporter.cs.meta new file mode 100644 index 000000000..c29e35b99 --- /dev/null +++ b/Assets/VRM10_Samples/VRM10Viewer/TinyPbrMaterialImporter.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 0f9b3156e6cb9e84b924ab9e062df7fe +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/VRM10_Samples/VRM10Viewer/VRM10Viewer.unity b/Assets/VRM10_Samples/VRM10Viewer/VRM10Viewer.unity index a18ab6f3c..05cf34b7c 100644 --- a/Assets/VRM10_Samples/VRM10Viewer/VRM10Viewer.unity +++ b/Assets/VRM10_Samples/VRM10Viewer/VRM10Viewer.unity @@ -30642,7 +30642,7 @@ MonoBehaviour: type: 3} m_alphaBlendMaterial: {fileID: -876546973899608171, guid: 868190a58757d6242bb3ca456402f82f, type: 3} - m_cutoffMaterial: {fileID: -876546973899608171, guid: 9a01f29343f749440b30e3ff1c26b013, + m_mtoonMaterial: {fileID: -876546973899608171, guid: 181d2f25392c4884c88480261b6d6b57, type: 3} m_useCustomMaterial: {fileID: 731212246} m_openModel: {fileID: 2009818433} diff --git a/Assets/VRM10_Samples/VRM10Viewer/VRM10ViewerUI.cs b/Assets/VRM10_Samples/VRM10Viewer/VRM10ViewerUI.cs index f07222901..84fe2a800 100644 --- a/Assets/VRM10_Samples/VRM10Viewer/VRM10ViewerUI.cs +++ b/Assets/VRM10_Samples/VRM10Viewer/VRM10ViewerUI.cs @@ -27,6 +27,8 @@ namespace UniVRM10.VRM10Viewer Material m_opaqueMaterial = default; [SerializeField] Material m_alphaBlendMaterial = default; + [SerializeField] + Material m_mtoonMaterial = default; [Header("UI")] [SerializeField] @@ -481,8 +483,23 @@ namespace UniVRM10.VRM10Viewer VRM10Blinker m_autoBlink; VRM10AIUEO m_autoLipsync; + private class UnlitMaterialImporter : IMaterialImporter + { + bool IMaterialImporter.TryCreateParam(GltfData data, int i, out MaterialDescriptor matDesc) + { + return BuiltInGltfUnlitMaterialImporter.TryCreateParam(data, i, out matDesc); + } + } + private UnlitMaterialImporter m_unlitImporter = new(); + + private TinyMToonrMaterialImporter m_mtoonImporter; + private TinyPbrMaterialImporter m_pbrImporter; + private void Start() { + m_mtoonImporter = new(m_mtoonMaterial); + m_pbrImporter = new(m_opaqueMaterial, m_alphaBlendMaterial); + m_autoEmotion = gameObject.AddComponent(); m_autoBlink = gameObject.AddComponent(); m_autoLipsync = gameObject.AddComponent(); @@ -775,10 +792,7 @@ namespace UniVRM10.VRM10Viewer { if (m_useCustomMaterial.isOn) { - return new TinyPbrMaterialDescriptorGenerator( - m_opaqueMaterial, - m_alphaBlendMaterial - ); + return new OrderedMaterialDescriptorGenerator(m_mtoonImporter, m_unlitImporter, m_pbrImporter); } else { From 7e22c51c1bc613fccae9148c794082446e4421ff Mon Sep 17 00:00:00 2001 From: ousttrue Date: Thu, 6 Feb 2025 20:53:31 +0900 Subject: [PATCH 11/56] TinyPbrSubGraph.shadersubgraph --- ...hadergraph => TinyMToonOpaque.shadergraph} | 0 ....meta => TinyMToonOpaque.shadergraph.meta} | 0 .../Assets/TinyPbrAlphaBlend.shadergraph | 3396 ++----------- .../Assets/TinyPbrOpaque.shadergraph | 3661 ++++---------- .../Assets/TinyPbrSubGraph.shadersubgraph | 4248 +++++++++++++++++ .../TinyPbrSubGraph.shadersubgraph.meta | 10 + .../VRM10Viewer/VRM10Viewer.unity | 2 +- .../VRM10Viewer/VRM10ViewerUI.cs | 4 +- 8 files changed, 5526 insertions(+), 5795 deletions(-) rename Assets/VRM10_Samples/VRM10Viewer/Assets/{TinyMToon.shadergraph => TinyMToonOpaque.shadergraph} (100%) rename Assets/VRM10_Samples/VRM10Viewer/Assets/{TinyMToon.shadergraph.meta => TinyMToonOpaque.shadergraph.meta} (100%) create mode 100644 Assets/VRM10_Samples/VRM10Viewer/Assets/TinyPbrSubGraph.shadersubgraph create mode 100644 Assets/VRM10_Samples/VRM10Viewer/Assets/TinyPbrSubGraph.shadersubgraph.meta diff --git a/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyMToon.shadergraph b/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyMToonOpaque.shadergraph similarity index 100% rename from Assets/VRM10_Samples/VRM10Viewer/Assets/TinyMToon.shadergraph rename to Assets/VRM10_Samples/VRM10Viewer/Assets/TinyMToonOpaque.shadergraph diff --git a/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyMToon.shadergraph.meta b/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyMToonOpaque.shadergraph.meta similarity index 100% rename from Assets/VRM10_Samples/VRM10Viewer/Assets/TinyMToon.shadergraph.meta rename to Assets/VRM10_Samples/VRM10Viewer/Assets/TinyMToonOpaque.shadergraph.meta diff --git a/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyPbrAlphaBlend.shadergraph b/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyPbrAlphaBlend.shadergraph index a87b10c20..f25a42259 100644 --- a/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyPbrAlphaBlend.shadergraph +++ b/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyPbrAlphaBlend.shadergraph @@ -72,45 +72,18 @@ { "m_Id": "58ee8fea72cc4a649f9a1198b12d621b" }, - { - "m_Id": "6637a91f035a40e798e76f70bed17d7e" - }, { "m_Id": "305a571d629e4b258d80c3ad877cb596" }, { "m_Id": "0b94be19d37c4268b363243bac818ac4" }, - { - "m_Id": "bc1b1f1db2674d2eb92cff962761dad3" - }, - { - "m_Id": "2a5a6e02ee104d45a3ecc82a5ff7b17c" - }, - { - "m_Id": "7644e994b4da4282b21650a0f58a3757" - }, - { - "m_Id": "497c741e95244480b7cb6a37a51bb19a" - }, { "m_Id": "3be41b6b511d440c94c29229f4a7bdc2" }, { "m_Id": "19964d5b976e467eb1b4a7f544bf3fef" }, - { - "m_Id": "1cb9d3109e954f59889461d6d563c74c" - }, - { - "m_Id": "bff080be2f534b5d82990c22e3cc631e" - }, - { - "m_Id": "91aa9548b6024d17b2b8a4be2770ad97" - }, - { - "m_Id": "177b02b8f3b64be1b2f2e7e0055128cb" - }, { "m_Id": "b08614dabfc6474ebee92e0b18d28d4b" }, @@ -120,24 +93,12 @@ { "m_Id": "73efafc771664c7b8a4e4b9e58a6e868" }, - { - "m_Id": "42b5b42d2e304772a31a535448fded9c" - }, - { - "m_Id": "4f05aa87bb184723a2d2b15721a0c3e9" - }, { "m_Id": "b83e5bff780742a79344a87ff879965a" }, { "m_Id": "609f313b8b6f4ee8a871650dc611dc0c" }, - { - "m_Id": "61ad74e00639449f90b3e8cd5747f9a2" - }, - { - "m_Id": "0ec124cb35be4b22af0a2dfb725df3fd" - }, { "m_Id": "94fe3f50fd0c4ce3a036c672b2d71557" }, @@ -148,13 +109,7 @@ "m_Id": "13c40b9504d247499cd3ce8a57badab2" }, { - "m_Id": "ae95328961414c969e0a0dd7ac9bdb73" - }, - { - "m_Id": "165e36ddc0554916b7670ae4096eb278" - }, - { - "m_Id": "8db1c68dfd2946afb8d345a98ddc0889" + "m_Id": "c4b5803e8c2f4d65ab4f294fe361adc1" } ], "m_GroupDatas": [], @@ -169,107 +124,9 @@ }, "m_InputSlot": { "m_Node": { - "m_Id": "165e36ddc0554916b7670ae4096eb278" + "m_Id": "c4b5803e8c2f4d65ab4f294fe361adc1" }, - "m_SlotId": 0 - } - }, - { - "m_OutputSlot": { - "m_Node": { - "m_Id": "0ec124cb35be4b22af0a2dfb725df3fd" - }, - "m_SlotId": 0 - }, - "m_InputSlot": { - "m_Node": { - "m_Id": "61ad74e00639449f90b3e8cd5747f9a2" - }, - "m_SlotId": 1 - } - }, - { - "m_OutputSlot": { - "m_Node": { - "m_Id": "165e36ddc0554916b7670ae4096eb278" - }, - "m_SlotId": 1 - }, - "m_InputSlot": { - "m_Node": { - "m_Id": "8db1c68dfd2946afb8d345a98ddc0889" - }, - "m_SlotId": 1 - } - }, - { - "m_OutputSlot": { - "m_Node": { - "m_Id": "165e36ddc0554916b7670ae4096eb278" - }, - "m_SlotId": 2 - }, - "m_InputSlot": { - "m_Node": { - "m_Id": "8db1c68dfd2946afb8d345a98ddc0889" - }, - "m_SlotId": 2 - } - }, - { - "m_OutputSlot": { - "m_Node": { - "m_Id": "165e36ddc0554916b7670ae4096eb278" - }, - "m_SlotId": 3 - }, - "m_InputSlot": { - "m_Node": { - "m_Id": "8db1c68dfd2946afb8d345a98ddc0889" - }, - "m_SlotId": 3 - } - }, - { - "m_OutputSlot": { - "m_Node": { - "m_Id": "165e36ddc0554916b7670ae4096eb278" - }, - "m_SlotId": 4 - }, - "m_InputSlot": { - "m_Node": { - "m_Id": "ae95328961414c969e0a0dd7ac9bdb73" - }, - "m_SlotId": 0 - } - }, - { - "m_OutputSlot": { - "m_Node": { - "m_Id": "177b02b8f3b64be1b2f2e7e0055128cb" - }, - "m_SlotId": 5 - }, - "m_InputSlot": { - "m_Node": { - "m_Id": "bff080be2f534b5d82990c22e3cc631e" - }, - "m_SlotId": 1 - } - }, - { - "m_OutputSlot": { - "m_Node": { - "m_Id": "177b02b8f3b64be1b2f2e7e0055128cb" - }, - "m_SlotId": 6 - }, - "m_InputSlot": { - "m_Node": { - "m_Id": "1cb9d3109e954f59889461d6d563c74c" - }, - "m_SlotId": 1 + "m_SlotId": -1946006235 } }, { @@ -281,37 +138,9 @@ }, "m_InputSlot": { "m_Node": { - "m_Id": "497c741e95244480b7cb6a37a51bb19a" + "m_Id": "c4b5803e8c2f4d65ab4f294fe361adc1" }, - "m_SlotId": 1 - } - }, - { - "m_OutputSlot": { - "m_Node": { - "m_Id": "1cb9d3109e954f59889461d6d563c74c" - }, - "m_SlotId": 2 - }, - "m_InputSlot": { - "m_Node": { - "m_Id": "6098dc7f36d84b83b8421cc0e56ed1a0" - }, - "m_SlotId": 0 - } - }, - { - "m_OutputSlot": { - "m_Node": { - "m_Id": "2a5a6e02ee104d45a3ecc82a5ff7b17c" - }, - "m_SlotId": 2 - }, - "m_InputSlot": { - "m_Node": { - "m_Id": "80fce1dbcef04945aa9b988609dbe324" - }, - "m_SlotId": 0 + "m_SlotId": 2124990166 } }, { @@ -323,9 +152,9 @@ }, "m_InputSlot": { "m_Node": { - "m_Id": "6637a91f035a40e798e76f70bed17d7e" + "m_Id": "c4b5803e8c2f4d65ab4f294fe361adc1" }, - "m_SlotId": 1 + "m_SlotId": 725867842 } }, { @@ -337,51 +166,9 @@ }, "m_InputSlot": { "m_Node": { - "m_Id": "7644e994b4da4282b21650a0f58a3757" + "m_Id": "c4b5803e8c2f4d65ab4f294fe361adc1" }, - "m_SlotId": 0 - } - }, - { - "m_OutputSlot": { - "m_Node": { - "m_Id": "42b5b42d2e304772a31a535448fded9c" - }, - "m_SlotId": 2 - }, - "m_InputSlot": { - "m_Node": { - "m_Id": "6f683c2eb23a4baf8dc028500640b75a" - }, - "m_SlotId": 0 - } - }, - { - "m_OutputSlot": { - "m_Node": { - "m_Id": "497c741e95244480b7cb6a37a51bb19a" - }, - "m_SlotId": 4 - }, - "m_InputSlot": { - "m_Node": { - "m_Id": "7644e994b4da4282b21650a0f58a3757" - }, - "m_SlotId": 1 - } - }, - { - "m_OutputSlot": { - "m_Node": { - "m_Id": "4f05aa87bb184723a2d2b15721a0c3e9" - }, - "m_SlotId": 0 - }, - "m_InputSlot": { - "m_Node": { - "m_Id": "42b5b42d2e304772a31a535448fded9c" - }, - "m_SlotId": 0 + "m_SlotId": 1886474450 } }, { @@ -393,79 +180,9 @@ }, "m_InputSlot": { "m_Node": { - "m_Id": "4f05aa87bb184723a2d2b15721a0c3e9" + "m_Id": "c4b5803e8c2f4d65ab4f294fe361adc1" }, - "m_SlotId": 1 - } - }, - { - "m_OutputSlot": { - "m_Node": { - "m_Id": "61ad74e00639449f90b3e8cd5747f9a2" - }, - "m_SlotId": 2 - }, - "m_InputSlot": { - "m_Node": { - "m_Id": "0f64718141f34878916463ec72c9d2d8" - }, - "m_SlotId": 0 - } - }, - { - "m_OutputSlot": { - "m_Node": { - "m_Id": "6637a91f035a40e798e76f70bed17d7e" - }, - "m_SlotId": 4 - }, - "m_InputSlot": { - "m_Node": { - "m_Id": "bc1b1f1db2674d2eb92cff962761dad3" - }, - "m_SlotId": 1 - } - }, - { - "m_OutputSlot": { - "m_Node": { - "m_Id": "6637a91f035a40e798e76f70bed17d7e" - }, - "m_SlotId": 5 - }, - "m_InputSlot": { - "m_Node": { - "m_Id": "bc1b1f1db2674d2eb92cff962761dad3" - }, - "m_SlotId": 2 - } - }, - { - "m_OutputSlot": { - "m_Node": { - "m_Id": "6637a91f035a40e798e76f70bed17d7e" - }, - "m_SlotId": 6 - }, - "m_InputSlot": { - "m_Node": { - "m_Id": "bc1b1f1db2674d2eb92cff962761dad3" - }, - "m_SlotId": 3 - } - }, - { - "m_OutputSlot": { - "m_Node": { - "m_Id": "6637a91f035a40e798e76f70bed17d7e" - }, - "m_SlotId": 7 - }, - "m_InputSlot": { - "m_Node": { - "m_Id": "ae95328961414c969e0a0dd7ac9bdb73" - }, - "m_SlotId": 1 + "m_SlotId": -1417122351 } }, { @@ -477,51 +194,9 @@ }, "m_InputSlot": { "m_Node": { - "m_Id": "1cb9d3109e954f59889461d6d563c74c" + "m_Id": "c4b5803e8c2f4d65ab4f294fe361adc1" }, - "m_SlotId": 0 - } - }, - { - "m_OutputSlot": { - "m_Node": { - "m_Id": "7644e994b4da4282b21650a0f58a3757" - }, - "m_SlotId": 2 - }, - "m_InputSlot": { - "m_Node": { - "m_Id": "58ee8fea72cc4a649f9a1198b12d621b" - }, - "m_SlotId": 0 - } - }, - { - "m_OutputSlot": { - "m_Node": { - "m_Id": "8db1c68dfd2946afb8d345a98ddc0889" - }, - "m_SlotId": 0 - }, - "m_InputSlot": { - "m_Node": { - "m_Id": "2a5a6e02ee104d45a3ecc82a5ff7b17c" - }, - "m_SlotId": 0 - } - }, - { - "m_OutputSlot": { - "m_Node": { - "m_Id": "91aa9548b6024d17b2b8a4be2770ad97" - }, - "m_SlotId": 2 - }, - "m_InputSlot": { - "m_Node": { - "m_Id": "53f1bc01113946bc946f0808f16df02b" - }, - "m_SlotId": 0 + "m_SlotId": 1450746048 } }, { @@ -533,9 +208,9 @@ }, "m_InputSlot": { "m_Node": { - "m_Id": "61ad74e00639449f90b3e8cd5747f9a2" + "m_Id": "c4b5803e8c2f4d65ab4f294fe361adc1" }, - "m_SlotId": 0 + "m_SlotId": 31906282 } }, { @@ -547,7 +222,49 @@ }, "m_InputSlot": { "m_Node": { - "m_Id": "bff080be2f534b5d82990c22e3cc631e" + "m_Id": "c4b5803e8c2f4d65ab4f294fe361adc1" + }, + "m_SlotId": 1238374258 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "b08614dabfc6474ebee92e0b18d28d4b" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "c4b5803e8c2f4d65ab4f294fe361adc1" + }, + "m_SlotId": -1762040067 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "b83e5bff780742a79344a87ff879965a" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "c4b5803e8c2f4d65ab4f294fe361adc1" + }, + "m_SlotId": -5762650 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "c4b5803e8c2f4d65ab4f294fe361adc1" + }, + "m_SlotId": 1 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "80fce1dbcef04945aa9b988609dbe324" }, "m_SlotId": 0 } @@ -555,7 +272,7 @@ { "m_OutputSlot": { "m_Node": { - "m_Id": "ae95328961414c969e0a0dd7ac9bdb73" + "m_Id": "c4b5803e8c2f4d65ab4f294fe361adc1" }, "m_SlotId": 2 }, @@ -569,57 +286,71 @@ { "m_OutputSlot": { "m_Node": { - "m_Id": "b08614dabfc6474ebee92e0b18d28d4b" + "m_Id": "c4b5803e8c2f4d65ab4f294fe361adc1" }, - "m_SlotId": 0 + "m_SlotId": 3 }, "m_InputSlot": { "m_Node": { - "m_Id": "177b02b8f3b64be1b2f2e7e0055128cb" + "m_Id": "58ee8fea72cc4a649f9a1198b12d621b" }, - "m_SlotId": 1 + "m_SlotId": 0 } }, { "m_OutputSlot": { "m_Node": { - "m_Id": "b83e5bff780742a79344a87ff879965a" + "m_Id": "c4b5803e8c2f4d65ab4f294fe361adc1" }, - "m_SlotId": 0 + "m_SlotId": 4 }, "m_InputSlot": { "m_Node": { - "m_Id": "42b5b42d2e304772a31a535448fded9c" + "m_Id": "53f1bc01113946bc946f0808f16df02b" }, - "m_SlotId": 1 + "m_SlotId": 0 } }, { "m_OutputSlot": { "m_Node": { - "m_Id": "bc1b1f1db2674d2eb92cff962761dad3" + "m_Id": "c4b5803e8c2f4d65ab4f294fe361adc1" }, - "m_SlotId": 0 + "m_SlotId": 5 }, "m_InputSlot": { "m_Node": { - "m_Id": "2a5a6e02ee104d45a3ecc82a5ff7b17c" + "m_Id": "6098dc7f36d84b83b8421cc0e56ed1a0" }, - "m_SlotId": 1 + "m_SlotId": 0 } }, { "m_OutputSlot": { "m_Node": { - "m_Id": "bff080be2f534b5d82990c22e3cc631e" + "m_Id": "c4b5803e8c2f4d65ab4f294fe361adc1" }, - "m_SlotId": 2 + "m_SlotId": 6 }, "m_InputSlot": { "m_Node": { - "m_Id": "91aa9548b6024d17b2b8a4be2770ad97" + "m_Id": "6f683c2eb23a4baf8dc028500640b75a" }, - "m_SlotId": 1 + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "c4b5803e8c2f4d65ab4f294fe361adc1" + }, + "m_SlotId": 7 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "0f64718141f34878916463ec72c9d2d8" + }, + "m_SlotId": 0 } }, { @@ -631,16 +362,16 @@ }, "m_InputSlot": { "m_Node": { - "m_Id": "0ec124cb35be4b22af0a2dfb725df3fd" + "m_Id": "c4b5803e8c2f4d65ab4f294fe361adc1" }, - "m_SlotId": 1 + "m_SlotId": -1532749908 } } ], "m_VertexContext": { "m_Position": { - "x": 0.0, - "y": 0.0 + "x": -0.0000019073486328125, + "y": 0.0000025854387786239387 }, "m_Blocks": [ { @@ -704,46 +435,6 @@ ] } -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", - "m_ObjectId": "0066f90f9bd24aa69c3b20e8c87e10c6", - "m_Id": 5, - "m_DisplayName": "G", - "m_SlotType": 1, - "m_Hidden": false, - "m_ShaderOutputName": "G", - "m_StageCapability": 2, - "m_Value": 0.0, - "m_DefaultValue": 0.0, - "m_Labels": [] -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", - "m_ObjectId": "02acc5a4d1de49f087b1a9268cf423ed", - "m_Id": 0, - "m_DisplayName": "RGBA", - "m_SlotType": 1, - "m_Hidden": false, - "m_ShaderOutputName": "RGBA", - "m_StageCapability": 2, - "m_Value": { - "x": 0.0, - "y": 0.0, - "z": 0.0, - "w": 0.0 - }, - "m_DefaultValue": { - "x": 0.0, - "y": 0.0, - "z": 0.0, - "w": 0.0 - }, - "m_Labels": [] -} - { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Texture2DMaterialSlot", @@ -811,10 +502,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": -830.0000610351563, - "y": -536.666748046875, - "width": 132.0, - "height": 36.0 + "x": -780.0000610351563, + "y": 222.66671752929688, + "width": 132.00006103515626, + "height": 36.000030517578128 } }, "m_Slots": [ @@ -837,110 +528,17 @@ { "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", - "m_ObjectId": "0dfb9947a79047cb9ec4aaa9cc4e3d0f", - "m_Id": 0, - "m_DisplayName": "A", + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "0c6c8839346e4e1085ec68e62b8860e6", + "m_Id": -5762650, + "m_DisplayName": "NormalStrength", "m_SlotType": 0, "m_Hidden": false, - "m_ShaderOutputName": "A", - "m_StageCapability": 3, - "m_Value": { - "e00": 0.0, - "e01": 0.0, - "e02": 0.0, - "e03": 0.0, - "e10": 0.0, - "e11": 0.0, - "e12": 0.0, - "e13": 0.0, - "e20": 0.0, - "e21": 0.0, - "e22": 0.0, - "e23": 0.0, - "e30": 0.0, - "e31": 0.0, - "e32": 0.0, - "e33": 0.0 - }, - "m_DefaultValue": { - "e00": 1.0, - "e01": 0.0, - "e02": 0.0, - "e03": 0.0, - "e10": 0.0, - "e11": 1.0, - "e12": 0.0, - "e13": 0.0, - "e20": 0.0, - "e21": 0.0, - "e22": 1.0, - "e23": 0.0, - "e30": 0.0, - "e31": 0.0, - "e32": 0.0, - "e33": 1.0 - } -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.SampleTexture2DNode", - "m_ObjectId": "0ec124cb35be4b22af0a2dfb725df3fd", - "m_Group": { - "m_Id": "" - }, - "m_Name": "Sample Texture 2D", - "m_DrawState": { - "m_Expanded": true, - "m_Position": { - "serializedVersion": "2", - "x": -634.0, - "y": 1446.6666259765625, - "width": 184.66671752929688, - "height": 254.666748046875 - } - }, - "m_Slots": [ - { - "m_Id": "362985acc7f845c1b9f7b1218298da18" - }, - { - "m_Id": "1ed603dfb0b0451e944135351d8a365c" - }, - { - "m_Id": "82214cd81d964d3d85c2827edfacfe14" - }, - { - "m_Id": "bc0f521c8b5a422682fee09706fe01c2" - }, - { - "m_Id": "ad96a8905a0342aa9a8d4de299ac0597" - }, - { - "m_Id": "600f11bf782744918d280e9924d8a921" - }, - { - "m_Id": "bb835b61b10946b985e60bf0f403d51e" - }, - { - "m_Id": "5c2a18cbde0e45c088c239270ad0949d" - } - ], - "synonyms": [ - "tex2d" - ], - "m_Precision": 0, - "m_PreviewExpanded": false, - "m_DismissedVersion": 0, - "m_PreviewMode": 0, - "m_CustomColors": { - "m_SerializableColors": [] - }, - "m_TextureType": 0, - "m_NormalMapSpace": 1, - "m_EnableGlobalMipBias": true, - "m_MipSamplingMode": 0 + "m_ShaderOutputName": "_NormalStrength", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] } { @@ -958,21 +556,6 @@ "m_Labels": [] } -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", - "m_ObjectId": "0f6262482aaf43a49f4f529e2e26cca2", - "m_Id": 1, - "m_DisplayName": "X", - "m_SlotType": 0, - "m_Hidden": false, - "m_ShaderOutputName": "X", - "m_StageCapability": 3, - "m_Value": 0.0, - "m_DefaultValue": 0.0, - "m_Labels": [] -} - { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.BlockNode", @@ -1009,24 +592,17 @@ { "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.UVMaterialSlot", - "m_ObjectId": "0f8d05511f944456995a00a6ee4ab46b", - "m_Id": 2, - "m_DisplayName": "UV", - "m_SlotType": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "1249bfae131843f0b0f42b05e5cae7f4", + "m_Id": 5, + "m_DisplayName": "Metallic", + "m_SlotType": 1, "m_Hidden": false, - "m_ShaderOutputName": "UV", - "m_StageCapability": 3, - "m_Value": { - "x": 0.0, - "y": 0.0 - }, - "m_DefaultValue": { - "x": 0.0, - "y": 0.0 - }, - "m_Labels": [], - "m_Channel": 0 + "m_ShaderOutputName": "Metallic", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] } { @@ -1085,101 +661,6 @@ "m_SupportVFX": false } -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.SplitNode", - "m_ObjectId": "165e36ddc0554916b7670ae4096eb278", - "m_Group": { - "m_Id": "" - }, - "m_Name": "Split", - "m_DrawState": { - "m_Expanded": true, - "m_Position": { - "serializedVersion": "2", - "x": -676.0000610351563, - "y": -570.0000610351563, - "width": 120.66668701171875, - "height": 150.66668701171876 - } - }, - "m_Slots": [ - { - "m_Id": "fff66f836130425b9e2960dee565ff7c" - }, - { - "m_Id": "21f3f18f29764b8db530bd46f31006c7" - }, - { - "m_Id": "82223ca7dd444f5b9d78b7d481c86991" - }, - { - "m_Id": "49cb90fb03db42cab7848081ad63bf3a" - }, - { - "m_Id": "b6aa5de0dd804752baa437dbf4a528c0" - } - ], - "synonyms": [ - "separate" - ], - "m_Precision": 0, - "m_PreviewExpanded": true, - "m_DismissedVersion": 0, - "m_PreviewMode": 0, - "m_CustomColors": { - "m_SerializableColors": [] - } -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", - "m_ObjectId": "166221f031724c63ad3fad1420b18fe1", - "m_Id": 1, - "m_DisplayName": "B", - "m_SlotType": 0, - "m_Hidden": false, - "m_ShaderOutputName": "B", - "m_StageCapability": 3, - "m_Value": { - "e00": 2.0, - "e01": 2.0, - "e02": 2.0, - "e03": 2.0, - "e10": 2.0, - "e11": 2.0, - "e12": 2.0, - "e13": 2.0, - "e20": 2.0, - "e21": 2.0, - "e22": 2.0, - "e23": 2.0, - "e30": 2.0, - "e31": 2.0, - "e32": 2.0, - "e33": 2.0 - }, - "m_DefaultValue": { - "e00": 1.0, - "e01": 0.0, - "e02": 0.0, - "e03": 0.0, - "e10": 0.0, - "e11": 1.0, - "e12": 0.0, - "e13": 0.0, - "e20": 0.0, - "e21": 0.0, - "e22": 1.0, - "e23": 0.0, - "e30": 0.0, - "e31": 0.0, - "e32": 0.0, - "e33": 1.0 - } -} - { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", @@ -1197,62 +678,40 @@ { "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.SampleTexture2DNode", - "m_ObjectId": "177b02b8f3b64be1b2f2e7e0055128cb", - "m_Group": { - "m_Id": "" + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "17df52ae8460420e81e7503b6d00aaa2", + "m_Id": 3, + "m_DisplayName": "AmbientOcclusion", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "AmbientOcclusion", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", + "m_ObjectId": "18600c0e0b684bd2bde9f99a280013f2", + "m_Id": 7, + "m_DisplayName": "Emission", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Emission", + "m_StageCapability": 2, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 }, - "m_Name": "Sample Texture 2D", - "m_DrawState": { - "m_Expanded": true, - "m_Position": { - "serializedVersion": "2", - "x": -633.9999389648438, - "y": 707.333251953125, - "width": 184.66668701171876, - "height": 254.66668701171876 - } + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 }, - "m_Slots": [ - { - "m_Id": "73dae5af12874f62a0ab55d8d0f86874" - }, - { - "m_Id": "68ec8f2063b9438c9d63bb33ab631b2d" - }, - { - "m_Id": "0066f90f9bd24aa69c3b20e8c87e10c6" - }, - { - "m_Id": "f270ed64ab2f4573bccddd9052f89b45" - }, - { - "m_Id": "f2cd25f551014ea49840fbd04e896d26" - }, - { - "m_Id": "ed7a1bf0296441bb937a9b1e6a9aa0c4" - }, - { - "m_Id": "580cf03335e3466680b45e02c4e8581a" - }, - { - "m_Id": "92d965669cb747908bb948442a355c47" - } - ], - "synonyms": [ - "tex2d" - ], - "m_Precision": 0, - "m_PreviewExpanded": false, - "m_DismissedVersion": 0, - "m_PreviewMode": 0, - "m_CustomColors": { - "m_SerializableColors": [] - }, - "m_TextureType": 0, - "m_NormalMapSpace": 1, - "m_EnableGlobalMipBias": true, - "m_MipSamplingMode": 0 + "m_Labels": [] } { @@ -1267,10 +726,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": -826.666748046875, - "y": 261.3333435058594, - "width": 159.3333740234375, - "height": 35.999969482421878 + "x": -780.0, + "y": 330.666748046875, + "width": 159.33331298828126, + "height": 36.0 } }, "m_Slots": [ @@ -1330,64 +789,6 @@ "m_Space": 0 } -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.MultiplyNode", - "m_ObjectId": "1cb9d3109e954f59889461d6d563c74c", - "m_Group": { - "m_Id": "" - }, - "m_Name": "Multiply", - "m_DrawState": { - "m_Expanded": true, - "m_Position": { - "serializedVersion": "2", - "x": -324.6665954589844, - "y": 834.6666259765625, - "width": 209.33331298828126, - "height": 304.0001220703125 - } - }, - "m_Slots": [ - { - "m_Id": "5d77e11243834cf3a6f2e4fcf96ea6ff" - }, - { - "m_Id": "5b9961219b68470c9e8f957cef52af65" - }, - { - "m_Id": "3342995320024fdcb5e1e70917f28a44" - } - ], - "synonyms": [ - "multiplication", - "times", - "x" - ], - "m_Precision": 0, - "m_PreviewExpanded": true, - "m_DismissedVersion": 0, - "m_PreviewMode": 0, - "m_CustomColors": { - "m_SerializableColors": [] - } -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", - "m_ObjectId": "1ed603dfb0b0451e944135351d8a365c", - "m_Id": 4, - "m_DisplayName": "R", - "m_SlotType": 1, - "m_Hidden": false, - "m_ShaderOutputName": "R", - "m_StageCapability": 2, - "m_Value": 0.0, - "m_DefaultValue": 0.0, - "m_Labels": [] -} - { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.NormalMaterialSlot", @@ -1412,54 +813,6 @@ "m_Space": 3 } -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", - "m_ObjectId": "212accc3030f4e0384e8c4c800750373", - "m_Id": 1, - "m_DisplayName": "B", - "m_SlotType": 0, - "m_Hidden": false, - "m_ShaderOutputName": "B", - "m_StageCapability": 3, - "m_Value": { - "e00": 2.0, - "e01": 2.0, - "e02": 2.0, - "e03": 2.0, - "e10": 2.0, - "e11": 2.0, - "e12": 2.0, - "e13": 2.0, - "e20": 2.0, - "e21": 2.0, - "e22": 2.0, - "e23": 2.0, - "e30": 2.0, - "e31": 2.0, - "e32": 2.0, - "e33": 2.0 - }, - "m_DefaultValue": { - "e00": 1.0, - "e01": 0.0, - "e02": 0.0, - "e03": 0.0, - "e10": 0.0, - "e11": 1.0, - "e12": 0.0, - "e13": 0.0, - "e20": 0.0, - "e21": 0.0, - "e22": 1.0, - "e23": 0.0, - "e30": 0.0, - "e31": 0.0, - "e32": 0.0, - "e33": 1.0 - } -} - { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Internal.Texture2DShaderProperty", @@ -1490,93 +843,6 @@ "m_DefaultType": 4 } -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", - "m_ObjectId": "21f3f18f29764b8db530bd46f31006c7", - "m_Id": 1, - "m_DisplayName": "R", - "m_SlotType": 1, - "m_Hidden": false, - "m_ShaderOutputName": "R", - "m_StageCapability": 3, - "m_Value": 0.0, - "m_DefaultValue": 0.0, - "m_Labels": [] -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", - "m_ObjectId": "23b6100595664ffb9b2af900eb011615", - "m_Id": 2, - "m_DisplayName": "Out", - "m_SlotType": 1, - "m_Hidden": false, - "m_ShaderOutputName": "Out", - "m_StageCapability": 3, - "m_Value": { - "e00": 0.0, - "e01": 0.0, - "e02": 0.0, - "e03": 0.0, - "e10": 0.0, - "e11": 0.0, - "e12": 0.0, - "e13": 0.0, - "e20": 0.0, - "e21": 0.0, - "e22": 0.0, - "e23": 0.0, - "e30": 0.0, - "e31": 0.0, - "e32": 0.0, - "e33": 0.0 - }, - "m_DefaultValue": { - "e00": 1.0, - "e01": 0.0, - "e02": 0.0, - "e03": 0.0, - "e10": 0.0, - "e11": 1.0, - "e12": 0.0, - "e13": 0.0, - "e20": 0.0, - "e21": 0.0, - "e22": 1.0, - "e23": 0.0, - "e30": 0.0, - "e31": 0.0, - "e32": 0.0, - "e33": 1.0 - } -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", - "m_ObjectId": "26b0cc6a64b84c52993d605193516242", - "m_Id": 0, - "m_DisplayName": "A", - "m_SlotType": 0, - "m_Hidden": false, - "m_ShaderOutputName": "A", - "m_StageCapability": 3, - "m_Value": { - "x": 1.0, - "y": 1.0, - "z": 1.0, - "w": 1.0 - }, - "m_DefaultValue": { - "x": 0.0, - "y": 0.0, - "z": 0.0, - "w": 0.0 - } -} - { "m_SGVersion": 1, "m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty", @@ -1607,58 +873,20 @@ { "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.MultiplyNode", - "m_ObjectId": "2a5a6e02ee104d45a3ecc82a5ff7b17c", - "m_Group": { - "m_Id": "" - }, - "m_Name": "Multiply", - "m_DrawState": { - "m_Expanded": true, - "m_Position": { - "serializedVersion": "2", - "x": -324.6665954589844, - "y": -452.0000305175781, - "width": 209.33322143554688, - "height": 304.0000305175781 - } - }, - "m_Slots": [ - { - "m_Id": "85d0d0e7cba94789b07a7f99cdd83648" - }, - { - "m_Id": "212accc3030f4e0384e8c4c800750373" - }, - { - "m_Id": "a752e540f3f040338fda387047382672" - } - ], - "synonyms": [ - "multiplication", - "times", - "x" - ], - "m_Precision": 0, - "m_PreviewExpanded": true, - "m_DismissedVersion": 0, - "m_PreviewMode": 0, - "m_CustomColors": { - "m_SerializableColors": [] - } -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.SamplerStateMaterialSlot", - "m_ObjectId": "2b57ee1b447443b39131b7d7ca5656c4", - "m_Id": 3, - "m_DisplayName": "Sampler", + "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", + "m_ObjectId": "2a90f4f9ee894c98a389095389f44c3e", + "m_Id": 2124990166, + "m_DisplayName": "OcclusionMap", "m_SlotType": 0, "m_Hidden": false, - "m_ShaderOutputName": "Sampler", - "m_StageCapability": 3, - "m_BareResource": false + "m_ShaderOutputName": "_OcclusionMap", + "m_StageCapability": 2, + "m_BareResource": false, + "m_Texture": { + "m_SerializedTexture": "", + "m_Guid": "" + }, + "m_DefaultType": 0 } { @@ -1673,10 +901,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": -828.0, - "y": -409.99993896484377, + "x": -780.0000610351563, + "y": 258.666748046875, "width": 133.33331298828126, - "height": 36.0 + "height": 35.999908447265628 } }, "m_Slots": [ @@ -1731,102 +959,6 @@ "m_SerializedDescriptor": "VertexDescription.Normal" } -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", - "m_ObjectId": "32680074fcd94dcfb904ea7725f3bdf7", - "m_Id": 0, - "m_DisplayName": "In", - "m_SlotType": 0, - "m_Hidden": false, - "m_ShaderOutputName": "In", - "m_StageCapability": 3, - "m_Value": { - "x": 0.0, - "y": 0.0, - "z": 1.0 - }, - "m_DefaultValue": { - "x": 0.0, - "y": 0.0, - "z": 0.0 - }, - "m_Labels": [] -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", - "m_ObjectId": "32aabad897d84b59bff831681715cd30", - "m_Id": 0, - "m_DisplayName": "RGBA", - "m_SlotType": 1, - "m_Hidden": false, - "m_ShaderOutputName": "RGBA", - "m_StageCapability": 2, - "m_Value": { - "x": 0.0, - "y": 0.0, - "z": 0.0, - "w": 0.0 - }, - "m_DefaultValue": { - "x": 0.0, - "y": 0.0, - "z": 0.0, - "w": 0.0 - }, - "m_Labels": [] -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", - "m_ObjectId": "3342995320024fdcb5e1e70917f28a44", - "m_Id": 2, - "m_DisplayName": "Out", - "m_SlotType": 1, - "m_Hidden": false, - "m_ShaderOutputName": "Out", - "m_StageCapability": 3, - "m_Value": { - "e00": 0.0, - "e01": 0.0, - "e02": 0.0, - "e03": 0.0, - "e10": 0.0, - "e11": 0.0, - "e12": 0.0, - "e13": 0.0, - "e20": 0.0, - "e21": 0.0, - "e22": 0.0, - "e23": 0.0, - "e30": 0.0, - "e31": 0.0, - "e32": 0.0, - "e33": 0.0 - }, - "m_DefaultValue": { - "e00": 1.0, - "e01": 0.0, - "e02": 0.0, - "e03": 0.0, - "e10": 0.0, - "e11": 1.0, - "e12": 0.0, - "e13": 0.0, - "e20": 0.0, - "e21": 0.0, - "e22": 1.0, - "e23": 0.0, - "e30": 0.0, - "e31": 0.0, - "e32": 0.0, - "e33": 1.0 - } -} - { "m_SGVersion": 2, "m_Type": "UnityEditor.Rendering.Universal.ShaderGraph.UniversalLitSubTarget", @@ -1837,79 +969,6 @@ "m_BlendModePreserveSpecular": true } -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", - "m_ObjectId": "362985acc7f845c1b9f7b1218298da18", - "m_Id": 0, - "m_DisplayName": "RGBA", - "m_SlotType": 1, - "m_Hidden": false, - "m_ShaderOutputName": "RGBA", - "m_StageCapability": 2, - "m_Value": { - "x": 0.0, - "y": 0.0, - "z": 0.0, - "w": 0.0 - }, - "m_DefaultValue": { - "x": 0.0, - "y": 0.0, - "z": 0.0, - "w": 0.0 - }, - "m_Labels": [] -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", - "m_ObjectId": "38ee4cc0f5934ebb9fc033495c2e25a4", - "m_Id": 2, - "m_DisplayName": "Out", - "m_SlotType": 1, - "m_Hidden": false, - "m_ShaderOutputName": "Out", - "m_StageCapability": 3, - "m_Value": { - "e00": 0.0, - "e01": 0.0, - "e02": 0.0, - "e03": 0.0, - "e10": 0.0, - "e11": 0.0, - "e12": 0.0, - "e13": 0.0, - "e20": 0.0, - "e21": 0.0, - "e22": 0.0, - "e23": 0.0, - "e30": 0.0, - "e31": 0.0, - "e32": 0.0, - "e33": 0.0 - }, - "m_DefaultValue": { - "e00": 1.0, - "e01": 0.0, - "e02": 0.0, - "e03": 0.0, - "e10": 0.0, - "e11": 1.0, - "e12": 0.0, - "e13": 0.0, - "e20": 0.0, - "e21": 0.0, - "e22": 1.0, - "e23": 0.0, - "e30": 0.0, - "e31": 0.0, - "e32": 0.0, - "e33": 1.0 - } -} - { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.PropertyNode", @@ -1922,10 +981,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": -826.666748046875, - "y": 207.33331298828126, - "width": 172.666748046875, - "height": 35.99998474121094 + "x": -780.0, + "y": 294.6667175292969, + "width": 172.66668701171876, + "height": 36.000030517578128 } }, "m_Slots": [ @@ -1948,58 +1007,20 @@ { "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", - "m_ObjectId": "408c7be450e8421abf78f79621f38a90", - "m_Id": 6, - "m_DisplayName": "B", - "m_SlotType": 1, + "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", + "m_ObjectId": "3dbad67e2e2146c8b1a68582b756c2c7", + "m_Id": -1417122351, + "m_DisplayName": "NormalMap", + "m_SlotType": 0, "m_Hidden": false, - "m_ShaderOutputName": "B", + "m_ShaderOutputName": "_NormalMap", "m_StageCapability": 2, - "m_Value": 0.0, - "m_DefaultValue": 0.0, - "m_Labels": [] -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.NormalStrengthNode", - "m_ObjectId": "42b5b42d2e304772a31a535448fded9c", - "m_Group": { - "m_Id": "" + "m_BareResource": false, + "m_Texture": { + "m_SerializedTexture": "", + "m_Guid": "" }, - "m_Name": "Normal Strength", - "m_DrawState": { - "m_Expanded": true, - "m_Position": { - "serializedVersion": "2", - "x": -324.6666259765625, - "y": 1138.6668701171875, - "width": 209.3333740234375, - "height": 303.9998779296875 - } - }, - "m_Slots": [ - { - "m_Id": "32680074fcd94dcfb904ea7725f3bdf7" - }, - { - "m_Id": "4e90ec3f541d453c8ae515b9ae1ecacc" - }, - { - "m_Id": "7a258b7ee50f42959e7e5e1bd2c7631b" - } - ], - "synonyms": [ - "intensity" - ], - "m_Precision": 0, - "m_PreviewExpanded": true, - "m_DismissedVersion": 0, - "m_PreviewMode": 0, - "m_CustomColors": { - "m_SerializableColors": [] - } + "m_DefaultType": 0 } { @@ -2015,6 +1036,21 @@ "m_BareResource": false } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "436e0382b6434d229544f494444c062c", + "m_Id": 1886474450, + "m_DisplayName": "OcclusionStrength", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "_OcclusionStrength", + "m_StageCapability": 2, + "m_Value": 1.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Texture2DMaterialSlot", @@ -2030,237 +1066,20 @@ { "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.SampleTexture2DNode", - "m_ObjectId": "497c741e95244480b7cb6a37a51bb19a", - "m_Group": { - "m_Id": "" - }, - "m_Name": "Sample Texture 2D", - "m_DrawState": { - "m_Expanded": true, - "m_Position": { - "serializedVersion": "2", - "x": -647.3333740234375, - "y": 243.3332977294922, - "width": 184.66665649414063, - "height": 254.6666717529297 - } - }, - "m_Slots": [ - { - "m_Id": "32aabad897d84b59bff831681715cd30" - }, - { - "m_Id": "df89e85942804209a6c5a8542deaaf9a" - }, - { - "m_Id": "c9897d71ed584480b6d4cfa325464e61" - }, - { - "m_Id": "53e3002a7ed54a55b683dc1cc2780d8b" - }, - { - "m_Id": "868f3ba8f7724eb2b5bdb7af8db6b383" - }, - { - "m_Id": "8e5e7a322f89442789657fa3860211f0" - }, - { - "m_Id": "0f8d05511f944456995a00a6ee4ab46b" - }, - { - "m_Id": "c2a858a8ef4b47268a80969c0f02ee0a" - } - ], - "synonyms": [ - "tex2d" - ], - "m_Precision": 0, - "m_PreviewExpanded": false, - "m_DismissedVersion": 0, - "m_PreviewMode": 0, - "m_CustomColors": { - "m_SerializableColors": [] - }, - "m_TextureType": 0, - "m_NormalMapSpace": 1, - "m_EnableGlobalMipBias": true, - "m_MipSamplingMode": 0 -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", - "m_ObjectId": "49cb90fb03db42cab7848081ad63bf3a", - "m_Id": 3, - "m_DisplayName": "B", - "m_SlotType": 1, - "m_Hidden": false, - "m_ShaderOutputName": "B", - "m_StageCapability": 3, - "m_Value": 0.0, - "m_DefaultValue": 0.0, - "m_Labels": [] -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.UVMaterialSlot", - "m_ObjectId": "4c1d0e69fdc7482b9e9587c61e9aee52", - "m_Id": 2, - "m_DisplayName": "UV", + "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", + "m_ObjectId": "4c6ee0f59e3d4afab086ea6501f69c3a", + "m_Id": 725867842, + "m_DisplayName": "BaseMap", "m_SlotType": 0, "m_Hidden": false, - "m_ShaderOutputName": "UV", - "m_StageCapability": 3, - "m_Value": { - "x": 0.0, - "y": 0.0 - }, - "m_DefaultValue": { - "x": 0.0, - "y": 0.0 - }, - "m_Labels": [], - "m_Channel": 0 -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", - "m_ObjectId": "4e90ec3f541d453c8ae515b9ae1ecacc", - "m_Id": 1, - "m_DisplayName": "Strength", - "m_SlotType": 0, - "m_Hidden": false, - "m_ShaderOutputName": "Strength", - "m_StageCapability": 3, - "m_Value": 1.0, - "m_DefaultValue": 1.0, - "m_Labels": [] -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.SampleTexture2DNode", - "m_ObjectId": "4f05aa87bb184723a2d2b15721a0c3e9", - "m_Group": { - "m_Id": "" - }, - "m_Name": "Sample Texture 2D", - "m_DrawState": { - "m_Expanded": true, - "m_Position": { - "serializedVersion": "2", - "x": -633.9999389648438, - "y": 979.3333129882813, - "width": 184.66665649414063, - "height": 254.66668701171876 - } - }, - "m_Slots": [ - { - "m_Id": "6d10127b9d4e4bcfa16626d3ae7ef55e" - }, - { - "m_Id": "b00b5f49f832499283825f4a2cf12f79" - }, - { - "m_Id": "c35266cc646a444b9bd38a748550b8e4" - }, - { - "m_Id": "aeac528b6a2444518362cffca1be05ba" - }, - { - "m_Id": "63a74a0ddc784303b8449630e548ae2c" - }, - { - "m_Id": "a071058625974c08b0932da5861c7128" - }, - { - "m_Id": "9a3a7785b0b44221afd748ed04b0dde6" - }, - { - "m_Id": "7d670b40f8f2468a9af5840562b1c62d" - } - ], - "synonyms": [ - "tex2d" - ], - "m_Precision": 0, - "m_PreviewExpanded": false, - "m_DismissedVersion": 0, - "m_PreviewMode": 0, - "m_CustomColors": { - "m_SerializableColors": [] - }, - "m_TextureType": 1, - "m_NormalMapSpace": 0, - "m_EnableGlobalMipBias": true, - "m_MipSamplingMode": 0 -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", - "m_ObjectId": "4f7bef37b9a04a89a116a5756540a254", - "m_Id": 0, - "m_DisplayName": "A", - "m_SlotType": 0, - "m_Hidden": false, - "m_ShaderOutputName": "A", - "m_StageCapability": 3, - "m_Value": { - "e00": 0.0, - "e01": 0.0, - "e02": 0.0, - "e03": 0.0, - "e10": 0.0, - "e11": 0.0, - "e12": 0.0, - "e13": 0.0, - "e20": 0.0, - "e21": 0.0, - "e22": 0.0, - "e23": 0.0, - "e30": 0.0, - "e31": 0.0, - "e32": 0.0, - "e33": 0.0 - }, - "m_DefaultValue": { - "e00": 1.0, - "e01": 0.0, - "e02": 0.0, - "e03": 0.0, - "e10": 0.0, - "e11": 1.0, - "e12": 0.0, - "e13": 0.0, - "e20": 0.0, - "e21": 0.0, - "e22": 1.0, - "e23": 0.0, - "e30": 0.0, - "e31": 0.0, - "e32": 0.0, - "e33": 1.0 - } -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", - "m_ObjectId": "53e3002a7ed54a55b683dc1cc2780d8b", - "m_Id": 6, - "m_DisplayName": "B", - "m_SlotType": 1, - "m_Hidden": false, - "m_ShaderOutputName": "B", + "m_ShaderOutputName": "_BaseMap", "m_StageCapability": 2, - "m_Value": 0.0, - "m_DefaultValue": 0.0, - "m_Labels": [] + "m_BareResource": false, + "m_Texture": { + "m_SerializedTexture": "", + "m_Guid": "" + }, + "m_DefaultType": 0 } { @@ -2297,28 +1116,6 @@ "m_SerializedDescriptor": "SurfaceDescription.Smoothness" } -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.UVMaterialSlot", - "m_ObjectId": "580cf03335e3466680b45e02c4e8581a", - "m_Id": 2, - "m_DisplayName": "UV", - "m_SlotType": 0, - "m_Hidden": false, - "m_ShaderOutputName": "UV", - "m_StageCapability": 3, - "m_Value": { - "x": 0.0, - "y": 0.0 - }, - "m_DefaultValue": { - "x": 0.0, - "y": 0.0 - }, - "m_Labels": [], - "m_Channel": 0 -} - { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.BlockNode", @@ -2355,111 +1152,83 @@ { "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", - "m_ObjectId": "5b9961219b68470c9e8f957cef52af65", - "m_Id": 1, - "m_DisplayName": "B", + "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", + "m_ObjectId": "5a21e8144c104bb8bfc4dcee87683f45", + "m_Id": -1762040067, + "m_DisplayName": "MetallicRoughnessMap", "m_SlotType": 0, "m_Hidden": false, - "m_ShaderOutputName": "B", - "m_StageCapability": 3, - "m_Value": { - "e00": 2.0, - "e01": 2.0, - "e02": 2.0, - "e03": 2.0, - "e10": 2.0, - "e11": 2.0, - "e12": 2.0, - "e13": 2.0, - "e20": 2.0, - "e21": 2.0, - "e22": 2.0, - "e23": 2.0, - "e30": 2.0, - "e31": 2.0, - "e32": 2.0, - "e33": 2.0 + "m_ShaderOutputName": "_MetallicRoughnessMap", + "m_StageCapability": 2, + "m_BareResource": false, + "m_Texture": { + "m_SerializedTexture": "{\"texture\":{\"fileID\":2800000,\"guid\":\"909670d47b2f55d4a991788acca59d7e\",\"type\":3}}", + "m_Guid": "" }, - "m_DefaultValue": { - "e00": 1.0, - "e01": 0.0, - "e02": 0.0, - "e03": 0.0, - "e10": 0.0, - "e11": 1.0, - "e12": 0.0, - "e13": 0.0, - "e20": 0.0, - "e21": 0.0, - "e22": 1.0, - "e23": 0.0, - "e30": 0.0, - "e31": 0.0, - "e32": 0.0, - "e33": 1.0 - } + "m_DefaultType": 0 } { "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.SamplerStateMaterialSlot", - "m_ObjectId": "5c2a18cbde0e45c088c239270ad0949d", - "m_Id": 3, - "m_DisplayName": "Sampler", - "m_SlotType": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "5a8cf66e7bd645ebab1cdabae75c9000", + "m_Id": 4, + "m_DisplayName": "Smoothness", + "m_SlotType": 1, "m_Hidden": false, - "m_ShaderOutputName": "Sampler", - "m_StageCapability": 3, - "m_BareResource": false + "m_ShaderOutputName": "Smoothness", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] } { "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", - "m_ObjectId": "5d77e11243834cf3a6f2e4fcf96ea6ff", - "m_Id": 0, - "m_DisplayName": "A", + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "5b7f2676365f43f9a78c68c81e6d2225", + "m_Id": 31906282, + "m_DisplayName": "EmissionColor", "m_SlotType": 0, "m_Hidden": false, - "m_ShaderOutputName": "A", - "m_StageCapability": 3, + "m_ShaderOutputName": "_EmissionColor", + "m_StageCapability": 2, "m_Value": { - "e00": 0.0, - "e01": 0.0, - "e02": 0.0, - "e03": 0.0, - "e10": 0.0, - "e11": 0.0, - "e12": 0.0, - "e13": 0.0, - "e20": 0.0, - "e21": 0.0, - "e22": 0.0, - "e23": 0.0, - "e30": 0.0, - "e31": 0.0, - "e32": 0.0, - "e33": 0.0 + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 }, "m_DefaultValue": { - "e00": 1.0, - "e01": 0.0, - "e02": 0.0, - "e03": 0.0, - "e10": 0.0, - "e11": 1.0, - "e12": 0.0, - "e13": 0.0, - "e20": 0.0, - "e21": 0.0, - "e22": 1.0, - "e23": 0.0, - "e30": 0.0, - "e31": 0.0, - "e32": 0.0, - "e33": 1.0 - } + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", + "m_ObjectId": "5cf79a3cb2d74435a5819c596b48662e", + "m_Id": 6, + "m_DisplayName": "Normal", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Normal", + "m_StageCapability": 2, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [] } { @@ -2487,24 +1256,6 @@ "m_Labels": [] } -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", - "m_ObjectId": "600f11bf782744918d280e9924d8a921", - "m_Id": 1, - "m_DisplayName": "Texture", - "m_SlotType": 0, - "m_Hidden": false, - "m_ShaderOutputName": "Texture", - "m_StageCapability": 3, - "m_BareResource": false, - "m_Texture": { - "m_SerializedTexture": "", - "m_Guid": "" - }, - "m_DefaultType": 0 -} - { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.BlockNode", @@ -2551,10 +1302,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": -833.9999389648438, - "y": 1216.0, + "x": -780.0, + "y": 474.6666564941406, "width": 138.0, - "height": 35.9998779296875 + "height": 36.0 } }, "m_Slots": [ @@ -2599,64 +1350,6 @@ "m_Space": 0 } -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.MultiplyNode", - "m_ObjectId": "61ad74e00639449f90b3e8cd5747f9a2", - "m_Group": { - "m_Id": "" - }, - "m_Name": "Multiply", - "m_DrawState": { - "m_Expanded": true, - "m_Position": { - "serializedVersion": "2", - "x": -324.6666564941406, - "y": 1442.6668701171875, - "width": 209.3333740234375, - "height": 303.9998779296875 - } - }, - "m_Slots": [ - { - "m_Id": "8298b050e7144f5c88983ff8a703db19" - }, - { - "m_Id": "f17d8746454e409e891b2a301f143151" - }, - { - "m_Id": "38ee4cc0f5934ebb9fc033495c2e25a4" - } - ], - "synonyms": [ - "multiplication", - "times", - "x" - ], - "m_Precision": 0, - "m_PreviewExpanded": true, - "m_DismissedVersion": 0, - "m_PreviewMode": 0, - "m_CustomColors": { - "m_SerializableColors": [] - } -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", - "m_ObjectId": "63a74a0ddc784303b8449630e548ae2c", - "m_Id": 7, - "m_DisplayName": "A", - "m_SlotType": 1, - "m_Hidden": false, - "m_ShaderOutputName": "A", - "m_StageCapability": 2, - "m_Value": 0.0, - "m_DefaultValue": 0.0, - "m_Labels": [] -} - { "m_SGVersion": 1, "m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty", @@ -2685,81 +1378,6 @@ } } -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.SampleTexture2DNode", - "m_ObjectId": "6637a91f035a40e798e76f70bed17d7e", - "m_Group": { - "m_Id": "" - }, - "m_Name": "Sample Texture 2D", - "m_DrawState": { - "m_Expanded": true, - "m_Position": { - "serializedVersion": "2", - "x": -676.0000610351563, - "y": -410.0000305175781, - "width": 184.6666259765625, - "height": 254.6667022705078 - } - }, - "m_Slots": [ - { - "m_Id": "02acc5a4d1de49f087b1a9268cf423ed" - }, - { - "m_Id": "8057542115c941488ee696e0d023e9d8" - }, - { - "m_Id": "c47fe1183b3b44d1ad66a998fde085f5" - }, - { - "m_Id": "408c7be450e8421abf78f79621f38a90" - }, - { - "m_Id": "70bb30a82355421ca010103090de0f4a" - }, - { - "m_Id": "7aa32b9c5fc74c8088ac31ed5fc87f50" - }, - { - "m_Id": "4c1d0e69fdc7482b9e9587c61e9aee52" - }, - { - "m_Id": "2b57ee1b447443b39131b7d7ca5656c4" - } - ], - "synonyms": [ - "tex2d" - ], - "m_Precision": 0, - "m_PreviewExpanded": false, - "m_DismissedVersion": 0, - "m_PreviewMode": 0, - "m_CustomColors": { - "m_SerializableColors": [] - }, - "m_TextureType": 0, - "m_NormalMapSpace": 1, - "m_EnableGlobalMipBias": true, - "m_MipSamplingMode": 0 -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", - "m_ObjectId": "68ec8f2063b9438c9d63bb33ab631b2d", - "m_Id": 4, - "m_DisplayName": "R", - "m_SlotType": 1, - "m_Hidden": false, - "m_ShaderOutputName": "R", - "m_StageCapability": 2, - "m_Value": 0.0, - "m_DefaultValue": 0.0, - "m_Labels": [] -} - { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Texture2DMaterialSlot", @@ -2803,31 +1421,6 @@ "m_DefaultType": 4 } -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", - "m_ObjectId": "6d10127b9d4e4bcfa16626d3ae7ef55e", - "m_Id": 0, - "m_DisplayName": "RGBA", - "m_SlotType": 1, - "m_Hidden": false, - "m_ShaderOutputName": "RGBA", - "m_StageCapability": 2, - "m_Value": { - "x": 0.0, - "y": 0.0, - "z": 0.0, - "w": 0.0 - }, - "m_DefaultValue": { - "x": 0.0, - "y": 0.0, - "z": 0.0, - "w": 0.0 - }, - "m_Labels": [] -} - { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.BlockNode", @@ -2865,14 +1458,14 @@ { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", - "m_ObjectId": "70bb30a82355421ca010103090de0f4a", - "m_Id": 7, - "m_DisplayName": "A", - "m_SlotType": 1, + "m_ObjectId": "71549300d32e489db50ca24dfdc33b8d", + "m_Id": 1450746048, + "m_DisplayName": "Metallic", + "m_SlotType": 0, "m_Hidden": false, - "m_ShaderOutputName": "A", + "m_ShaderOutputName": "_Metallic", "m_StageCapability": 2, - "m_Value": 0.0, + "m_Value": 1.0, "m_DefaultValue": 0.0, "m_Labels": [] } @@ -2890,31 +1483,6 @@ "m_BareResource": false } -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", - "m_ObjectId": "73dae5af12874f62a0ab55d8d0f86874", - "m_Id": 0, - "m_DisplayName": "RGBA", - "m_SlotType": 1, - "m_Hidden": false, - "m_ShaderOutputName": "RGBA", - "m_StageCapability": 2, - "m_Value": { - "x": 0.0, - "y": 0.0, - "z": 0.0, - "w": 0.0 - }, - "m_DefaultValue": { - "x": 0.0, - "y": 0.0, - "z": 0.0, - "w": 0.0 - }, - "m_Labels": [] -} - { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.PropertyNode", @@ -2927,10 +1495,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": -813.333251953125, - "y": 816.6666259765625, + "x": -779.3333129882813, + "y": 402.66668701171877, "width": 117.33331298828125, - "height": 36.00006103515625 + "height": 36.0 } }, "m_Slots": [ @@ -2981,107 +1549,6 @@ } } -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.MultiplyNode", - "m_ObjectId": "7644e994b4da4282b21650a0f58a3757", - "m_Group": { - "m_Id": "" - }, - "m_Name": "Multiply", - "m_DrawState": { - "m_Expanded": true, - "m_Position": { - "serializedVersion": "2", - "x": -324.6665954589844, - "y": 193.99998474121095, - "width": 209.333251953125, - "height": 304.0 - } - }, - "m_Slots": [ - { - "m_Id": "dae5c5d4ef084500a261fd99b836b8f9" - }, - { - "m_Id": "ceca89b18616453c8f4b71f28bd633f5" - }, - { - "m_Id": "7f82ff7fd35d4ce28f4513fa7a46ac49" - } - ], - "synonyms": [ - "multiplication", - "times", - "x" - ], - "m_Precision": 0, - "m_PreviewExpanded": true, - "m_DismissedVersion": 0, - "m_PreviewMode": 0, - "m_CustomColors": { - "m_SerializableColors": [] - } -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", - "m_ObjectId": "7a258b7ee50f42959e7e5e1bd2c7631b", - "m_Id": 2, - "m_DisplayName": "Out", - "m_SlotType": 1, - "m_Hidden": false, - "m_ShaderOutputName": "Out", - "m_StageCapability": 3, - "m_Value": { - "x": 0.0, - "y": 0.0, - "z": 0.0 - }, - "m_DefaultValue": { - "x": 0.0, - "y": 0.0, - "z": 0.0 - }, - "m_Labels": [] -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", - "m_ObjectId": "7aa32b9c5fc74c8088ac31ed5fc87f50", - "m_Id": 1, - "m_DisplayName": "Texture", - "m_SlotType": 0, - "m_Hidden": false, - "m_ShaderOutputName": "Texture", - "m_StageCapability": 3, - "m_BareResource": false, - "m_Texture": { - "m_SerializedTexture": "", - "m_Guid": "" - }, - "m_DefaultType": 0 -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", - "m_ObjectId": "7b07900736604fa89742489eef62e10a", - "m_Id": 2, - "m_DisplayName": "Y", - "m_SlotType": 0, - "m_Hidden": false, - "m_ShaderOutputName": "Y", - "m_StageCapability": 3, - "m_Value": 0.0, - "m_DefaultValue": 0.0, - "m_Labels": [ - "Y" - ] -} - { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.BlockNode", @@ -3116,82 +1583,6 @@ "m_SerializedDescriptor": "VertexDescription.Tangent" } -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.SamplerStateMaterialSlot", - "m_ObjectId": "7d670b40f8f2468a9af5840562b1c62d", - "m_Id": 3, - "m_DisplayName": "Sampler", - "m_SlotType": 0, - "m_Hidden": false, - "m_ShaderOutputName": "Sampler", - "m_StageCapability": 3, - "m_BareResource": false -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", - "m_ObjectId": "7f82ff7fd35d4ce28f4513fa7a46ac49", - "m_Id": 2, - "m_DisplayName": "Out", - "m_SlotType": 1, - "m_Hidden": false, - "m_ShaderOutputName": "Out", - "m_StageCapability": 3, - "m_Value": { - "e00": 0.0, - "e01": 0.0, - "e02": 0.0, - "e03": 0.0, - "e10": 0.0, - "e11": 0.0, - "e12": 0.0, - "e13": 0.0, - "e20": 0.0, - "e21": 0.0, - "e22": 0.0, - "e23": 0.0, - "e30": 0.0, - "e31": 0.0, - "e32": 0.0, - "e33": 0.0 - }, - "m_DefaultValue": { - "e00": 1.0, - "e01": 0.0, - "e02": 0.0, - "e03": 0.0, - "e10": 0.0, - "e11": 1.0, - "e12": 0.0, - "e13": 0.0, - "e20": 0.0, - "e21": 0.0, - "e22": 1.0, - "e23": 0.0, - "e30": 0.0, - "e31": 0.0, - "e32": 0.0, - "e33": 1.0 - } -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", - "m_ObjectId": "8057542115c941488ee696e0d023e9d8", - "m_Id": 4, - "m_DisplayName": "R", - "m_SlotType": 1, - "m_Hidden": false, - "m_ShaderOutputName": "R", - "m_StageCapability": 2, - "m_Value": 0.0, - "m_DefaultValue": 0.0, - "m_Labels": [] -} - { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.BlockNode", @@ -3226,149 +1617,6 @@ "m_SerializedDescriptor": "SurfaceDescription.BaseColor" } -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", - "m_ObjectId": "82214cd81d964d3d85c2827edfacfe14", - "m_Id": 5, - "m_DisplayName": "G", - "m_SlotType": 1, - "m_Hidden": false, - "m_ShaderOutputName": "G", - "m_StageCapability": 2, - "m_Value": 0.0, - "m_DefaultValue": 0.0, - "m_Labels": [] -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", - "m_ObjectId": "82223ca7dd444f5b9d78b7d481c86991", - "m_Id": 2, - "m_DisplayName": "G", - "m_SlotType": 1, - "m_Hidden": false, - "m_ShaderOutputName": "G", - "m_StageCapability": 3, - "m_Value": 0.0, - "m_DefaultValue": 0.0, - "m_Labels": [] -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", - "m_ObjectId": "827a8a770c064322a7f2aa9cf901cad3", - "m_Id": 3, - "m_DisplayName": "Z", - "m_SlotType": 0, - "m_Hidden": false, - "m_ShaderOutputName": "Z", - "m_StageCapability": 3, - "m_Value": 0.0, - "m_DefaultValue": 0.0, - "m_Labels": [ - "Z" - ] -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", - "m_ObjectId": "8298b050e7144f5c88983ff8a703db19", - "m_Id": 0, - "m_DisplayName": "A", - "m_SlotType": 0, - "m_Hidden": false, - "m_ShaderOutputName": "A", - "m_StageCapability": 3, - "m_Value": { - "e00": 0.0, - "e01": 0.0, - "e02": 0.0, - "e03": 0.0, - "e10": 0.0, - "e11": 0.0, - "e12": 0.0, - "e13": 0.0, - "e20": 0.0, - "e21": 0.0, - "e22": 0.0, - "e23": 0.0, - "e30": 0.0, - "e31": 0.0, - "e32": 0.0, - "e33": 0.0 - }, - "m_DefaultValue": { - "e00": 1.0, - "e01": 0.0, - "e02": 0.0, - "e03": 0.0, - "e10": 0.0, - "e11": 1.0, - "e12": 0.0, - "e13": 0.0, - "e20": 0.0, - "e21": 0.0, - "e22": 1.0, - "e23": 0.0, - "e30": 0.0, - "e31": 0.0, - "e32": 0.0, - "e33": 1.0 - } -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", - "m_ObjectId": "85d0d0e7cba94789b07a7f99cdd83648", - "m_Id": 0, - "m_DisplayName": "A", - "m_SlotType": 0, - "m_Hidden": false, - "m_ShaderOutputName": "A", - "m_StageCapability": 3, - "m_Value": { - "e00": 0.0, - "e01": 0.0, - "e02": 0.0, - "e03": 0.0, - "e10": 0.0, - "e11": 0.0, - "e12": 0.0, - "e13": 0.0, - "e20": 0.0, - "e21": 0.0, - "e22": 0.0, - "e23": 0.0, - "e30": 0.0, - "e31": 0.0, - "e32": 0.0, - "e33": 0.0 - }, - "m_DefaultValue": { - "e00": 1.0, - "e01": 0.0, - "e02": 0.0, - "e03": 0.0, - "e10": 0.0, - "e11": 1.0, - "e12": 0.0, - "e13": 0.0, - "e20": 0.0, - "e21": 0.0, - "e22": 1.0, - "e23": 0.0, - "e30": 0.0, - "e31": 0.0, - "e32": 0.0, - "e33": 1.0 - } -} - { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", @@ -3384,213 +1632,24 @@ "m_Labels": [] } -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", - "m_ObjectId": "868f3ba8f7724eb2b5bdb7af8db6b383", - "m_Id": 7, - "m_DisplayName": "A", - "m_SlotType": 1, - "m_Hidden": false, - "m_ShaderOutputName": "A", - "m_StageCapability": 2, - "m_Value": 0.0, - "m_DefaultValue": 0.0, - "m_Labels": [] -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", - "m_ObjectId": "86bb22958e0547bb9cc968a7ff4eb1b7", - "m_Id": 1, - "m_DisplayName": "B", - "m_SlotType": 0, - "m_Hidden": false, - "m_ShaderOutputName": "B", - "m_StageCapability": 3, - "m_Value": { - "x": 1.0, - "y": 1.0, - "z": 1.0, - "w": 1.0 - }, - "m_DefaultValue": { - "x": 0.0, - "y": 0.0, - "z": 0.0, - "w": 0.0 - } -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", - "m_ObjectId": "8730cfb2eee34a7aaa30bc67b7f03014", - "m_Id": 2, - "m_DisplayName": "Out", - "m_SlotType": 1, - "m_Hidden": false, - "m_ShaderOutputName": "Out", - "m_StageCapability": 3, - "m_Value": { - "x": 0.0, - "y": 0.0, - "z": 0.0, - "w": 0.0 - }, - "m_DefaultValue": { - "x": 0.0, - "y": 0.0, - "z": 0.0, - "w": 0.0 - } -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector3Node", - "m_ObjectId": "8db1c68dfd2946afb8d345a98ddc0889", - "m_Group": { - "m_Id": "" - }, - "m_Name": "Vector 3", - "m_DrawState": { - "m_Expanded": true, - "m_Position": { - "serializedVersion": "2", - "x": -479.3333435058594, - "y": -536.666748046875, - "width": 129.33334350585938, - "height": 126.66671752929688 - } - }, - "m_Slots": [ - { - "m_Id": "98ca5280bf5d46c58a096f1a85ba287f" - }, - { - "m_Id": "7b07900736604fa89742489eef62e10a" - }, - { - "m_Id": "b247daf80bb24d2a85512c9a25bde144" - }, - { - "m_Id": "c10f98a3262e4cff850be19663af3d43" - } - ], - "synonyms": [ - "3", - "v3", - "vec3", - "float3" - ], - "m_Precision": 0, - "m_PreviewExpanded": true, - "m_DismissedVersion": 0, - "m_PreviewMode": 0, - "m_CustomColors": { - "m_SerializableColors": [] - }, - "m_Value": { - "x": 0.0, - "y": 0.0, - "z": 0.0 - } -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", - "m_ObjectId": "8e3b1b83b1f2472facb7e921e188e546", - "m_Id": 2, - "m_DisplayName": "Y", - "m_SlotType": 0, - "m_Hidden": false, - "m_ShaderOutputName": "Y", - "m_StageCapability": 3, - "m_Value": 0.0, - "m_DefaultValue": 0.0, - "m_Labels": [ - "Y" - ] -} - { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", - "m_ObjectId": "8e5e7a322f89442789657fa3860211f0", - "m_Id": 1, - "m_DisplayName": "Texture", + "m_ObjectId": "8a942b1b0a9e4072aaa6ea9cf8bf4730", + "m_Id": -1532749908, + "m_DisplayName": "EmissionMap", "m_SlotType": 0, "m_Hidden": false, - "m_ShaderOutputName": "Texture", - "m_StageCapability": 3, + "m_ShaderOutputName": "_EmissionMap", + "m_StageCapability": 2, "m_BareResource": false, "m_Texture": { - "m_SerializedTexture": "", + "m_SerializedTexture": "{\"texture\":{\"fileID\":2800000,\"guid\":\"09e6225be3a2a43489e11a41cb198377\",\"type\":3}}", "m_Guid": "" }, "m_DefaultType": 0 } -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.SubtractNode", - "m_ObjectId": "91aa9548b6024d17b2b8a4be2770ad97", - "m_Group": { - "m_Id": "" - }, - "m_Name": "Subtract", - "m_DrawState": { - "m_Expanded": true, - "m_Position": { - "serializedVersion": "2", - "x": -324.66668701171877, - "y": 508.00006103515627, - "width": 209.33328247070313, - "height": 303.99993896484377 - } - }, - "m_Slots": [ - { - "m_Id": "26b0cc6a64b84c52993d605193516242" - }, - { - "m_Id": "86bb22958e0547bb9cc968a7ff4eb1b7" - }, - { - "m_Id": "8730cfb2eee34a7aaa30bc67b7f03014" - } - ], - "synonyms": [ - "subtraction", - "remove", - "minus", - "take away" - ], - "m_Precision": 0, - "m_PreviewExpanded": true, - "m_DismissedVersion": 0, - "m_PreviewMode": 0, - "m_CustomColors": { - "m_SerializableColors": [] - } -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.SamplerStateMaterialSlot", - "m_ObjectId": "92d965669cb747908bb948442a355c47", - "m_Id": 3, - "m_DisplayName": "Sampler", - "m_SlotType": 0, - "m_Hidden": false, - "m_ShaderOutputName": "Sampler", - "m_StageCapability": 3, - "m_BareResource": false -} - { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Internal.Texture2DShaderProperty", @@ -3633,9 +1692,9 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": -802.6666259765625, - "y": 1406.666748046875, - "width": 106.66668701171875, + "x": -780.0, + "y": 546.6666259765625, + "width": 152.66668701171876, "height": 36.0 } }, @@ -3657,91 +1716,6 @@ } } -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", - "m_ObjectId": "9512c4f761ea4aaaa2db8e7ec9d7bf37", - "m_Id": 2, - "m_DisplayName": "Out", - "m_SlotType": 1, - "m_Hidden": false, - "m_ShaderOutputName": "Out", - "m_StageCapability": 3, - "m_Value": { - "e00": 0.0, - "e01": 0.0, - "e02": 0.0, - "e03": 0.0, - "e10": 0.0, - "e11": 0.0, - "e12": 0.0, - "e13": 0.0, - "e20": 0.0, - "e21": 0.0, - "e22": 0.0, - "e23": 0.0, - "e30": 0.0, - "e31": 0.0, - "e32": 0.0, - "e33": 0.0 - }, - "m_DefaultValue": { - "e00": 1.0, - "e01": 0.0, - "e02": 0.0, - "e03": 0.0, - "e10": 0.0, - "e11": 1.0, - "e12": 0.0, - "e13": 0.0, - "e20": 0.0, - "e21": 0.0, - "e22": 1.0, - "e23": 0.0, - "e30": 0.0, - "e31": 0.0, - "e32": 0.0, - "e33": 1.0 - } -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", - "m_ObjectId": "98ca5280bf5d46c58a096f1a85ba287f", - "m_Id": 1, - "m_DisplayName": "X", - "m_SlotType": 0, - "m_Hidden": false, - "m_ShaderOutputName": "X", - "m_StageCapability": 3, - "m_Value": 0.0, - "m_DefaultValue": 0.0, - "m_Labels": [] -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.UVMaterialSlot", - "m_ObjectId": "9a3a7785b0b44221afd748ed04b0dde6", - "m_Id": 2, - "m_DisplayName": "UV", - "m_SlotType": 0, - "m_Hidden": false, - "m_ShaderOutputName": "UV", - "m_StageCapability": 3, - "m_Value": { - "x": 0.0, - "y": 0.0 - }, - "m_DefaultValue": { - "x": 0.0, - "y": 0.0 - }, - "m_Labels": [], - "m_Channel": 0 -} - { "m_SGVersion": 3, "m_Type": "UnityEditor.ShaderGraph.Internal.ColorShaderProperty", @@ -3774,20 +1748,27 @@ { "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", - "m_ObjectId": "a071058625974c08b0932da5861c7128", - "m_Id": 1, - "m_DisplayName": "Texture", + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "a564ed2bd0874547a8828688af508894", + "m_Id": -1946006235, + "m_DisplayName": "BaseColor", "m_SlotType": 0, "m_Hidden": false, - "m_ShaderOutputName": "Texture", - "m_StageCapability": 3, - "m_BareResource": false, - "m_Texture": { - "m_SerializedTexture": "", - "m_Guid": "" + "m_ShaderOutputName": "_BaseColor", + "m_StageCapability": 2, + "m_Value": { + "x": 1.0, + "y": 1.0, + "z": 1.0, + "w": 0.0 }, - "m_DefaultType": 3 + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_Labels": [] } { @@ -3802,10 +1783,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": -829.9999389648438, - "y": 702.6666259765625, + "x": -779.3333129882813, + "y": 366.66668701171877, "width": 134.0, - "height": 36.00006103515625 + "height": 36.0 } }, "m_Slots": [ @@ -3826,54 +1807,6 @@ } } -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", - "m_ObjectId": "a752e540f3f040338fda387047382672", - "m_Id": 2, - "m_DisplayName": "Out", - "m_SlotType": 1, - "m_Hidden": false, - "m_ShaderOutputName": "Out", - "m_StageCapability": 3, - "m_Value": { - "e00": 0.0, - "e01": 0.0, - "e02": 0.0, - "e03": 0.0, - "e10": 0.0, - "e11": 0.0, - "e12": 0.0, - "e13": 0.0, - "e20": 0.0, - "e21": 0.0, - "e22": 0.0, - "e23": 0.0, - "e30": 0.0, - "e31": 0.0, - "e32": 0.0, - "e33": 0.0 - }, - "m_DefaultValue": { - "e00": 1.0, - "e01": 0.0, - "e02": 0.0, - "e03": 0.0, - "e10": 0.0, - "e11": 1.0, - "e12": 0.0, - "e13": 0.0, - "e20": 0.0, - "e21": 0.0, - "e22": 1.0, - "e23": 0.0, - "e30": 0.0, - "e31": 0.0, - "e32": 0.0, - "e33": 1.0 - } -} - { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.ColorRGBMaterialSlot", @@ -3919,94 +1852,6 @@ "m_Labels": [] } -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", - "m_ObjectId": "ad96a8905a0342aa9a8d4de299ac0597", - "m_Id": 7, - "m_DisplayName": "A", - "m_SlotType": 1, - "m_Hidden": false, - "m_ShaderOutputName": "A", - "m_StageCapability": 2, - "m_Value": 0.0, - "m_DefaultValue": 0.0, - "m_Labels": [] -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.MultiplyNode", - "m_ObjectId": "ae95328961414c969e0a0dd7ac9bdb73", - "m_Group": { - "m_Id": "" - }, - "m_Name": "Multiply", - "m_DrawState": { - "m_Expanded": true, - "m_Position": { - "serializedVersion": "2", - "x": -324.6665954589844, - "y": -128.0, - "width": 209.33322143554688, - "height": 304.0 - } - }, - "m_Slots": [ - { - "m_Id": "0dfb9947a79047cb9ec4aaa9cc4e3d0f" - }, - { - "m_Id": "166221f031724c63ad3fad1420b18fe1" - }, - { - "m_Id": "23b6100595664ffb9b2af900eb011615" - } - ], - "synonyms": [ - "multiplication", - "times", - "x" - ], - "m_Precision": 0, - "m_PreviewExpanded": true, - "m_DismissedVersion": 0, - "m_PreviewMode": 0, - "m_CustomColors": { - "m_SerializableColors": [] - } -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", - "m_ObjectId": "aeac528b6a2444518362cffca1be05ba", - "m_Id": 6, - "m_DisplayName": "B", - "m_SlotType": 1, - "m_Hidden": false, - "m_ShaderOutputName": "B", - "m_StageCapability": 2, - "m_Value": 0.0, - "m_DefaultValue": 0.0, - "m_Labels": [] -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", - "m_ObjectId": "b00b5f49f832499283825f4a2cf12f79", - "m_Id": 4, - "m_DisplayName": "R", - "m_SlotType": 1, - "m_Hidden": false, - "m_ShaderOutputName": "R", - "m_StageCapability": 2, - "m_Value": 0.0, - "m_DefaultValue": 0.0, - "m_Labels": [] -} - { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.PropertyNode", @@ -4019,10 +1864,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": -901.9999389648438, - "y": 738.6666870117188, + "x": -779.3333129882813, + "y": 438.66668701171877, "width": 206.0, - "height": 35.9998779296875 + "height": 35.999969482421878 } }, "m_Slots": [ @@ -4043,38 +1888,6 @@ } } -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", - "m_ObjectId": "b247daf80bb24d2a85512c9a25bde144", - "m_Id": 3, - "m_DisplayName": "Z", - "m_SlotType": 0, - "m_Hidden": false, - "m_ShaderOutputName": "Z", - "m_StageCapability": 3, - "m_Value": 0.0, - "m_DefaultValue": 0.0, - "m_Labels": [ - "Z" - ] -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", - "m_ObjectId": "b6aa5de0dd804752baa437dbf4a528c0", - "m_Id": 4, - "m_DisplayName": "A", - "m_SlotType": 1, - "m_Hidden": false, - "m_ShaderOutputName": "A", - "m_StageCapability": 3, - "m_Value": 0.0, - "m_DefaultValue": 0.0, - "m_Labels": [] -} - { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.PropertyNode", @@ -4087,10 +1900,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": -830.6666259765625, - "y": 1260.6666259765625, - "width": 134.66668701171876, - "height": 36.0 + "x": -779.3333129882813, + "y": 510.6666564941406, + "width": 134.6666259765625, + "height": 35.999969482421878 } }, "m_Slots": [ @@ -4113,200 +1926,115 @@ { "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.UVMaterialSlot", - "m_ObjectId": "bb835b61b10946b985e60bf0f403d51e", - "m_Id": 2, - "m_DisplayName": "UV", - "m_SlotType": 0, - "m_Hidden": false, - "m_ShaderOutputName": "UV", - "m_StageCapability": 3, - "m_Value": { - "x": 0.0, - "y": 0.0 - }, - "m_DefaultValue": { - "x": 0.0, - "y": 0.0 - }, - "m_Labels": [], - "m_Channel": 0 -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", - "m_ObjectId": "bc0f521c8b5a422682fee09706fe01c2", - "m_Id": 6, - "m_DisplayName": "B", - "m_SlotType": 1, - "m_Hidden": false, - "m_ShaderOutputName": "B", - "m_StageCapability": 2, - "m_Value": 0.0, - "m_DefaultValue": 0.0, - "m_Labels": [] -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector3Node", - "m_ObjectId": "bc1b1f1db2674d2eb92cff962761dad3", + "m_Type": "UnityEditor.ShaderGraph.SubGraphNode", + "m_ObjectId": "c4b5803e8c2f4d65ab4f294fe361adc1", "m_Group": { "m_Id": "" }, - "m_Name": "Vector 3", + "m_Name": "TinyPbr", "m_DrawState": { "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": -479.3333435058594, - "y": -391.99993896484377, - "width": 129.33331298828126, - "height": 126.66668701171875 + "x": -393.33331298828127, + "y": 198.00001525878907, + "width": 302.6667175292969, + "height": 521.333251953125 } }, "m_Slots": [ { - "m_Id": "0f6262482aaf43a49f4f529e2e26cca2" + "m_Id": "a564ed2bd0874547a8828688af508894" }, { - "m_Id": "8e3b1b83b1f2472facb7e921e188e546" + "m_Id": "4c6ee0f59e3d4afab086ea6501f69c3a" }, { - "m_Id": "827a8a770c064322a7f2aa9cf901cad3" + "m_Id": "436e0382b6434d229544f494444c062c" }, { - "m_Id": "e27f6627b19f4372bfcf798965a0b49a" + "m_Id": "2a90f4f9ee894c98a389095389f44c3e" + }, + { + "m_Id": "e043d33275ff4d788159fbf72c08a661" + }, + { + "m_Id": "71549300d32e489db50ca24dfdc33b8d" + }, + { + "m_Id": "5a21e8144c104bb8bfc4dcee87683f45" + }, + { + "m_Id": "3dbad67e2e2146c8b1a68582b756c2c7" + }, + { + "m_Id": "0c6c8839346e4e1085ec68e62b8860e6" + }, + { + "m_Id": "5b7f2676365f43f9a78c68c81e6d2225" + }, + { + "m_Id": "8a942b1b0a9e4072aaa6ea9cf8bf4730" + }, + { + "m_Id": "f2093c0d46b3489f85b385fd8422f230" + }, + { + "m_Id": "e758d7cb528f4d5d9fefce8c56e0630d" + }, + { + "m_Id": "17df52ae8460420e81e7503b6d00aaa2" + }, + { + "m_Id": "5a8cf66e7bd645ebab1cdabae75c9000" + }, + { + "m_Id": "1249bfae131843f0b0f42b05e5cae7f4" + }, + { + "m_Id": "5cf79a3cb2d74435a5819c596b48662e" + }, + { + "m_Id": "18600c0e0b684bd2bde9f99a280013f2" } ], - "synonyms": [ - "3", - "v3", - "vec3", - "float3" - ], - "m_Precision": 0, - "m_PreviewExpanded": true, - "m_DismissedVersion": 0, - "m_PreviewMode": 0, - "m_CustomColors": { - "m_SerializableColors": [] - }, - "m_Value": { - "x": 0.0, - "y": 0.0, - "z": 0.0 - } -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.MultiplyNode", - "m_ObjectId": "bff080be2f534b5d82990c22e3cc631e", - "m_Group": { - "m_Id": "" - }, - "m_Name": "Multiply", - "m_DrawState": { - "m_Expanded": true, - "m_Position": { - "serializedVersion": "2", - "x": -530.0000610351563, - "y": 546.0000610351563, - "width": 127.3333740234375, - "height": 120.0 - } - }, - "m_Slots": [ - { - "m_Id": "4f7bef37b9a04a89a116a5756540a254" - }, - { - "m_Id": "e96a61a3df77424ea29af5a57479b600" - }, - { - "m_Id": "9512c4f761ea4aaaa2db8e7ec9d7bf37" - } - ], - "synonyms": [ - "multiplication", - "times", - "x" - ], + "synonyms": [], "m_Precision": 0, "m_PreviewExpanded": false, "m_DismissedVersion": 0, "m_PreviewMode": 0, "m_CustomColors": { "m_SerializableColors": [] - } -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", - "m_ObjectId": "c10f98a3262e4cff850be19663af3d43", - "m_Id": 0, - "m_DisplayName": "Out", - "m_SlotType": 1, - "m_Hidden": false, - "m_ShaderOutputName": "Out", - "m_StageCapability": 3, - "m_Value": { - "x": 0.0, - "y": 0.0, - "z": 0.0 }, - "m_DefaultValue": { - "x": 0.0, - "y": 0.0, - "z": 0.0 - }, - "m_Labels": [] -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.SamplerStateMaterialSlot", - "m_ObjectId": "c2a858a8ef4b47268a80969c0f02ee0a", - "m_Id": 3, - "m_DisplayName": "Sampler", - "m_SlotType": 0, - "m_Hidden": false, - "m_ShaderOutputName": "Sampler", - "m_StageCapability": 3, - "m_BareResource": false -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", - "m_ObjectId": "c35266cc646a444b9bd38a748550b8e4", - "m_Id": 5, - "m_DisplayName": "G", - "m_SlotType": 1, - "m_Hidden": false, - "m_ShaderOutputName": "G", - "m_StageCapability": 2, - "m_Value": 0.0, - "m_DefaultValue": 0.0, - "m_Labels": [] -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", - "m_ObjectId": "c47fe1183b3b44d1ad66a998fde085f5", - "m_Id": 5, - "m_DisplayName": "G", - "m_SlotType": 1, - "m_Hidden": false, - "m_ShaderOutputName": "G", - "m_StageCapability": 2, - "m_Value": 0.0, - "m_DefaultValue": 0.0, - "m_Labels": [] + "m_SerializedSubGraph": "{\n \"subGraph\": {\n \"fileID\": -5475051401550479605,\n \"guid\": \"2fe3270edce96f4438a6dcc501a8c5cd\",\n \"type\": 3\n }\n}", + "m_PropertyGuids": [ + "b78d6b8b-b348-4425-8b4e-41096ddbeb76", + "13da451d-5e09-4040-8b64-ceb8dda217c0", + "7158af0f-43b5-4192-8219-b5dceaa50e9c", + "3c367e55-9fb2-480b-bea6-22ae8f81b7a4", + "f752957a-ec1a-4574-8fac-9b1b9dc26de0", + "973fb1a8-0148-4447-9bfe-a520bbeea5a5", + "bc3d4243-09da-46a4-9dc6-0c47f9eb6c2b", + "faa5e58d-2520-4f65-9d9f-7fd1e13237cf", + "d703b665-c68c-4723-b0fe-9322ff9f1b4d", + "bf455d07-d15f-40c3-96b7-f94d24e299b3", + "d9244f52-772a-4de5-aeb8-8d877a97e8b7" + ], + "m_PropertyIds": [ + -1946006235, + 725867842, + 1886474450, + 2124990166, + 1238374258, + 1450746048, + -1762040067, + -1417122351, + -5762650, + 31906282, + -1532749908 + ], + "m_Dropdowns": [], + "m_DropdownSelectedEntries": [] } { @@ -4354,21 +2082,6 @@ "m_Labels": [] } -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", - "m_ObjectId": "c9897d71ed584480b6d4cfa325464e61", - "m_Id": 5, - "m_DisplayName": "G", - "m_SlotType": 1, - "m_Hidden": false, - "m_ShaderOutputName": "G", - "m_StageCapability": 2, - "m_Value": 0.0, - "m_DefaultValue": 0.0, - "m_Labels": [] -} - { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", @@ -4384,54 +2097,6 @@ "m_Labels": [] } -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", - "m_ObjectId": "ceca89b18616453c8f4b71f28bd633f5", - "m_Id": 1, - "m_DisplayName": "B", - "m_SlotType": 0, - "m_Hidden": false, - "m_ShaderOutputName": "B", - "m_StageCapability": 3, - "m_Value": { - "e00": 2.0, - "e01": 2.0, - "e02": 2.0, - "e03": 2.0, - "e10": 2.0, - "e11": 2.0, - "e12": 2.0, - "e13": 2.0, - "e20": 2.0, - "e21": 2.0, - "e22": 2.0, - "e23": 2.0, - "e30": 2.0, - "e31": 2.0, - "e32": 2.0, - "e33": 2.0 - }, - "m_DefaultValue": { - "e00": 1.0, - "e01": 0.0, - "e02": 0.0, - "e03": 0.0, - "e10": 0.0, - "e11": 1.0, - "e12": 0.0, - "e13": 0.0, - "e20": 0.0, - "e21": 0.0, - "e22": 1.0, - "e23": 0.0, - "e30": 0.0, - "e31": 0.0, - "e32": 0.0, - "e33": 1.0 - } -} - { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Internal.Texture2DShaderProperty", @@ -4462,54 +2127,6 @@ "m_DefaultType": 3 } -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", - "m_ObjectId": "dae5c5d4ef084500a261fd99b836b8f9", - "m_Id": 0, - "m_DisplayName": "A", - "m_SlotType": 0, - "m_Hidden": false, - "m_ShaderOutputName": "A", - "m_StageCapability": 3, - "m_Value": { - "e00": 0.0, - "e01": 0.0, - "e02": 0.0, - "e03": 0.0, - "e10": 0.0, - "e11": 0.0, - "e12": 0.0, - "e13": 0.0, - "e20": 0.0, - "e21": 0.0, - "e22": 0.0, - "e23": 0.0, - "e30": 0.0, - "e31": 0.0, - "e32": 0.0, - "e33": 0.0 - }, - "m_DefaultValue": { - "e00": 1.0, - "e01": 0.0, - "e02": 0.0, - "e03": 0.0, - "e10": 0.0, - "e11": 1.0, - "e12": 0.0, - "e13": 0.0, - "e20": 0.0, - "e21": 0.0, - "e22": 1.0, - "e23": 0.0, - "e30": 0.0, - "e31": 0.0, - "e32": 0.0, - "e33": 1.0 - } -} - { "m_SGVersion": 3, "m_Type": "UnityEditor.ShaderGraph.Internal.ColorShaderProperty", @@ -4543,12 +2160,12 @@ { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", - "m_ObjectId": "df89e85942804209a6c5a8542deaaf9a", - "m_Id": 4, - "m_DisplayName": "R", - "m_SlotType": 1, + "m_ObjectId": "e043d33275ff4d788159fbf72c08a661", + "m_Id": 1238374258, + "m_DisplayName": "Roughness", + "m_SlotType": 0, "m_Hidden": false, - "m_ShaderOutputName": "R", + "m_ShaderOutputName": "_Roughness", "m_StageCapability": 2, "m_Value": 0.0, "m_DefaultValue": 0.0, @@ -4581,24 +2198,16 @@ { "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", - "m_ObjectId": "e27f6627b19f4372bfcf798965a0b49a", - "m_Id": 0, - "m_DisplayName": "Out", + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "e758d7cb528f4d5d9fefce8c56e0630d", + "m_Id": 2, + "m_DisplayName": "Alpha", "m_SlotType": 1, "m_Hidden": false, - "m_ShaderOutputName": "Out", - "m_StageCapability": 3, - "m_Value": { - "x": 0.0, - "y": 0.0, - "z": 0.0 - }, - "m_DefaultValue": { - "x": 0.0, - "y": 0.0, - "z": 0.0 - }, + "m_ShaderOutputName": "Alpha", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, "m_Labels": [] } @@ -4617,72 +2226,6 @@ "m_Labels": [] } -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", - "m_ObjectId": "e96a61a3df77424ea29af5a57479b600", - "m_Id": 1, - "m_DisplayName": "B", - "m_SlotType": 0, - "m_Hidden": false, - "m_ShaderOutputName": "B", - "m_StageCapability": 3, - "m_Value": { - "e00": 2.0, - "e01": 2.0, - "e02": 2.0, - "e03": 2.0, - "e10": 2.0, - "e11": 2.0, - "e12": 2.0, - "e13": 2.0, - "e20": 2.0, - "e21": 2.0, - "e22": 2.0, - "e23": 2.0, - "e30": 2.0, - "e31": 2.0, - "e32": 2.0, - "e33": 2.0 - }, - "m_DefaultValue": { - "e00": 1.0, - "e01": 0.0, - "e02": 0.0, - "e03": 0.0, - "e10": 0.0, - "e11": 1.0, - "e12": 0.0, - "e13": 0.0, - "e20": 0.0, - "e21": 0.0, - "e22": 1.0, - "e23": 0.0, - "e30": 0.0, - "e31": 0.0, - "e32": 0.0, - "e33": 1.0 - } -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", - "m_ObjectId": "ed7a1bf0296441bb937a9b1e6a9aa0c4", - "m_Id": 1, - "m_DisplayName": "Texture", - "m_SlotType": 0, - "m_Hidden": false, - "m_ShaderOutputName": "Texture", - "m_StageCapability": 3, - "m_BareResource": false, - "m_Texture": { - "m_SerializedTexture": "", - "m_Guid": "" - }, - "m_DefaultType": 0 -} - { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", @@ -4710,79 +2253,24 @@ { "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", - "m_ObjectId": "f17d8746454e409e891b2a301f143151", + "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", + "m_ObjectId": "f2093c0d46b3489f85b385fd8422f230", "m_Id": 1, - "m_DisplayName": "B", - "m_SlotType": 0, + "m_DisplayName": "BaseColor", + "m_SlotType": 1, "m_Hidden": false, - "m_ShaderOutputName": "B", - "m_StageCapability": 3, + "m_ShaderOutputName": "BaseColor", + "m_StageCapability": 2, "m_Value": { - "e00": 2.0, - "e01": 2.0, - "e02": 2.0, - "e03": 2.0, - "e10": 2.0, - "e11": 2.0, - "e12": 2.0, - "e13": 2.0, - "e20": 2.0, - "e21": 2.0, - "e22": 2.0, - "e23": 2.0, - "e30": 2.0, - "e31": 2.0, - "e32": 2.0, - "e33": 2.0 + "x": 0.0, + "y": 0.0, + "z": 0.0 }, "m_DefaultValue": { - "e00": 1.0, - "e01": 0.0, - "e02": 0.0, - "e03": 0.0, - "e10": 0.0, - "e11": 1.0, - "e12": 0.0, - "e13": 0.0, - "e20": 0.0, - "e21": 0.0, - "e22": 1.0, - "e23": 0.0, - "e30": 0.0, - "e31": 0.0, - "e32": 0.0, - "e33": 1.0 - } -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", - "m_ObjectId": "f270ed64ab2f4573bccddd9052f89b45", - "m_Id": 6, - "m_DisplayName": "B", - "m_SlotType": 1, - "m_Hidden": false, - "m_ShaderOutputName": "B", - "m_StageCapability": 2, - "m_Value": 0.0, - "m_DefaultValue": 0.0, - "m_Labels": [] -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", - "m_ObjectId": "f2cd25f551014ea49840fbd04e896d26", - "m_Id": 7, - "m_DisplayName": "A", - "m_SlotType": 1, - "m_Hidden": false, - "m_ShaderOutputName": "A", - "m_StageCapability": 2, - "m_Value": 0.0, - "m_DefaultValue": 0.0, + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, "m_Labels": [] } @@ -4798,10 +2286,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": -835.9999389648438, - "y": 1446.6666259765625, - "width": 140.0, - "height": 36.0 + "x": -779.3333129882813, + "y": 582.6666259765625, + "width": 154.0, + "height": 35.99993896484375 } }, "m_Slots": [ @@ -4912,27 +2400,3 @@ } } -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", - "m_ObjectId": "fff66f836130425b9e2960dee565ff7c", - "m_Id": 0, - "m_DisplayName": "In", - "m_SlotType": 0, - "m_Hidden": false, - "m_ShaderOutputName": "In", - "m_StageCapability": 3, - "m_Value": { - "x": 0.0, - "y": 0.0, - "z": 0.0, - "w": 0.0 - }, - "m_DefaultValue": { - "x": 0.0, - "y": 0.0, - "z": 0.0, - "w": 0.0 - } -} - diff --git a/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyPbrOpaque.shadergraph b/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyPbrOpaque.shadergraph index 2156b977d..80631d754 100644 --- a/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyPbrOpaque.shadergraph +++ b/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyPbrOpaque.shadergraph @@ -78,78 +78,12 @@ { "m_Id": "58ee8fea72cc4a649f9a1198b12d621b" }, - { - "m_Id": "6637a91f035a40e798e76f70bed17d7e" - }, { "m_Id": "305a571d629e4b258d80c3ad877cb596" }, { "m_Id": "0b94be19d37c4268b363243bac818ac4" }, - { - "m_Id": "bc1b1f1db2674d2eb92cff962761dad3" - }, - { - "m_Id": "2a5a6e02ee104d45a3ecc82a5ff7b17c" - }, - { - "m_Id": "7644e994b4da4282b21650a0f58a3757" - }, - { - "m_Id": "497c741e95244480b7cb6a37a51bb19a" - }, - { - "m_Id": "3be41b6b511d440c94c29229f4a7bdc2" - }, - { - "m_Id": "19964d5b976e467eb1b4a7f544bf3fef" - }, - { - "m_Id": "1cb9d3109e954f59889461d6d563c74c" - }, - { - "m_Id": "bff080be2f534b5d82990c22e3cc631e" - }, - { - "m_Id": "91aa9548b6024d17b2b8a4be2770ad97" - }, - { - "m_Id": "177b02b8f3b64be1b2f2e7e0055128cb" - }, - { - "m_Id": "b08614dabfc6474ebee92e0b18d28d4b" - }, - { - "m_Id": "a60bd914ad7646698bb7f9c25f78f88d" - }, - { - "m_Id": "73efafc771664c7b8a4e4b9e58a6e868" - }, - { - "m_Id": "42b5b42d2e304772a31a535448fded9c" - }, - { - "m_Id": "4f05aa87bb184723a2d2b15721a0c3e9" - }, - { - "m_Id": "b83e5bff780742a79344a87ff879965a" - }, - { - "m_Id": "609f313b8b6f4ee8a871650dc611dc0c" - }, - { - "m_Id": "61ad74e00639449f90b3e8cd5747f9a2" - }, - { - "m_Id": "0ec124cb35be4b22af0a2dfb725df3fd" - }, - { - "m_Id": "94fe3f50fd0c4ce3a036c672b2d71557" - }, - { - "m_Id": "f36558b3ef9547e295ba8c189a69b79a" - }, { "m_Id": "307a96558a0a40ada3c66e2e38e269ca" }, @@ -164,6 +98,36 @@ }, { "m_Id": "855308f399fb4f71bc6584937719e851" + }, + { + "m_Id": "1e162640c7ea4f02a44faef8732559e8" + }, + { + "m_Id": "d5f8db7848d34ac4bc2e47bc9700b02a" + }, + { + "m_Id": "33606465eada4266a951965cdf693f21" + }, + { + "m_Id": "50fe60e87d4f472498833c46009df4a8" + }, + { + "m_Id": "eec810392601496bbf30d0e04d1c9e5a" + }, + { + "m_Id": "5e4f7e8b13d74b199e4ff6492563b050" + }, + { + "m_Id": "4744eaae41cb4d9f811203331937ee9f" + }, + { + "m_Id": "7b8e47a4830c4b53bedc6975dad31b72" + }, + { + "m_Id": "fa61ad0af8f743998cdb12dfea31d6a6" + }, + { + "m_Id": "48e90b86f7234c9d9a0ad4e07784efa2" } ], "m_GroupDatas": [], @@ -178,7 +142,21 @@ }, "m_InputSlot": { "m_Node": { - "m_Id": "2a5a6e02ee104d45a3ecc82a5ff7b17c" + "m_Id": "1e162640c7ea4f02a44faef8732559e8" + }, + "m_SlotId": -1946006235 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "1e162640c7ea4f02a44faef8732559e8" + }, + "m_SlotId": 1 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "80fce1dbcef04945aa9b988609dbe324" }, "m_SlotId": 0 } @@ -186,66 +164,52 @@ { "m_OutputSlot": { "m_Node": { - "m_Id": "0ec124cb35be4b22af0a2dfb725df3fd" - }, - "m_SlotId": 0 - }, - "m_InputSlot": { - "m_Node": { - "m_Id": "61ad74e00639449f90b3e8cd5747f9a2" - }, - "m_SlotId": 1 - } - }, - { - "m_OutputSlot": { - "m_Node": { - "m_Id": "177b02b8f3b64be1b2f2e7e0055128cb" - }, - "m_SlotId": 5 - }, - "m_InputSlot": { - "m_Node": { - "m_Id": "bff080be2f534b5d82990c22e3cc631e" - }, - "m_SlotId": 1 - } - }, - { - "m_OutputSlot": { - "m_Node": { - "m_Id": "177b02b8f3b64be1b2f2e7e0055128cb" - }, - "m_SlotId": 6 - }, - "m_InputSlot": { - "m_Node": { - "m_Id": "1cb9d3109e954f59889461d6d563c74c" - }, - "m_SlotId": 1 - } - }, - { - "m_OutputSlot": { - "m_Node": { - "m_Id": "19964d5b976e467eb1b4a7f544bf3fef" - }, - "m_SlotId": 0 - }, - "m_InputSlot": { - "m_Node": { - "m_Id": "497c741e95244480b7cb6a37a51bb19a" - }, - "m_SlotId": 1 - } - }, - { - "m_OutputSlot": { - "m_Node": { - "m_Id": "1cb9d3109e954f59889461d6d563c74c" + "m_Id": "1e162640c7ea4f02a44faef8732559e8" }, "m_SlotId": 2 }, + "m_InputSlot": { + "m_Node": { + "m_Id": "307a96558a0a40ada3c66e2e38e269ca" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "1e162640c7ea4f02a44faef8732559e8" + }, + "m_SlotId": 3 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "58ee8fea72cc4a649f9a1198b12d621b" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "1e162640c7ea4f02a44faef8732559e8" + }, + "m_SlotId": 4 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "53f1bc01113946bc946f0808f16df02b" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "1e162640c7ea4f02a44faef8732559e8" + }, + "m_SlotId": 5 + }, "m_InputSlot": { "m_Node": { "m_Id": "6098dc7f36d84b83b8421cc0e56ed1a0" @@ -256,13 +220,27 @@ { "m_OutputSlot": { "m_Node": { - "m_Id": "2a5a6e02ee104d45a3ecc82a5ff7b17c" + "m_Id": "1e162640c7ea4f02a44faef8732559e8" }, - "m_SlotId": 2 + "m_SlotId": 6 }, "m_InputSlot": { "m_Node": { - "m_Id": "80fce1dbcef04945aa9b988609dbe324" + "m_Id": "6f683c2eb23a4baf8dc028500640b75a" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "1e162640c7ea4f02a44faef8732559e8" + }, + "m_SlotId": 7 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "0f64718141f34878916463ec72c9d2d8" }, "m_SlotId": 0 } @@ -276,149 +254,79 @@ }, "m_InputSlot": { "m_Node": { - "m_Id": "6637a91f035a40e798e76f70bed17d7e" + "m_Id": "1e162640c7ea4f02a44faef8732559e8" }, - "m_SlotId": 1 + "m_SlotId": 725867842 } }, { "m_OutputSlot": { "m_Node": { - "m_Id": "3be41b6b511d440c94c29229f4a7bdc2" + "m_Id": "33606465eada4266a951965cdf693f21" }, "m_SlotId": 0 }, "m_InputSlot": { "m_Node": { - "m_Id": "7644e994b4da4282b21650a0f58a3757" + "m_Id": "1e162640c7ea4f02a44faef8732559e8" }, - "m_SlotId": 0 + "m_SlotId": 2124990166 } }, { "m_OutputSlot": { "m_Node": { - "m_Id": "42b5b42d2e304772a31a535448fded9c" - }, - "m_SlotId": 2 - }, - "m_InputSlot": { - "m_Node": { - "m_Id": "6f683c2eb23a4baf8dc028500640b75a" - }, - "m_SlotId": 0 - } - }, - { - "m_OutputSlot": { - "m_Node": { - "m_Id": "497c741e95244480b7cb6a37a51bb19a" - }, - "m_SlotId": 4 - }, - "m_InputSlot": { - "m_Node": { - "m_Id": "7644e994b4da4282b21650a0f58a3757" - }, - "m_SlotId": 1 - } - }, - { - "m_OutputSlot": { - "m_Node": { - "m_Id": "4f05aa87bb184723a2d2b15721a0c3e9" + "m_Id": "4744eaae41cb4d9f811203331937ee9f" }, "m_SlotId": 0 }, "m_InputSlot": { "m_Node": { - "m_Id": "42b5b42d2e304772a31a535448fded9c" + "m_Id": "1e162640c7ea4f02a44faef8732559e8" }, - "m_SlotId": 0 + "m_SlotId": -1417122351 } }, { "m_OutputSlot": { "m_Node": { - "m_Id": "609f313b8b6f4ee8a871650dc611dc0c" + "m_Id": "48e90b86f7234c9d9a0ad4e07784efa2" }, "m_SlotId": 0 }, "m_InputSlot": { "m_Node": { - "m_Id": "4f05aa87bb184723a2d2b15721a0c3e9" + "m_Id": "1e162640c7ea4f02a44faef8732559e8" }, - "m_SlotId": 1 + "m_SlotId": -5762650 } }, { "m_OutputSlot": { "m_Node": { - "m_Id": "61ad74e00639449f90b3e8cd5747f9a2" - }, - "m_SlotId": 2 - }, - "m_InputSlot": { - "m_Node": { - "m_Id": "0f64718141f34878916463ec72c9d2d8" + "m_Id": "50fe60e87d4f472498833c46009df4a8" }, "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "1e162640c7ea4f02a44faef8732559e8" + }, + "m_SlotId": 1238374258 } }, { "m_OutputSlot": { "m_Node": { - "m_Id": "6637a91f035a40e798e76f70bed17d7e" - }, - "m_SlotId": 4 - }, - "m_InputSlot": { - "m_Node": { - "m_Id": "bc1b1f1db2674d2eb92cff962761dad3" - }, - "m_SlotId": 1 - } - }, - { - "m_OutputSlot": { - "m_Node": { - "m_Id": "6637a91f035a40e798e76f70bed17d7e" - }, - "m_SlotId": 5 - }, - "m_InputSlot": { - "m_Node": { - "m_Id": "bc1b1f1db2674d2eb92cff962761dad3" - }, - "m_SlotId": 2 - } - }, - { - "m_OutputSlot": { - "m_Node": { - "m_Id": "6637a91f035a40e798e76f70bed17d7e" - }, - "m_SlotId": 6 - }, - "m_InputSlot": { - "m_Node": { - "m_Id": "bc1b1f1db2674d2eb92cff962761dad3" - }, - "m_SlotId": 3 - } - }, - { - "m_OutputSlot": { - "m_Node": { - "m_Id": "6637a91f035a40e798e76f70bed17d7e" - }, - "m_SlotId": 7 - }, - "m_InputSlot": { - "m_Node": { - "m_Id": "307a96558a0a40ada3c66e2e38e269ca" + "m_Id": "5e4f7e8b13d74b199e4ff6492563b050" }, "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "1e162640c7ea4f02a44faef8732559e8" + }, + "m_SlotId": -1762040067 } }, { @@ -438,29 +346,15 @@ { "m_OutputSlot": { "m_Node": { - "m_Id": "73efafc771664c7b8a4e4b9e58a6e868" + "m_Id": "7b8e47a4830c4b53bedc6975dad31b72" }, "m_SlotId": 0 }, "m_InputSlot": { "m_Node": { - "m_Id": "1cb9d3109e954f59889461d6d563c74c" + "m_Id": "1e162640c7ea4f02a44faef8732559e8" }, - "m_SlotId": 0 - } - }, - { - "m_OutputSlot": { - "m_Node": { - "m_Id": "7644e994b4da4282b21650a0f58a3757" - }, - "m_SlotId": 2 - }, - "m_InputSlot": { - "m_Node": { - "m_Id": "58ee8fea72cc4a649f9a1198b12d621b" - }, - "m_SlotId": 0 + "m_SlotId": 31906282 } }, { @@ -477,34 +371,6 @@ "m_SlotId": 0 } }, - { - "m_OutputSlot": { - "m_Node": { - "m_Id": "91aa9548b6024d17b2b8a4be2770ad97" - }, - "m_SlotId": 2 - }, - "m_InputSlot": { - "m_Node": { - "m_Id": "53f1bc01113946bc946f0808f16df02b" - }, - "m_SlotId": 0 - } - }, - { - "m_OutputSlot": { - "m_Node": { - "m_Id": "94fe3f50fd0c4ce3a036c672b2d71557" - }, - "m_SlotId": 0 - }, - "m_InputSlot": { - "m_Node": { - "m_Id": "61ad74e00639449f90b3e8cd5747f9a2" - }, - "m_SlotId": 0 - } - }, { "m_OutputSlot": { "m_Node": { @@ -522,92 +388,50 @@ { "m_OutputSlot": { "m_Node": { - "m_Id": "a60bd914ad7646698bb7f9c25f78f88d" + "m_Id": "d5f8db7848d34ac4bc2e47bc9700b02a" }, "m_SlotId": 0 }, "m_InputSlot": { "m_Node": { - "m_Id": "bff080be2f534b5d82990c22e3cc631e" + "m_Id": "1e162640c7ea4f02a44faef8732559e8" }, - "m_SlotId": 0 + "m_SlotId": 1886474450 } }, { "m_OutputSlot": { "m_Node": { - "m_Id": "b08614dabfc6474ebee92e0b18d28d4b" + "m_Id": "eec810392601496bbf30d0e04d1c9e5a" }, "m_SlotId": 0 }, "m_InputSlot": { "m_Node": { - "m_Id": "177b02b8f3b64be1b2f2e7e0055128cb" + "m_Id": "1e162640c7ea4f02a44faef8732559e8" }, - "m_SlotId": 1 + "m_SlotId": 1450746048 } }, { "m_OutputSlot": { "m_Node": { - "m_Id": "b83e5bff780742a79344a87ff879965a" + "m_Id": "fa61ad0af8f743998cdb12dfea31d6a6" }, "m_SlotId": 0 }, "m_InputSlot": { "m_Node": { - "m_Id": "42b5b42d2e304772a31a535448fded9c" + "m_Id": "1e162640c7ea4f02a44faef8732559e8" }, - "m_SlotId": 1 - } - }, - { - "m_OutputSlot": { - "m_Node": { - "m_Id": "bc1b1f1db2674d2eb92cff962761dad3" - }, - "m_SlotId": 0 - }, - "m_InputSlot": { - "m_Node": { - "m_Id": "2a5a6e02ee104d45a3ecc82a5ff7b17c" - }, - "m_SlotId": 1 - } - }, - { - "m_OutputSlot": { - "m_Node": { - "m_Id": "bff080be2f534b5d82990c22e3cc631e" - }, - "m_SlotId": 2 - }, - "m_InputSlot": { - "m_Node": { - "m_Id": "91aa9548b6024d17b2b8a4be2770ad97" - }, - "m_SlotId": 1 - } - }, - { - "m_OutputSlot": { - "m_Node": { - "m_Id": "f36558b3ef9547e295ba8c189a69b79a" - }, - "m_SlotId": 0 - }, - "m_InputSlot": { - "m_Node": { - "m_Id": "0ec124cb35be4b22af0a2dfb725df3fd" - }, - "m_SlotId": 1 + "m_SlotId": -1532749908 } } ], "m_VertexContext": { "m_Position": { - "x": 0.0, - "y": 0.0 + "x": 354.0, + "y": 8.666659355163575 }, "m_Blocks": [ { @@ -623,31 +447,31 @@ }, "m_FragmentContext": { "m_Position": { - "x": 0.000029290516977198422, - "y": 198.0 + "x": 354.0, + "y": 257.9999694824219 }, "m_Blocks": [ + { + "m_Id": "b81ee26f89a540ea946cb683ac7de047" + }, { "m_Id": "80fce1dbcef04945aa9b988609dbe324" }, { "m_Id": "307a96558a0a40ada3c66e2e38e269ca" }, - { - "m_Id": "b81ee26f89a540ea946cb683ac7de047" - }, { "m_Id": "58ee8fea72cc4a649f9a1198b12d621b" }, - { - "m_Id": "6f683c2eb23a4baf8dc028500640b75a" - }, { "m_Id": "53f1bc01113946bc946f0808f16df02b" }, { "m_Id": "6098dc7f36d84b83b8421cc0e56ed1a0" }, + { + "m_Id": "6f683c2eb23a4baf8dc028500640b75a" + }, { "m_Id": "0f64718141f34878916463ec72c9d2d8" } @@ -655,7 +479,7 @@ }, "m_PreviewData": { "serializedMesh": { - "m_SerializedMesh": "{\"mesh\":{\"instanceID\":0}}", + "m_SerializedMesh": "{\"mesh\":{\"fileID\":10205,\"guid\":\"0000000000000000e000000000000000\",\"type\":0}}", "m_Guid": "" }, "preventRotation": false @@ -674,21 +498,6 @@ ] } -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", - "m_ObjectId": "0066f90f9bd24aa69c3b20e8c87e10c6", - "m_Id": 5, - "m_DisplayName": "G", - "m_SlotType": 1, - "m_Hidden": false, - "m_ShaderOutputName": "G", - "m_StageCapability": 2, - "m_Value": 0.0, - "m_DefaultValue": 0.0, - "m_Labels": [] -} - { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", @@ -713,44 +522,6 @@ } } -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", - "m_ObjectId": "02acc5a4d1de49f087b1a9268cf423ed", - "m_Id": 0, - "m_DisplayName": "RGBA", - "m_SlotType": 1, - "m_Hidden": false, - "m_ShaderOutputName": "RGBA", - "m_StageCapability": 2, - "m_Value": { - "x": 0.0, - "y": 0.0, - "z": 0.0, - "w": 0.0 - }, - "m_DefaultValue": { - "x": 0.0, - "y": 0.0, - "z": 0.0, - "w": 0.0 - }, - "m_Labels": [] -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Texture2DMaterialSlot", - "m_ObjectId": "064aae75fadd4a0b942d21348da5dd81", - "m_Id": 0, - "m_DisplayName": "BumpMap", - "m_SlotType": 1, - "m_Hidden": false, - "m_ShaderOutputName": "Out", - "m_StageCapability": 3, - "m_BareResource": false -} - { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.CategoryData", @@ -799,6 +570,24 @@ ] } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", + "m_ObjectId": "08b242bb2b2f4ffcb2042d34967a36b8", + "m_Id": -1762040067, + "m_DisplayName": "MetallicRoughnessMap", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "_MetallicRoughnessMap", + "m_StageCapability": 2, + "m_BareResource": false, + "m_Texture": { + "m_SerializedTexture": "{\"texture\":{\"fileID\":2800000,\"guid\":\"909670d47b2f55d4a991788acca59d7e\",\"type\":3}}", + "m_Guid": "" + }, + "m_DefaultType": 0 +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.PropertyNode", @@ -811,10 +600,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": -965.3333129882813, - "y": -416.6666564941406, + "x": -323.3334045410156, + "y": 172.66665649414063, "width": 132.0, - "height": 36.0 + "height": 35.999969482421878 } }, "m_Slots": [ @@ -835,96 +624,6 @@ } } -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.SampleTexture2DNode", - "m_ObjectId": "0ec124cb35be4b22af0a2dfb725df3fd", - "m_Group": { - "m_Id": "" - }, - "m_Name": "Sample Texture 2D", - "m_DrawState": { - "m_Expanded": true, - "m_Position": { - "serializedVersion": "2", - "x": -634.0, - "y": 1446.6666259765625, - "width": 184.66671752929688, - "height": 254.666748046875 - } - }, - "m_Slots": [ - { - "m_Id": "362985acc7f845c1b9f7b1218298da18" - }, - { - "m_Id": "1ed603dfb0b0451e944135351d8a365c" - }, - { - "m_Id": "82214cd81d964d3d85c2827edfacfe14" - }, - { - "m_Id": "bc0f521c8b5a422682fee09706fe01c2" - }, - { - "m_Id": "ad96a8905a0342aa9a8d4de299ac0597" - }, - { - "m_Id": "600f11bf782744918d280e9924d8a921" - }, - { - "m_Id": "bb835b61b10946b985e60bf0f403d51e" - }, - { - "m_Id": "5c2a18cbde0e45c088c239270ad0949d" - } - ], - "synonyms": [ - "tex2d" - ], - "m_Precision": 0, - "m_PreviewExpanded": false, - "m_DismissedVersion": 0, - "m_PreviewMode": 0, - "m_CustomColors": { - "m_SerializableColors": [] - }, - "m_TextureType": 0, - "m_NormalMapSpace": 1, - "m_EnableGlobalMipBias": true, - "m_MipSamplingMode": 0 -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", - "m_ObjectId": "0ed4fbfbef64412cb58364eefca5123d", - "m_Id": 0, - "m_DisplayName": "Metallic", - "m_SlotType": 1, - "m_Hidden": false, - "m_ShaderOutputName": "Out", - "m_StageCapability": 3, - "m_Value": 0.0, - "m_DefaultValue": 0.0, - "m_Labels": [] -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", - "m_ObjectId": "0f6262482aaf43a49f4f529e2e26cca2", - "m_Id": 1, - "m_DisplayName": "X", - "m_SlotType": 0, - "m_Hidden": false, - "m_ShaderOutputName": "X", - "m_StageCapability": 3, - "m_Value": 0.0, - "m_DefaultValue": 0.0, - "m_Labels": [] -} - { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.BlockNode", @@ -961,24 +660,27 @@ { "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.UVMaterialSlot", - "m_ObjectId": "0f8d05511f944456995a00a6ee4ab46b", - "m_Id": 2, - "m_DisplayName": "UV", + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "0f8d054d428d47e19814af5b84323ffa", + "m_Id": 31906282, + "m_DisplayName": "EmissionColor", "m_SlotType": 0, "m_Hidden": false, - "m_ShaderOutputName": "UV", - "m_StageCapability": 3, + "m_ShaderOutputName": "_EmissionColor", + "m_StageCapability": 2, "m_Value": { "x": 0.0, - "y": 0.0 + "y": 0.0, + "z": 0.0, + "w": 0.0 }, "m_DefaultValue": { "x": 0.0, - "y": 0.0 + "y": 0.0, + "z": 0.0, + "w": 0.0 }, - "m_Labels": [], - "m_Channel": 0 + "m_Labels": [] } { @@ -1035,98 +737,17 @@ { "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.SampleTexture2DNode", - "m_ObjectId": "177b02b8f3b64be1b2f2e7e0055128cb", - "m_Group": { - "m_Id": "" - }, - "m_Name": "Sample Texture 2D", - "m_DrawState": { - "m_Expanded": true, - "m_Position": { - "serializedVersion": "2", - "x": -633.9999389648438, - "y": 707.333251953125, - "width": 184.66668701171876, - "height": 254.66668701171876 - } - }, - "m_Slots": [ - { - "m_Id": "73dae5af12874f62a0ab55d8d0f86874" - }, - { - "m_Id": "68ec8f2063b9438c9d63bb33ab631b2d" - }, - { - "m_Id": "0066f90f9bd24aa69c3b20e8c87e10c6" - }, - { - "m_Id": "f270ed64ab2f4573bccddd9052f89b45" - }, - { - "m_Id": "f2cd25f551014ea49840fbd04e896d26" - }, - { - "m_Id": "ed7a1bf0296441bb937a9b1e6a9aa0c4" - }, - { - "m_Id": "580cf03335e3466680b45e02c4e8581a" - }, - { - "m_Id": "92d965669cb747908bb948442a355c47" - } - ], - "synonyms": [ - "tex2d" - ], - "m_Precision": 0, - "m_PreviewExpanded": false, - "m_DismissedVersion": 0, - "m_PreviewMode": 0, - "m_CustomColors": { - "m_SerializableColors": [] - }, - "m_TextureType": 0, - "m_NormalMapSpace": 1, - "m_EnableGlobalMipBias": true, - "m_MipSamplingMode": 0 -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.PropertyNode", - "m_ObjectId": "19964d5b976e467eb1b4a7f544bf3fef", - "m_Group": { - "m_Id": "" - }, - "m_Name": "Property", - "m_DrawState": { - "m_Expanded": true, - "m_Position": { - "serializedVersion": "2", - "x": -861.3333740234375, - "y": 198.00003051757813, - "width": 159.33331298828126, - "height": 35.99998474121094 - } - }, - "m_Slots": [ - { - "m_Id": "6aef7829a5044fd4a7f91e8641f0f647" - } - ], - "synonyms": [], - "m_Precision": 0, - "m_PreviewExpanded": true, - "m_DismissedVersion": 0, - "m_PreviewMode": 0, - "m_CustomColors": { - "m_SerializableColors": [] - }, - "m_Property": { - "m_Id": "6b344f9254d2438b8ad07e5eef11db71" - } + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "1935b2a1770549a080000e8deec0939d", + "m_Id": 0, + "m_DisplayName": "Roughness", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] } { @@ -1170,60 +791,138 @@ { "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.MultiplyNode", - "m_ObjectId": "1cb9d3109e954f59889461d6d563c74c", + "m_Type": "UnityEditor.ShaderGraph.SubGraphNode", + "m_ObjectId": "1e162640c7ea4f02a44faef8732559e8", "m_Group": { "m_Id": "" }, - "m_Name": "Multiply", + "m_Name": "TinyPbr", "m_DrawState": { "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": -324.6665954589844, - "y": 834.6666259765625, - "width": 209.33331298828126, - "height": 304.0001220703125 + "x": -50.00000762939453, + "y": 297.3334045410156, + "width": 292.0000305175781, + "height": 409.3332824707031 } }, "m_Slots": [ { - "m_Id": "5d77e11243834cf3a6f2e4fcf96ea6ff" + "m_Id": "d7b531121e794d20a1b2a7fbd9afdf4a" }, { - "m_Id": "5b9961219b68470c9e8f957cef52af65" + "m_Id": "da75e0b3880e405db252692028d54133" }, { - "m_Id": "3342995320024fdcb5e1e70917f28a44" + "m_Id": "80b025084ed54b06aa97a6f12912eff4" + }, + { + "m_Id": "f386966343c340c09e357e87cdcb6d91" + }, + { + "m_Id": "d9d26bcc4b844de8a9829d0120c97dcc" + }, + { + "m_Id": "ab904d8e9a194cee907c4c74bf0ab578" + }, + { + "m_Id": "08b242bb2b2f4ffcb2042d34967a36b8" + }, + { + "m_Id": "b70145a57ccc47f0bb9c69ddf8e26053" + }, + { + "m_Id": "3004b1e374a54f93a007ab7022db066e" + }, + { + "m_Id": "0f8d054d428d47e19814af5b84323ffa" + }, + { + "m_Id": "b5ca1f74c7aa41b4b99ec4b0773468b3" + }, + { + "m_Id": "70ee281e77af4a489f02d89ed1798f11" + }, + { + "m_Id": "4cd3928f057d45a5b1912f1f935b83e5" + }, + { + "m_Id": "65649cd5eb074a92af05864785c51b23" + }, + { + "m_Id": "cd3eb81d2e8244c6a59f5595b2e9b0c4" + }, + { + "m_Id": "65305294bc914ebd9b2455c5305da06f" + }, + { + "m_Id": "9b04ce4253044d79ad4b2375d0f3a0d9" + }, + { + "m_Id": "f4283db3232c4a1090c5ab5091fa7d02" } ], - "synonyms": [ - "multiplication", - "times", - "x" - ], + "synonyms": [], "m_Precision": 0, - "m_PreviewExpanded": true, + "m_PreviewExpanded": false, "m_DismissedVersion": 0, "m_PreviewMode": 0, "m_CustomColors": { "m_SerializableColors": [] - } + }, + "m_SerializedSubGraph": "{\n \"subGraph\": {\n \"fileID\": -5475051401550479605,\n \"guid\": \"2fe3270edce96f4438a6dcc501a8c5cd\",\n \"type\": 3\n }\n}", + "m_PropertyGuids": [ + "b78d6b8b-b348-4425-8b4e-41096ddbeb76", + "13da451d-5e09-4040-8b64-ceb8dda217c0", + "7158af0f-43b5-4192-8219-b5dceaa50e9c", + "3c367e55-9fb2-480b-bea6-22ae8f81b7a4", + "f752957a-ec1a-4574-8fac-9b1b9dc26de0", + "bc3d4243-09da-46a4-9dc6-0c47f9eb6c2b", + "973fb1a8-0148-4447-9bfe-a520bbeea5a5", + "faa5e58d-2520-4f65-9d9f-7fd1e13237cf", + "d703b665-c68c-4723-b0fe-9322ff9f1b4d", + "eaedd6f8-0d85-4057-9704-94aa269174ae", + "47dd6b72-f877-4c8e-a0b0-a02e997327ab", + "f3a7bfab-3bc9-430e-b636-98cb483f89b3", + "5fd0caa2-d412-4074-99b7-f59fd61b05d0", + "3c3d4418-e8be-4697-a63a-d9c5c41bec73", + "bf455d07-d15f-40c3-96b7-f94d24e299b3", + "d9244f52-772a-4de5-aeb8-8d877a97e8b7" + ], + "m_PropertyIds": [ + -1946006235, + 725867842, + 1886474450, + 2124990166, + 1238374258, + -1762040067, + 1450746048, + -1417122351, + -5762650, + -1369813300, + -1898688452, + -927429220, + 1347728127, + -861958716, + 31906282, + -1532749908 + ], + "m_Dropdowns": [], + "m_DropdownSelectedEntries": [] } { "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", - "m_ObjectId": "1ed603dfb0b0451e944135351d8a365c", - "m_Id": 4, - "m_DisplayName": "R", + "m_Type": "UnityEditor.ShaderGraph.Texture2DMaterialSlot", + "m_ObjectId": "1ee05d4b3f5a4a3e8f4e55068e747817", + "m_Id": 0, + "m_DisplayName": "MetallicRoughnessMap", "m_SlotType": 1, "m_Hidden": false, - "m_ShaderOutputName": "R", - "m_StageCapability": 2, - "m_Value": 0.0, - "m_DefaultValue": 0.0, - "m_Labels": [] + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_BareResource": false } { @@ -1250,54 +949,6 @@ "m_Space": 3 } -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", - "m_ObjectId": "212accc3030f4e0384e8c4c800750373", - "m_Id": 1, - "m_DisplayName": "B", - "m_SlotType": 0, - "m_Hidden": false, - "m_ShaderOutputName": "B", - "m_StageCapability": 3, - "m_Value": { - "e00": 2.0, - "e01": 2.0, - "e02": 2.0, - "e03": 2.0, - "e10": 2.0, - "e11": 2.0, - "e12": 2.0, - "e13": 2.0, - "e20": 2.0, - "e21": 2.0, - "e22": 2.0, - "e23": 2.0, - "e30": 2.0, - "e31": 2.0, - "e32": 2.0, - "e33": 2.0 - }, - "m_DefaultValue": { - "e00": 1.0, - "e01": 0.0, - "e02": 0.0, - "e03": 0.0, - "e10": 0.0, - "e11": 1.0, - "e12": 0.0, - "e13": 0.0, - "e20": 0.0, - "e21": 0.0, - "e22": 1.0, - "e23": 0.0, - "e30": 0.0, - "e31": 0.0, - "e32": 0.0, - "e33": 1.0 - } -} - { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Internal.Texture2DShaderProperty", @@ -1328,30 +979,6 @@ "m_DefaultType": 4 } -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", - "m_ObjectId": "26b0cc6a64b84c52993d605193516242", - "m_Id": 0, - "m_DisplayName": "A", - "m_SlotType": 0, - "m_Hidden": false, - "m_ShaderOutputName": "A", - "m_StageCapability": 3, - "m_Value": { - "x": 1.0, - "y": 1.0, - "z": 1.0, - "w": 1.0 - }, - "m_DefaultValue": { - "x": 0.0, - "y": 0.0, - "z": 0.0, - "w": 0.0 - } -} - { "m_SGVersion": 1, "m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty", @@ -1380,62 +1007,6 @@ } } -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.MultiplyNode", - "m_ObjectId": "2a5a6e02ee104d45a3ecc82a5ff7b17c", - "m_Group": { - "m_Id": "" - }, - "m_Name": "Multiply", - "m_DrawState": { - "m_Expanded": true, - "m_Position": { - "serializedVersion": "2", - "x": -363.3333435058594, - "y": -207.33334350585938, - "width": 209.33334350585938, - "height": 304.0000305175781 - } - }, - "m_Slots": [ - { - "m_Id": "85d0d0e7cba94789b07a7f99cdd83648" - }, - { - "m_Id": "212accc3030f4e0384e8c4c800750373" - }, - { - "m_Id": "a752e540f3f040338fda387047382672" - } - ], - "synonyms": [ - "multiplication", - "times", - "x" - ], - "m_Precision": 0, - "m_PreviewExpanded": true, - "m_DismissedVersion": 0, - "m_PreviewMode": 0, - "m_CustomColors": { - "m_SerializableColors": [] - } -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.SamplerStateMaterialSlot", - "m_ObjectId": "2b57ee1b447443b39131b7d7ca5656c4", - "m_Id": 3, - "m_DisplayName": "Sampler", - "m_SlotType": 0, - "m_Hidden": false, - "m_ShaderOutputName": "Sampler", - "m_StageCapability": 3, - "m_BareResource": false -} - { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.BooleanMaterialSlot", @@ -1465,6 +1036,21 @@ "m_Labels": [] } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "3004b1e374a54f93a007ab7022db066e", + "m_Id": -5762650, + "m_DisplayName": "NormalStrength", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "_NormalStrength", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.PropertyNode", @@ -1477,10 +1063,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": -965.3333129882813, - "y": -374.6666564941406, - "width": 133.333251953125, - "height": 36.0 + "x": -324.6666259765625, + "y": 208.66665649414063, + "width": 133.3333282470703, + "height": 36.00001525878906 } }, "m_Slots": [ @@ -1569,189 +1155,10 @@ "m_SerializedDescriptor": "SurfaceDescription.Alpha" } -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", - "m_ObjectId": "32680074fcd94dcfb904ea7725f3bdf7", - "m_Id": 0, - "m_DisplayName": "In", - "m_SlotType": 0, - "m_Hidden": false, - "m_ShaderOutputName": "In", - "m_StageCapability": 3, - "m_Value": { - "x": 0.0, - "y": 0.0, - "z": 1.0 - }, - "m_DefaultValue": { - "x": 0.0, - "y": 0.0, - "z": 0.0 - }, - "m_Labels": [] -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", - "m_ObjectId": "32aabad897d84b59bff831681715cd30", - "m_Id": 0, - "m_DisplayName": "RGBA", - "m_SlotType": 1, - "m_Hidden": false, - "m_ShaderOutputName": "RGBA", - "m_StageCapability": 2, - "m_Value": { - "x": 0.0, - "y": 0.0, - "z": 0.0, - "w": 0.0 - }, - "m_DefaultValue": { - "x": 0.0, - "y": 0.0, - "z": 0.0, - "w": 0.0 - }, - "m_Labels": [] -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", - "m_ObjectId": "3342995320024fdcb5e1e70917f28a44", - "m_Id": 2, - "m_DisplayName": "Out", - "m_SlotType": 1, - "m_Hidden": false, - "m_ShaderOutputName": "Out", - "m_StageCapability": 3, - "m_Value": { - "e00": 0.0, - "e01": 0.0, - "e02": 0.0, - "e03": 0.0, - "e10": 0.0, - "e11": 0.0, - "e12": 0.0, - "e13": 0.0, - "e20": 0.0, - "e21": 0.0, - "e22": 0.0, - "e23": 0.0, - "e30": 0.0, - "e31": 0.0, - "e32": 0.0, - "e33": 0.0 - }, - "m_DefaultValue": { - "e00": 1.0, - "e01": 0.0, - "e02": 0.0, - "e03": 0.0, - "e10": 0.0, - "e11": 1.0, - "e12": 0.0, - "e13": 0.0, - "e20": 0.0, - "e21": 0.0, - "e22": 1.0, - "e23": 0.0, - "e30": 0.0, - "e31": 0.0, - "e32": 0.0, - "e33": 1.0 - } -} - -{ - "m_SGVersion": 2, - "m_Type": "UnityEditor.Rendering.Universal.ShaderGraph.UniversalLitSubTarget", - "m_ObjectId": "352f1953e12a45019330c49643812248", - "m_WorkflowMode": 1, - "m_NormalDropOffSpace": 0, - "m_ClearCoat": false, - "m_BlendModePreserveSpecular": true -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", - "m_ObjectId": "362985acc7f845c1b9f7b1218298da18", - "m_Id": 0, - "m_DisplayName": "RGBA", - "m_SlotType": 1, - "m_Hidden": false, - "m_ShaderOutputName": "RGBA", - "m_StageCapability": 2, - "m_Value": { - "x": 0.0, - "y": 0.0, - "z": 0.0, - "w": 0.0 - }, - "m_DefaultValue": { - "x": 0.0, - "y": 0.0, - "z": 0.0, - "w": 0.0 - }, - "m_Labels": [] -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", - "m_ObjectId": "38ee4cc0f5934ebb9fc033495c2e25a4", - "m_Id": 2, - "m_DisplayName": "Out", - "m_SlotType": 1, - "m_Hidden": false, - "m_ShaderOutputName": "Out", - "m_StageCapability": 3, - "m_Value": { - "e00": 0.0, - "e01": 0.0, - "e02": 0.0, - "e03": 0.0, - "e10": 0.0, - "e11": 0.0, - "e12": 0.0, - "e13": 0.0, - "e20": 0.0, - "e21": 0.0, - "e22": 0.0, - "e23": 0.0, - "e30": 0.0, - "e31": 0.0, - "e32": 0.0, - "e33": 0.0 - }, - "m_DefaultValue": { - "e00": 1.0, - "e01": 0.0, - "e02": 0.0, - "e03": 0.0, - "e10": 0.0, - "e11": 1.0, - "e12": 0.0, - "e13": 0.0, - "e20": 0.0, - "e21": 0.0, - "e22": 1.0, - "e23": 0.0, - "e30": 0.0, - "e31": 0.0, - "e32": 0.0, - "e33": 1.0 - } -} - { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.PropertyNode", - "m_ObjectId": "3be41b6b511d440c94c29229f4a7bdc2", + "m_ObjectId": "33606465eada4266a951965cdf693f21", "m_Group": { "m_Id": "" }, @@ -1760,15 +1167,15 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": -874.666748046875, - "y": 162.00006103515626, - "width": 172.66668701171876, - "height": 35.999969482421878 + "x": -350.6667175292969, + "y": 280.6666564941406, + "width": 159.33331298828126, + "height": 36.000030517578128 } }, "m_Slots": [ { - "m_Id": "a9fa65ff74114c879317162bdb85c658" + "m_Id": "f4f063b4a8554eba9f0062104601584a" } ], "synonyms": [], @@ -1780,77 +1187,18 @@ "m_SerializableColors": [] }, "m_Property": { - "m_Id": "653228a387f647d5a5e1fa4da9b5f6d7" + "m_Id": "6b344f9254d2438b8ad07e5eef11db71" } } { - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", - "m_ObjectId": "408c7be450e8421abf78f79621f38a90", - "m_Id": 6, - "m_DisplayName": "B", - "m_SlotType": 1, - "m_Hidden": false, - "m_ShaderOutputName": "B", - "m_StageCapability": 2, - "m_Value": 0.0, - "m_DefaultValue": 0.0, - "m_Labels": [] -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.NormalStrengthNode", - "m_ObjectId": "42b5b42d2e304772a31a535448fded9c", - "m_Group": { - "m_Id": "" - }, - "m_Name": "Normal Strength", - "m_DrawState": { - "m_Expanded": true, - "m_Position": { - "serializedVersion": "2", - "x": -324.6666259765625, - "y": 1138.6668701171875, - "width": 209.3333740234375, - "height": 303.9998779296875 - } - }, - "m_Slots": [ - { - "m_Id": "32680074fcd94dcfb904ea7725f3bdf7" - }, - { - "m_Id": "4e90ec3f541d453c8ae515b9ae1ecacc" - }, - { - "m_Id": "7a258b7ee50f42959e7e5e1bd2c7631b" - } - ], - "synonyms": [ - "intensity" - ], - "m_Precision": 0, - "m_PreviewExpanded": true, - "m_DismissedVersion": 0, - "m_PreviewMode": 0, - "m_CustomColors": { - "m_SerializableColors": [] - } -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Texture2DMaterialSlot", - "m_ObjectId": "435d79c5527e4cd8935ce1a874f4ad05", - "m_Id": 0, - "m_DisplayName": "MetallicRoughnessMap", - "m_SlotType": 1, - "m_Hidden": false, - "m_ShaderOutputName": "Out", - "m_StageCapability": 3, - "m_BareResource": false + "m_SGVersion": 2, + "m_Type": "UnityEditor.Rendering.Universal.ShaderGraph.UniversalLitSubTarget", + "m_ObjectId": "352f1953e12a45019330c49643812248", + "m_WorkflowMode": 1, + "m_NormalDropOffSpace": 0, + "m_ClearCoat": false, + "m_BlendModePreserveSpecular": true } { @@ -1868,224 +1216,152 @@ { "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.SampleTexture2DNode", - "m_ObjectId": "497c741e95244480b7cb6a37a51bb19a", + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "4744eaae41cb4d9f811203331937ee9f", "m_Group": { "m_Id": "" }, - "m_Name": "Sample Texture 2D", + "m_Name": "Property", "m_DrawState": { "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": -682.0000610351563, - "y": 198.00003051757813, - "width": 184.66665649414063, - "height": 254.66668701171876 + "x": -329.3333435058594, + "y": 482.6666564941406, + "width": 138.00001525878907, + "height": 35.999969482421878 } }, "m_Slots": [ { - "m_Id": "32aabad897d84b59bff831681715cd30" - }, - { - "m_Id": "df89e85942804209a6c5a8542deaaf9a" - }, - { - "m_Id": "c9897d71ed584480b6d4cfa325464e61" - }, - { - "m_Id": "53e3002a7ed54a55b683dc1cc2780d8b" - }, - { - "m_Id": "868f3ba8f7724eb2b5bdb7af8db6b383" - }, - { - "m_Id": "8e5e7a322f89442789657fa3860211f0" - }, - { - "m_Id": "0f8d05511f944456995a00a6ee4ab46b" - }, - { - "m_Id": "c2a858a8ef4b47268a80969c0f02ee0a" + "m_Id": "a71711ebde2f4afd83e44b512800c723" } ], - "synonyms": [ - "tex2d" - ], + "synonyms": [], "m_Precision": 0, - "m_PreviewExpanded": false, + "m_PreviewExpanded": true, "m_DismissedVersion": 0, "m_PreviewMode": 0, "m_CustomColors": { "m_SerializableColors": [] }, - "m_TextureType": 0, - "m_NormalMapSpace": 1, - "m_EnableGlobalMipBias": true, - "m_MipSamplingMode": 0 -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.UVMaterialSlot", - "m_ObjectId": "4c1d0e69fdc7482b9e9587c61e9aee52", - "m_Id": 2, - "m_DisplayName": "UV", - "m_SlotType": 0, - "m_Hidden": false, - "m_ShaderOutputName": "UV", - "m_StageCapability": 3, - "m_Value": { - "x": 0.0, - "y": 0.0 - }, - "m_DefaultValue": { - "x": 0.0, - "y": 0.0 - }, - "m_Labels": [], - "m_Channel": 0 -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", - "m_ObjectId": "4e90ec3f541d453c8ae515b9ae1ecacc", - "m_Id": 1, - "m_DisplayName": "Strength", - "m_SlotType": 0, - "m_Hidden": false, - "m_ShaderOutputName": "Strength", - "m_StageCapability": 3, - "m_Value": 1.0, - "m_DefaultValue": 1.0, - "m_Labels": [] -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.SampleTexture2DNode", - "m_ObjectId": "4f05aa87bb184723a2d2b15721a0c3e9", - "m_Group": { - "m_Id": "" - }, - "m_Name": "Sample Texture 2D", - "m_DrawState": { - "m_Expanded": true, - "m_Position": { - "serializedVersion": "2", - "x": -633.9999389648438, - "y": 979.3333129882813, - "width": 184.66665649414063, - "height": 254.66668701171876 - } - }, - "m_Slots": [ - { - "m_Id": "6d10127b9d4e4bcfa16626d3ae7ef55e" - }, - { - "m_Id": "b00b5f49f832499283825f4a2cf12f79" - }, - { - "m_Id": "c35266cc646a444b9bd38a748550b8e4" - }, - { - "m_Id": "aeac528b6a2444518362cffca1be05ba" - }, - { - "m_Id": "63a74a0ddc784303b8449630e548ae2c" - }, - { - "m_Id": "a071058625974c08b0932da5861c7128" - }, - { - "m_Id": "9a3a7785b0b44221afd748ed04b0dde6" - }, - { - "m_Id": "7d670b40f8f2468a9af5840562b1c62d" - } - ], - "synonyms": [ - "tex2d" - ], - "m_Precision": 0, - "m_PreviewExpanded": false, - "m_DismissedVersion": 0, - "m_PreviewMode": 0, - "m_CustomColors": { - "m_SerializableColors": [] - }, - "m_TextureType": 1, - "m_NormalMapSpace": 0, - "m_EnableGlobalMipBias": true, - "m_MipSamplingMode": 0 -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", - "m_ObjectId": "4f7bef37b9a04a89a116a5756540a254", - "m_Id": 0, - "m_DisplayName": "A", - "m_SlotType": 0, - "m_Hidden": false, - "m_ShaderOutputName": "A", - "m_StageCapability": 3, - "m_Value": { - "e00": 0.0, - "e01": 0.0, - "e02": 0.0, - "e03": 0.0, - "e10": 0.0, - "e11": 0.0, - "e12": 0.0, - "e13": 0.0, - "e20": 0.0, - "e21": 0.0, - "e22": 0.0, - "e23": 0.0, - "e30": 0.0, - "e31": 0.0, - "e32": 0.0, - "e33": 0.0 - }, - "m_DefaultValue": { - "e00": 1.0, - "e01": 0.0, - "e02": 0.0, - "e03": 0.0, - "e10": 0.0, - "e11": 1.0, - "e12": 0.0, - "e13": 0.0, - "e20": 0.0, - "e21": 0.0, - "e22": 1.0, - "e23": 0.0, - "e30": 0.0, - "e31": 0.0, - "e32": 0.0, - "e33": 1.0 + "m_Property": { + "m_Id": "d77500f24b3f490daf8cc2f5dcd19f60" } } { "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", - "m_ObjectId": "53e3002a7ed54a55b683dc1cc2780d8b", - "m_Id": 6, - "m_DisplayName": "B", + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "48e90b86f7234c9d9a0ad4e07784efa2", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -323.3333740234375, + "y": 518.6666259765625, + "width": 134.66668701171876, + "height": 36.0 + } + }, + "m_Slots": [ + { + "m_Id": "ed92041349b441768aa1f485dae63d3c" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "f8ac3f450f1a4d849926601ace10a04f" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "4bb4dd9cda0142738e582fa935becbcb", + "m_Id": 0, + "m_DisplayName": "EmissionColor", "m_SlotType": 1, "m_Hidden": false, - "m_ShaderOutputName": "B", + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "4cd3928f057d45a5b1912f1f935b83e5", + "m_Id": 2, + "m_DisplayName": "Alpha", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Alpha", "m_StageCapability": 2, "m_Value": 0.0, "m_DefaultValue": 0.0, "m_Labels": [] } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "50fe60e87d4f472498833c46009df4a8", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -323.3333740234375, + "y": 374.66668701171877, + "width": 134.00001525878907, + "height": 36.000030517578128 + } + }, + "m_Slots": [ + { + "m_Id": "1935b2a1770549a080000e8deec0939d" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "2859cb147a7742fca0dbb5256243d468" + } +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.BlockNode", @@ -2120,28 +1396,6 @@ "m_SerializedDescriptor": "SurfaceDescription.Smoothness" } -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.UVMaterialSlot", - "m_ObjectId": "580cf03335e3466680b45e02c4e8581a", - "m_Id": 2, - "m_DisplayName": "UV", - "m_SlotType": 0, - "m_Hidden": false, - "m_ShaderOutputName": "UV", - "m_StageCapability": 3, - "m_Value": { - "x": 0.0, - "y": 0.0 - }, - "m_DefaultValue": { - "x": 0.0, - "y": 0.0 - }, - "m_Labels": [], - "m_Channel": 0 -} - { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.BlockNode", @@ -2178,156 +1432,40 @@ { "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", - "m_ObjectId": "5b9961219b68470c9e8f957cef52af65", - "m_Id": 1, - "m_DisplayName": "B", - "m_SlotType": 0, - "m_Hidden": false, - "m_ShaderOutputName": "B", - "m_StageCapability": 3, - "m_Value": { - "e00": 2.0, - "e01": 2.0, - "e02": 2.0, - "e03": 2.0, - "e10": 2.0, - "e11": 2.0, - "e12": 2.0, - "e13": 2.0, - "e20": 2.0, - "e21": 2.0, - "e22": 2.0, - "e23": 2.0, - "e30": 2.0, - "e31": 2.0, - "e32": 2.0, - "e33": 2.0 + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "5e4f7e8b13d74b199e4ff6492563b050", + "m_Group": { + "m_Id": "" }, - "m_DefaultValue": { - "e00": 1.0, - "e01": 0.0, - "e02": 0.0, - "e03": 0.0, - "e10": 0.0, - "e11": 1.0, - "e12": 0.0, - "e13": 0.0, - "e20": 0.0, - "e21": 0.0, - "e22": 1.0, - "e23": 0.0, - "e30": 0.0, - "e31": 0.0, - "e32": 0.0, - "e33": 1.0 + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -395.3333740234375, + "y": 446.6666564941406, + "width": 206.00001525878907, + "height": 36.000030517578128 + } + }, + "m_Slots": [ + { + "m_Id": "1ee05d4b3f5a4a3e8f4e55068e747817" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "c4ff105a2181464aaee7d5b6146a2c9b" } } -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.SamplerStateMaterialSlot", - "m_ObjectId": "5c2a18cbde0e45c088c239270ad0949d", - "m_Id": 3, - "m_DisplayName": "Sampler", - "m_SlotType": 0, - "m_Hidden": false, - "m_ShaderOutputName": "Sampler", - "m_StageCapability": 3, - "m_BareResource": false -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", - "m_ObjectId": "5d77e11243834cf3a6f2e4fcf96ea6ff", - "m_Id": 0, - "m_DisplayName": "A", - "m_SlotType": 0, - "m_Hidden": false, - "m_ShaderOutputName": "A", - "m_StageCapability": 3, - "m_Value": { - "e00": 0.0, - "e01": 0.0, - "e02": 0.0, - "e03": 0.0, - "e10": 0.0, - "e11": 0.0, - "e12": 0.0, - "e13": 0.0, - "e20": 0.0, - "e21": 0.0, - "e22": 0.0, - "e23": 0.0, - "e30": 0.0, - "e31": 0.0, - "e32": 0.0, - "e33": 0.0 - }, - "m_DefaultValue": { - "e00": 1.0, - "e01": 0.0, - "e02": 0.0, - "e03": 0.0, - "e10": 0.0, - "e11": 1.0, - "e12": 0.0, - "e13": 0.0, - "e20": 0.0, - "e21": 0.0, - "e22": 1.0, - "e23": 0.0, - "e30": 0.0, - "e31": 0.0, - "e32": 0.0, - "e33": 1.0 - } -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", - "m_ObjectId": "5dc2f5aa641347b2aeb52a9767a433ce", - "m_Id": 0, - "m_DisplayName": "EmissionColor", - "m_SlotType": 1, - "m_Hidden": false, - "m_ShaderOutputName": "Out", - "m_StageCapability": 3, - "m_Value": { - "x": 0.0, - "y": 0.0, - "z": 0.0, - "w": 0.0 - }, - "m_DefaultValue": { - "x": 0.0, - "y": 0.0, - "z": 0.0, - "w": 0.0 - }, - "m_Labels": [] -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", - "m_ObjectId": "600f11bf782744918d280e9924d8a921", - "m_Id": 1, - "m_DisplayName": "Texture", - "m_SlotType": 0, - "m_Hidden": false, - "m_ShaderOutputName": "Texture", - "m_StageCapability": 3, - "m_BareResource": false, - "m_Texture": { - "m_SerializedTexture": "", - "m_Guid": "" - }, - "m_DefaultType": 0 -} - { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.BlockNode", @@ -2362,42 +1500,6 @@ "m_SerializedDescriptor": "SurfaceDescription.Metallic" } -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.PropertyNode", - "m_ObjectId": "609f313b8b6f4ee8a871650dc611dc0c", - "m_Group": { - "m_Id": "" - }, - "m_Name": "Property", - "m_DrawState": { - "m_Expanded": true, - "m_Position": { - "serializedVersion": "2", - "x": -833.9999389648438, - "y": 1216.0, - "width": 138.0, - "height": 35.9998779296875 - } - }, - "m_Slots": [ - { - "m_Id": "064aae75fadd4a0b942d21348da5dd81" - } - ], - "synonyms": [], - "m_Precision": 0, - "m_PreviewExpanded": true, - "m_DismissedVersion": 0, - "m_PreviewMode": 0, - "m_CustomColors": { - "m_SerializableColors": [] - }, - "m_Property": { - "m_Id": "d77500f24b3f490daf8cc2f5dcd19f60" - } -} - { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.PositionMaterialSlot", @@ -2422,58 +1524,15 @@ "m_Space": 0 } -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.MultiplyNode", - "m_ObjectId": "61ad74e00639449f90b3e8cd5747f9a2", - "m_Group": { - "m_Id": "" - }, - "m_Name": "Multiply", - "m_DrawState": { - "m_Expanded": true, - "m_Position": { - "serializedVersion": "2", - "x": -324.6666564941406, - "y": 1442.6668701171875, - "width": 209.3333740234375, - "height": 303.9998779296875 - } - }, - "m_Slots": [ - { - "m_Id": "8298b050e7144f5c88983ff8a703db19" - }, - { - "m_Id": "f17d8746454e409e891b2a301f143151" - }, - { - "m_Id": "38ee4cc0f5934ebb9fc033495c2e25a4" - } - ], - "synonyms": [ - "multiplication", - "times", - "x" - ], - "m_Precision": 0, - "m_PreviewExpanded": true, - "m_DismissedVersion": 0, - "m_PreviewMode": 0, - "m_CustomColors": { - "m_SerializableColors": [] - } -} - { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", - "m_ObjectId": "63a74a0ddc784303b8449630e548ae2c", - "m_Id": 7, - "m_DisplayName": "A", + "m_ObjectId": "65305294bc914ebd9b2455c5305da06f", + "m_Id": 5, + "m_DisplayName": "Metallic", "m_SlotType": 1, "m_Hidden": false, - "m_ShaderOutputName": "A", + "m_ShaderOutputName": "Metallic", "m_StageCapability": 2, "m_Value": 0.0, "m_DefaultValue": 0.0, @@ -2510,62 +1569,17 @@ { "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.SampleTexture2DNode", - "m_ObjectId": "6637a91f035a40e798e76f70bed17d7e", - "m_Group": { - "m_Id": "" - }, - "m_Name": "Sample Texture 2D", - "m_DrawState": { - "m_Expanded": true, - "m_Position": { - "serializedVersion": "2", - "x": -813.3333740234375, - "y": -380.6666564941406, - "width": 184.66668701171876, - "height": 254.66665649414063 - } - }, - "m_Slots": [ - { - "m_Id": "02acc5a4d1de49f087b1a9268cf423ed" - }, - { - "m_Id": "8057542115c941488ee696e0d023e9d8" - }, - { - "m_Id": "c47fe1183b3b44d1ad66a998fde085f5" - }, - { - "m_Id": "408c7be450e8421abf78f79621f38a90" - }, - { - "m_Id": "70bb30a82355421ca010103090de0f4a" - }, - { - "m_Id": "7aa32b9c5fc74c8088ac31ed5fc87f50" - }, - { - "m_Id": "4c1d0e69fdc7482b9e9587c61e9aee52" - }, - { - "m_Id": "2b57ee1b447443b39131b7d7ca5656c4" - } - ], - "synonyms": [ - "tex2d" - ], - "m_Precision": 0, - "m_PreviewExpanded": false, - "m_DismissedVersion": 0, - "m_PreviewMode": 0, - "m_CustomColors": { - "m_SerializableColors": [] - }, - "m_TextureType": 0, - "m_NormalMapSpace": 1, - "m_EnableGlobalMipBias": true, - "m_MipSamplingMode": 0 + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "65649cd5eb074a92af05864785c51b23", + "m_Id": 3, + "m_DisplayName": "AmbientOcclusion", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "AmbientOcclusion", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] } { @@ -2580,10 +1594,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": -769.333251953125, - "y": 67.33330535888672, - "width": 109.33331298828125, - "height": 36.000022888183597 + "x": -111.33338165283203, + "y": 172.66664123535157, + "width": 109.33340454101563, + "height": 36.00001525878906 } }, "m_Slots": [ @@ -2604,34 +1618,6 @@ } } -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", - "m_ObjectId": "68ec8f2063b9438c9d63bb33ab631b2d", - "m_Id": 4, - "m_DisplayName": "R", - "m_SlotType": 1, - "m_Hidden": false, - "m_ShaderOutputName": "R", - "m_StageCapability": 2, - "m_Value": 0.0, - "m_DefaultValue": 0.0, - "m_Labels": [] -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Texture2DMaterialSlot", - "m_ObjectId": "6aef7829a5044fd4a7f91e8641f0f647", - "m_Id": 0, - "m_DisplayName": "OcclusionMap", - "m_SlotType": 1, - "m_Hidden": false, - "m_ShaderOutputName": "Out", - "m_StageCapability": 3, - "m_BareResource": false -} - { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Internal.Texture2DShaderProperty", @@ -2664,27 +1650,15 @@ { "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", - "m_ObjectId": "6d10127b9d4e4bcfa16626d3ae7ef55e", + "m_Type": "UnityEditor.ShaderGraph.Texture2DMaterialSlot", + "m_ObjectId": "6e364da577ef41d8ac8f4f2ab56412b1", "m_Id": 0, - "m_DisplayName": "RGBA", + "m_DisplayName": "EmissionMap", "m_SlotType": 1, "m_Hidden": false, - "m_ShaderOutputName": "RGBA", - "m_StageCapability": 2, - "m_Value": { - "x": 0.0, - "y": 0.0, - "z": 0.0, - "w": 0.0 - }, - "m_DefaultValue": { - "x": 0.0, - "y": 0.0, - "z": 0.0, - "w": 0.0 - }, - "m_Labels": [] + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_BareResource": false } { @@ -2699,10 +1673,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": 0.0, - "y": 0.0, - "width": 0.0, - "height": 0.0 + "x": 372.0, + "y": 562.0, + "width": 200.0, + "height": 42.6666259765625 } }, "m_Slots": [ @@ -2723,32 +1697,27 @@ { "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", - "m_ObjectId": "70bb30a82355421ca010103090de0f4a", - "m_Id": 7, - "m_DisplayName": "A", + "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", + "m_ObjectId": "70ee281e77af4a489f02d89ed1798f11", + "m_Id": 1, + "m_DisplayName": "BaseColor", "m_SlotType": 1, "m_Hidden": false, - "m_ShaderOutputName": "A", + "m_ShaderOutputName": "BaseColor", "m_StageCapability": 2, - "m_Value": 0.0, - "m_DefaultValue": 0.0, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, "m_Labels": [] } -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Texture2DMaterialSlot", - "m_ObjectId": "72164721f8af40cba28e44f84a0f4fd5", - "m_Id": 0, - "m_DisplayName": "EmissionMap", - "m_SlotType": 1, - "m_Hidden": false, - "m_ShaderOutputName": "Out", - "m_StageCapability": 3, - "m_BareResource": false -} - { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", @@ -2764,67 +1733,6 @@ "m_Labels": [] } -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", - "m_ObjectId": "73dae5af12874f62a0ab55d8d0f86874", - "m_Id": 0, - "m_DisplayName": "RGBA", - "m_SlotType": 1, - "m_Hidden": false, - "m_ShaderOutputName": "RGBA", - "m_StageCapability": 2, - "m_Value": { - "x": 0.0, - "y": 0.0, - "z": 0.0, - "w": 0.0 - }, - "m_DefaultValue": { - "x": 0.0, - "y": 0.0, - "z": 0.0, - "w": 0.0 - }, - "m_Labels": [] -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.PropertyNode", - "m_ObjectId": "73efafc771664c7b8a4e4b9e58a6e868", - "m_Group": { - "m_Id": "" - }, - "m_Name": "Property", - "m_DrawState": { - "m_Expanded": true, - "m_Position": { - "serializedVersion": "2", - "x": -813.333251953125, - "y": 816.6666259765625, - "width": 117.33331298828125, - "height": 36.00006103515625 - } - }, - "m_Slots": [ - { - "m_Id": "0ed4fbfbef64412cb58364eefca5123d" - } - ], - "synonyms": [], - "m_Precision": 0, - "m_PreviewExpanded": true, - "m_DismissedVersion": 0, - "m_PreviewMode": 0, - "m_CustomColors": { - "m_SerializableColors": [] - }, - "m_Property": { - "m_Id": "fd4b1637b32c44d79eea652e4b5626b2" - } -} - { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.ColorRGBMaterialSlot", @@ -2855,90 +1763,6 @@ } } -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.MultiplyNode", - "m_ObjectId": "7644e994b4da4282b21650a0f58a3757", - "m_Group": { - "m_Id": "" - }, - "m_Name": "Multiply", - "m_DrawState": { - "m_Expanded": true, - "m_Position": { - "serializedVersion": "2", - "x": -449.3333740234375, - "y": 198.00003051757813, - "width": 209.33335876464845, - "height": 304.0000305175781 - } - }, - "m_Slots": [ - { - "m_Id": "dae5c5d4ef084500a261fd99b836b8f9" - }, - { - "m_Id": "ceca89b18616453c8f4b71f28bd633f5" - }, - { - "m_Id": "7f82ff7fd35d4ce28f4513fa7a46ac49" - } - ], - "synonyms": [ - "multiplication", - "times", - "x" - ], - "m_Precision": 0, - "m_PreviewExpanded": true, - "m_DismissedVersion": 0, - "m_PreviewMode": 0, - "m_CustomColors": { - "m_SerializableColors": [] - } -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", - "m_ObjectId": "7a258b7ee50f42959e7e5e1bd2c7631b", - "m_Id": 2, - "m_DisplayName": "Out", - "m_SlotType": 1, - "m_Hidden": false, - "m_ShaderOutputName": "Out", - "m_StageCapability": 3, - "m_Value": { - "x": 0.0, - "y": 0.0, - "z": 0.0 - }, - "m_DefaultValue": { - "x": 0.0, - "y": 0.0, - "z": 0.0 - }, - "m_Labels": [] -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", - "m_ObjectId": "7aa32b9c5fc74c8088ac31ed5fc87f50", - "m_Id": 1, - "m_DisplayName": "Texture", - "m_SlotType": 0, - "m_Hidden": false, - "m_ShaderOutputName": "Texture", - "m_StageCapability": 3, - "m_BareResource": false, - "m_Texture": { - "m_SerializedTexture": "", - "m_Guid": "" - }, - "m_DefaultType": 0 -} - { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.BlockNode", @@ -2975,76 +1799,51 @@ { "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.SamplerStateMaterialSlot", - "m_ObjectId": "7d670b40f8f2468a9af5840562b1c62d", - "m_Id": 3, - "m_DisplayName": "Sampler", - "m_SlotType": 0, - "m_Hidden": false, - "m_ShaderOutputName": "Sampler", - "m_StageCapability": 3, - "m_BareResource": false -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", - "m_ObjectId": "7f82ff7fd35d4ce28f4513fa7a46ac49", - "m_Id": 2, - "m_DisplayName": "Out", - "m_SlotType": 1, - "m_Hidden": false, - "m_ShaderOutputName": "Out", - "m_StageCapability": 3, - "m_Value": { - "e00": 0.0, - "e01": 0.0, - "e02": 0.0, - "e03": 0.0, - "e10": 0.0, - "e11": 0.0, - "e12": 0.0, - "e13": 0.0, - "e20": 0.0, - "e21": 0.0, - "e22": 0.0, - "e23": 0.0, - "e30": 0.0, - "e31": 0.0, - "e32": 0.0, - "e33": 0.0 + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "7b8e47a4830c4b53bedc6975dad31b72", + "m_Group": { + "m_Id": "" }, - "m_DefaultValue": { - "e00": 1.0, - "e01": 0.0, - "e02": 0.0, - "e03": 0.0, - "e10": 0.0, - "e11": 1.0, - "e12": 0.0, - "e13": 0.0, - "e20": 0.0, - "e21": 0.0, - "e22": 1.0, - "e23": 0.0, - "e30": 0.0, - "e31": 0.0, - "e32": 0.0, - "e33": 1.0 + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -344.0000305175781, + "y": 554.6666259765625, + "width": 152.6667022705078, + "height": 36.00006103515625 + } + }, + "m_Slots": [ + { + "m_Id": "4bb4dd9cda0142738e582fa935becbcb" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "9e699a1f35ed460f9274b370e7e01749" } } { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", - "m_ObjectId": "8057542115c941488ee696e0d023e9d8", - "m_Id": 4, - "m_DisplayName": "R", - "m_SlotType": 1, + "m_ObjectId": "80b025084ed54b06aa97a6f12912eff4", + "m_Id": 1886474450, + "m_DisplayName": "OcclusionStrength", + "m_SlotType": 0, "m_Hidden": false, - "m_ShaderOutputName": "R", + "m_ShaderOutputName": "_OcclusionStrength", "m_StageCapability": 2, - "m_Value": 0.0, + "m_Value": 1.0, "m_DefaultValue": 0.0, "m_Labels": [] } @@ -3083,86 +1882,6 @@ "m_SerializedDescriptor": "SurfaceDescription.BaseColor" } -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", - "m_ObjectId": "82214cd81d964d3d85c2827edfacfe14", - "m_Id": 5, - "m_DisplayName": "G", - "m_SlotType": 1, - "m_Hidden": false, - "m_ShaderOutputName": "G", - "m_StageCapability": 2, - "m_Value": 0.0, - "m_DefaultValue": 0.0, - "m_Labels": [] -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", - "m_ObjectId": "827a8a770c064322a7f2aa9cf901cad3", - "m_Id": 3, - "m_DisplayName": "Z", - "m_SlotType": 0, - "m_Hidden": false, - "m_ShaderOutputName": "Z", - "m_StageCapability": 3, - "m_Value": 0.0, - "m_DefaultValue": 0.0, - "m_Labels": [ - "Z" - ] -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", - "m_ObjectId": "8298b050e7144f5c88983ff8a703db19", - "m_Id": 0, - "m_DisplayName": "A", - "m_SlotType": 0, - "m_Hidden": false, - "m_ShaderOutputName": "A", - "m_StageCapability": 3, - "m_Value": { - "e00": 0.0, - "e01": 0.0, - "e02": 0.0, - "e03": 0.0, - "e10": 0.0, - "e11": 0.0, - "e12": 0.0, - "e13": 0.0, - "e20": 0.0, - "e21": 0.0, - "e22": 0.0, - "e23": 0.0, - "e30": 0.0, - "e31": 0.0, - "e32": 0.0, - "e33": 0.0 - }, - "m_DefaultValue": { - "e00": 1.0, - "e01": 0.0, - "e02": 0.0, - "e03": 0.0, - "e10": 0.0, - "e11": 1.0, - "e12": 0.0, - "e13": 0.0, - "e20": 0.0, - "e21": 0.0, - "e22": 1.0, - "e23": 0.0, - "e30": 0.0, - "e31": 0.0, - "e32": 0.0, - "e33": 1.0 - } -} - { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.PropertyNode", @@ -3175,10 +1894,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": -813.3331909179688, - "y": 31.33333969116211, - "width": 153.333251953125, - "height": 35.99996566772461 + "x": -155.33335876464845, + "y": 136.6666259765625, + "width": 153.3333740234375, + "height": 36.00001525878906 } }, "m_Slots": [ @@ -3199,224 +1918,6 @@ } } -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", - "m_ObjectId": "85d0d0e7cba94789b07a7f99cdd83648", - "m_Id": 0, - "m_DisplayName": "A", - "m_SlotType": 0, - "m_Hidden": false, - "m_ShaderOutputName": "A", - "m_StageCapability": 3, - "m_Value": { - "e00": 0.0, - "e01": 0.0, - "e02": 0.0, - "e03": 0.0, - "e10": 0.0, - "e11": 0.0, - "e12": 0.0, - "e13": 0.0, - "e20": 0.0, - "e21": 0.0, - "e22": 0.0, - "e23": 0.0, - "e30": 0.0, - "e31": 0.0, - "e32": 0.0, - "e33": 0.0 - }, - "m_DefaultValue": { - "e00": 1.0, - "e01": 0.0, - "e02": 0.0, - "e03": 0.0, - "e10": 0.0, - "e11": 1.0, - "e12": 0.0, - "e13": 0.0, - "e20": 0.0, - "e21": 0.0, - "e22": 1.0, - "e23": 0.0, - "e30": 0.0, - "e31": 0.0, - "e32": 0.0, - "e33": 1.0 - } -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", - "m_ObjectId": "86409fdb77e447f19dcf968176770f7f", - "m_Id": 0, - "m_DisplayName": "Roughness", - "m_SlotType": 1, - "m_Hidden": false, - "m_ShaderOutputName": "Out", - "m_StageCapability": 3, - "m_Value": 0.0, - "m_DefaultValue": 0.0, - "m_Labels": [] -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", - "m_ObjectId": "868f3ba8f7724eb2b5bdb7af8db6b383", - "m_Id": 7, - "m_DisplayName": "A", - "m_SlotType": 1, - "m_Hidden": false, - "m_ShaderOutputName": "A", - "m_StageCapability": 2, - "m_Value": 0.0, - "m_DefaultValue": 0.0, - "m_Labels": [] -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", - "m_ObjectId": "86bb22958e0547bb9cc968a7ff4eb1b7", - "m_Id": 1, - "m_DisplayName": "B", - "m_SlotType": 0, - "m_Hidden": false, - "m_ShaderOutputName": "B", - "m_StageCapability": 3, - "m_Value": { - "x": 1.0, - "y": 1.0, - "z": 1.0, - "w": 1.0 - }, - "m_DefaultValue": { - "x": 0.0, - "y": 0.0, - "z": 0.0, - "w": 0.0 - } -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", - "m_ObjectId": "8730cfb2eee34a7aaa30bc67b7f03014", - "m_Id": 2, - "m_DisplayName": "Out", - "m_SlotType": 1, - "m_Hidden": false, - "m_ShaderOutputName": "Out", - "m_StageCapability": 3, - "m_Value": { - "x": 0.0, - "y": 0.0, - "z": 0.0, - "w": 0.0 - }, - "m_DefaultValue": { - "x": 0.0, - "y": 0.0, - "z": 0.0, - "w": 0.0 - } -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", - "m_ObjectId": "8e3b1b83b1f2472facb7e921e188e546", - "m_Id": 2, - "m_DisplayName": "Y", - "m_SlotType": 0, - "m_Hidden": false, - "m_ShaderOutputName": "Y", - "m_StageCapability": 3, - "m_Value": 0.0, - "m_DefaultValue": 0.0, - "m_Labels": [ - "Y" - ] -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", - "m_ObjectId": "8e5e7a322f89442789657fa3860211f0", - "m_Id": 1, - "m_DisplayName": "Texture", - "m_SlotType": 0, - "m_Hidden": false, - "m_ShaderOutputName": "Texture", - "m_StageCapability": 3, - "m_BareResource": false, - "m_Texture": { - "m_SerializedTexture": "", - "m_Guid": "" - }, - "m_DefaultType": 0 -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.SubtractNode", - "m_ObjectId": "91aa9548b6024d17b2b8a4be2770ad97", - "m_Group": { - "m_Id": "" - }, - "m_Name": "Subtract", - "m_DrawState": { - "m_Expanded": true, - "m_Position": { - "serializedVersion": "2", - "x": -324.66668701171877, - "y": 508.00006103515627, - "width": 209.33328247070313, - "height": 303.99993896484377 - } - }, - "m_Slots": [ - { - "m_Id": "26b0cc6a64b84c52993d605193516242" - }, - { - "m_Id": "86bb22958e0547bb9cc968a7ff4eb1b7" - }, - { - "m_Id": "8730cfb2eee34a7aaa30bc67b7f03014" - } - ], - "synonyms": [ - "subtraction", - "remove", - "minus", - "take away" - ], - "m_Precision": 0, - "m_PreviewExpanded": true, - "m_DismissedVersion": 0, - "m_PreviewMode": 0, - "m_CustomColors": { - "m_SerializableColors": [] - } -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.SamplerStateMaterialSlot", - "m_ObjectId": "92d965669cb747908bb948442a355c47", - "m_Id": 3, - "m_DisplayName": "Sampler", - "m_SlotType": 0, - "m_Hidden": false, - "m_ShaderOutputName": "Sampler", - "m_StageCapability": 3, - "m_BareResource": false -} - { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Internal.Texture2DShaderProperty", @@ -3449,108 +1950,25 @@ { "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.PropertyNode", - "m_ObjectId": "94fe3f50fd0c4ce3a036c672b2d71557", - "m_Group": { - "m_Id": "" - }, - "m_Name": "Property", - "m_DrawState": { - "m_Expanded": true, - "m_Position": { - "serializedVersion": "2", - "x": -802.6666259765625, - "y": 1406.666748046875, - "width": 106.66668701171875, - "height": 36.0 - } - }, - "m_Slots": [ - { - "m_Id": "5dc2f5aa641347b2aeb52a9767a433ce" - } - ], - "synonyms": [], - "m_Precision": 0, - "m_PreviewExpanded": true, - "m_DismissedVersion": 0, - "m_PreviewMode": 0, - "m_CustomColors": { - "m_SerializableColors": [] - }, - "m_Property": { - "m_Id": "9e699a1f35ed460f9274b370e7e01749" - } -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", - "m_ObjectId": "9512c4f761ea4aaaa2db8e7ec9d7bf37", - "m_Id": 2, - "m_DisplayName": "Out", + "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", + "m_ObjectId": "9b04ce4253044d79ad4b2375d0f3a0d9", + "m_Id": 6, + "m_DisplayName": "Normal", "m_SlotType": 1, "m_Hidden": false, - "m_ShaderOutputName": "Out", - "m_StageCapability": 3, - "m_Value": { - "e00": 0.0, - "e01": 0.0, - "e02": 0.0, - "e03": 0.0, - "e10": 0.0, - "e11": 0.0, - "e12": 0.0, - "e13": 0.0, - "e20": 0.0, - "e21": 0.0, - "e22": 0.0, - "e23": 0.0, - "e30": 0.0, - "e31": 0.0, - "e32": 0.0, - "e33": 0.0 - }, - "m_DefaultValue": { - "e00": 1.0, - "e01": 0.0, - "e02": 0.0, - "e03": 0.0, - "e10": 0.0, - "e11": 1.0, - "e12": 0.0, - "e13": 0.0, - "e20": 0.0, - "e21": 0.0, - "e22": 1.0, - "e23": 0.0, - "e30": 0.0, - "e31": 0.0, - "e32": 0.0, - "e33": 1.0 - } -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.UVMaterialSlot", - "m_ObjectId": "9a3a7785b0b44221afd748ed04b0dde6", - "m_Id": 2, - "m_DisplayName": "UV", - "m_SlotType": 0, - "m_Hidden": false, - "m_ShaderOutputName": "UV", - "m_StageCapability": 3, + "m_ShaderOutputName": "Normal", + "m_StageCapability": 2, "m_Value": { "x": 0.0, - "y": 0.0 + "y": 0.0, + "z": 0.0 }, "m_DefaultValue": { "x": 0.0, - "y": 0.0 + "y": 0.0, + "z": 0.0 }, - "m_Labels": [], - "m_Channel": 0 + "m_Labels": [] } { @@ -3583,24 +2001,6 @@ "m_ColorMode": 1 } -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", - "m_ObjectId": "a071058625974c08b0932da5861c7128", - "m_Id": 1, - "m_DisplayName": "Texture", - "m_SlotType": 0, - "m_Hidden": false, - "m_ShaderOutputName": "Texture", - "m_StageCapability": 3, - "m_BareResource": false, - "m_Texture": { - "m_SerializedTexture": "", - "m_Guid": "" - }, - "m_DefaultType": 3 -} - { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.BranchNode", @@ -3613,10 +2013,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": -535.3333129882813, - "y": -0.000020460582163650542, - "width": 171.99993896484376, - "height": 143.99996948242188 + "x": 58.666629791259769, + "y": 112.66661834716797, + "width": 171.99996948242188, + "height": 144.00006103515626 } }, "m_Slots": [ @@ -3649,86 +2049,15 @@ { "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.PropertyNode", - "m_ObjectId": "a60bd914ad7646698bb7f9c25f78f88d", - "m_Group": { - "m_Id": "" - }, - "m_Name": "Property", - "m_DrawState": { - "m_Expanded": true, - "m_Position": { - "serializedVersion": "2", - "x": -829.9999389648438, - "y": 702.6666259765625, - "width": 134.0, - "height": 36.00006103515625 - } - }, - "m_Slots": [ - { - "m_Id": "86409fdb77e447f19dcf968176770f7f" - } - ], - "synonyms": [], - "m_Precision": 0, - "m_PreviewExpanded": true, - "m_DismissedVersion": 0, - "m_PreviewMode": 0, - "m_CustomColors": { - "m_SerializableColors": [] - }, - "m_Property": { - "m_Id": "2859cb147a7742fca0dbb5256243d468" - } -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", - "m_ObjectId": "a752e540f3f040338fda387047382672", - "m_Id": 2, - "m_DisplayName": "Out", + "m_Type": "UnityEditor.ShaderGraph.Texture2DMaterialSlot", + "m_ObjectId": "a71711ebde2f4afd83e44b512800c723", + "m_Id": 0, + "m_DisplayName": "BumpMap", "m_SlotType": 1, "m_Hidden": false, "m_ShaderOutputName": "Out", "m_StageCapability": 3, - "m_Value": { - "e00": 0.0, - "e01": 0.0, - "e02": 0.0, - "e03": 0.0, - "e10": 0.0, - "e11": 0.0, - "e12": 0.0, - "e13": 0.0, - "e20": 0.0, - "e21": 0.0, - "e22": 0.0, - "e23": 0.0, - "e30": 0.0, - "e31": 0.0, - "e32": 0.0, - "e33": 0.0 - }, - "m_DefaultValue": { - "e00": 1.0, - "e01": 0.0, - "e02": 0.0, - "e03": 0.0, - "e10": 0.0, - "e11": 1.0, - "e12": 0.0, - "e13": 0.0, - "e20": 0.0, - "e21": 0.0, - "e22": 1.0, - "e23": 0.0, - "e30": 0.0, - "e31": 0.0, - "e32": 0.0, - "e33": 1.0 - } + "m_BareResource": false } { @@ -3764,97 +2093,52 @@ { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", - "m_ObjectId": "a9fa65ff74114c879317162bdb85c658", - "m_Id": 0, - "m_DisplayName": "OcclusionStrength", - "m_SlotType": 1, + "m_ObjectId": "ab904d8e9a194cee907c4c74bf0ab578", + "m_Id": 1450746048, + "m_DisplayName": "Metallic", + "m_SlotType": 0, "m_Hidden": false, - "m_ShaderOutputName": "Out", - "m_StageCapability": 3, - "m_Value": 0.0, - "m_DefaultValue": 0.0, - "m_Labels": [] -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", - "m_ObjectId": "ad96a8905a0342aa9a8d4de299ac0597", - "m_Id": 7, - "m_DisplayName": "A", - "m_SlotType": 1, - "m_Hidden": false, - "m_ShaderOutputName": "A", + "m_ShaderOutputName": "_Metallic", "m_StageCapability": 2, - "m_Value": 0.0, + "m_Value": 1.0, "m_DefaultValue": 0.0, "m_Labels": [] } { "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", - "m_ObjectId": "aeac528b6a2444518362cffca1be05ba", - "m_Id": 6, - "m_DisplayName": "B", - "m_SlotType": 1, + "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", + "m_ObjectId": "b5ca1f74c7aa41b4b99ec4b0773468b3", + "m_Id": -1532749908, + "m_DisplayName": "EmissionMap", + "m_SlotType": 0, "m_Hidden": false, - "m_ShaderOutputName": "B", + "m_ShaderOutputName": "_EmissionMap", "m_StageCapability": 2, - "m_Value": 0.0, - "m_DefaultValue": 0.0, - "m_Labels": [] + "m_BareResource": false, + "m_Texture": { + "m_SerializedTexture": "{\"texture\":{\"fileID\":2800000,\"guid\":\"09e6225be3a2a43489e11a41cb198377\",\"type\":3}}", + "m_Guid": "" + }, + "m_DefaultType": 0 } { "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", - "m_ObjectId": "b00b5f49f832499283825f4a2cf12f79", - "m_Id": 4, - "m_DisplayName": "R", - "m_SlotType": 1, + "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", + "m_ObjectId": "b70145a57ccc47f0bb9c69ddf8e26053", + "m_Id": -1417122351, + "m_DisplayName": "NormalMap", + "m_SlotType": 0, "m_Hidden": false, - "m_ShaderOutputName": "R", + "m_ShaderOutputName": "_NormalMap", "m_StageCapability": 2, - "m_Value": 0.0, - "m_DefaultValue": 0.0, - "m_Labels": [] -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.PropertyNode", - "m_ObjectId": "b08614dabfc6474ebee92e0b18d28d4b", - "m_Group": { - "m_Id": "" + "m_BareResource": false, + "m_Texture": { + "m_SerializedTexture": "", + "m_Guid": "" }, - "m_Name": "Property", - "m_DrawState": { - "m_Expanded": true, - "m_Position": { - "serializedVersion": "2", - "x": -901.9999389648438, - "y": 738.6666870117188, - "width": 206.0, - "height": 35.9998779296875 - } - }, - "m_Slots": [ - { - "m_Id": "435d79c5527e4cd8935ce1a874f4ad05" - } - ], - "synonyms": [], - "m_Precision": 0, - "m_PreviewExpanded": true, - "m_DismissedVersion": 0, - "m_PreviewMode": 0, - "m_CustomColors": { - "m_SerializableColors": [] - }, - "m_Property": { - "m_Id": "c4ff105a2181464aaee7d5b6146a2c9b" - } + "m_DefaultType": 0 } { @@ -3869,9 +2153,9 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": 21.333335876464845, - "y": 301.9999694824219, - "width": 200.00003051757813, + "x": 368.0, + "y": 288.6666564941406, + "width": 200.0, "height": 42.66668701171875 } }, @@ -3891,217 +2175,6 @@ "m_SerializedDescriptor": "SurfaceDescription.AlphaClipThreshold" } -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.PropertyNode", - "m_ObjectId": "b83e5bff780742a79344a87ff879965a", - "m_Group": { - "m_Id": "" - }, - "m_Name": "Property", - "m_DrawState": { - "m_Expanded": true, - "m_Position": { - "serializedVersion": "2", - "x": -830.6666259765625, - "y": 1260.6666259765625, - "width": 134.66668701171876, - "height": 36.0 - } - }, - "m_Slots": [ - { - "m_Id": "e7d2ed98f9964f4aa647d47a4707f549" - } - ], - "synonyms": [], - "m_Precision": 0, - "m_PreviewExpanded": true, - "m_DismissedVersion": 0, - "m_PreviewMode": 0, - "m_CustomColors": { - "m_SerializableColors": [] - }, - "m_Property": { - "m_Id": "f8ac3f450f1a4d849926601ace10a04f" - } -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.UVMaterialSlot", - "m_ObjectId": "bb835b61b10946b985e60bf0f403d51e", - "m_Id": 2, - "m_DisplayName": "UV", - "m_SlotType": 0, - "m_Hidden": false, - "m_ShaderOutputName": "UV", - "m_StageCapability": 3, - "m_Value": { - "x": 0.0, - "y": 0.0 - }, - "m_DefaultValue": { - "x": 0.0, - "y": 0.0 - }, - "m_Labels": [], - "m_Channel": 0 -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", - "m_ObjectId": "bc0f521c8b5a422682fee09706fe01c2", - "m_Id": 6, - "m_DisplayName": "B", - "m_SlotType": 1, - "m_Hidden": false, - "m_ShaderOutputName": "B", - "m_StageCapability": 2, - "m_Value": 0.0, - "m_DefaultValue": 0.0, - "m_Labels": [] -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector3Node", - "m_ObjectId": "bc1b1f1db2674d2eb92cff962761dad3", - "m_Group": { - "m_Id": "" - }, - "m_Name": "Vector 3", - "m_DrawState": { - "m_Expanded": true, - "m_Position": { - "serializedVersion": "2", - "x": -616.6666870117188, - "y": -356.6666564941406, - "width": 129.33334350585938, - "height": 126.66665649414063 - } - }, - "m_Slots": [ - { - "m_Id": "0f6262482aaf43a49f4f529e2e26cca2" - }, - { - "m_Id": "8e3b1b83b1f2472facb7e921e188e546" - }, - { - "m_Id": "827a8a770c064322a7f2aa9cf901cad3" - }, - { - "m_Id": "e27f6627b19f4372bfcf798965a0b49a" - } - ], - "synonyms": [ - "3", - "v3", - "vec3", - "float3" - ], - "m_Precision": 0, - "m_PreviewExpanded": true, - "m_DismissedVersion": 0, - "m_PreviewMode": 0, - "m_CustomColors": { - "m_SerializableColors": [] - }, - "m_Value": { - "x": 0.0, - "y": 0.0, - "z": 0.0 - } -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.MultiplyNode", - "m_ObjectId": "bff080be2f534b5d82990c22e3cc631e", - "m_Group": { - "m_Id": "" - }, - "m_Name": "Multiply", - "m_DrawState": { - "m_Expanded": true, - "m_Position": { - "serializedVersion": "2", - "x": -530.0000610351563, - "y": 546.0000610351563, - "width": 127.3333740234375, - "height": 120.0 - } - }, - "m_Slots": [ - { - "m_Id": "4f7bef37b9a04a89a116a5756540a254" - }, - { - "m_Id": "e96a61a3df77424ea29af5a57479b600" - }, - { - "m_Id": "9512c4f761ea4aaaa2db8e7ec9d7bf37" - } - ], - "synonyms": [ - "multiplication", - "times", - "x" - ], - "m_Precision": 0, - "m_PreviewExpanded": false, - "m_DismissedVersion": 0, - "m_PreviewMode": 0, - "m_CustomColors": { - "m_SerializableColors": [] - } -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.SamplerStateMaterialSlot", - "m_ObjectId": "c2a858a8ef4b47268a80969c0f02ee0a", - "m_Id": 3, - "m_DisplayName": "Sampler", - "m_SlotType": 0, - "m_Hidden": false, - "m_ShaderOutputName": "Sampler", - "m_StageCapability": 3, - "m_BareResource": false -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", - "m_ObjectId": "c35266cc646a444b9bd38a748550b8e4", - "m_Id": 5, - "m_DisplayName": "G", - "m_SlotType": 1, - "m_Hidden": false, - "m_ShaderOutputName": "G", - "m_StageCapability": 2, - "m_Value": 0.0, - "m_DefaultValue": 0.0, - "m_Labels": [] -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", - "m_ObjectId": "c47fe1183b3b44d1ad66a998fde085f5", - "m_Id": 5, - "m_DisplayName": "G", - "m_SlotType": 1, - "m_Hidden": false, - "m_ShaderOutputName": "G", - "m_StageCapability": 2, - "m_Value": 0.0, - "m_DefaultValue": 0.0, - "m_Labels": [] -} - { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Internal.Texture2DShaderProperty", @@ -4135,13 +2208,13 @@ { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", - "m_ObjectId": "c9897d71ed584480b6d4cfa325464e61", - "m_Id": 5, - "m_DisplayName": "G", + "m_ObjectId": "c947e10335f9489ea3420187a17e63af", + "m_Id": 0, + "m_DisplayName": "OcclusionStrength", "m_SlotType": 1, "m_Hidden": false, - "m_ShaderOutputName": "G", - "m_StageCapability": 2, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, "m_Value": 0.0, "m_DefaultValue": 0.0, "m_Labels": [] @@ -4164,50 +2237,17 @@ { "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", - "m_ObjectId": "ceca89b18616453c8f4b71f28bd633f5", - "m_Id": 1, - "m_DisplayName": "B", - "m_SlotType": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "cd3eb81d2e8244c6a59f5595b2e9b0c4", + "m_Id": 4, + "m_DisplayName": "Smoothness", + "m_SlotType": 1, "m_Hidden": false, - "m_ShaderOutputName": "B", - "m_StageCapability": 3, - "m_Value": { - "e00": 2.0, - "e01": 2.0, - "e02": 2.0, - "e03": 2.0, - "e10": 2.0, - "e11": 2.0, - "e12": 2.0, - "e13": 2.0, - "e20": 2.0, - "e21": 2.0, - "e22": 2.0, - "e23": 2.0, - "e30": 2.0, - "e31": 2.0, - "e32": 2.0, - "e33": 2.0 - }, - "m_DefaultValue": { - "e00": 1.0, - "e01": 0.0, - "e02": 0.0, - "e03": 0.0, - "e10": 0.0, - "e11": 1.0, - "e12": 0.0, - "e13": 0.0, - "e20": 0.0, - "e21": 0.0, - "e22": 1.0, - "e23": 0.0, - "e30": 0.0, - "e31": 0.0, - "e32": 0.0, - "e33": 1.0 - } + "m_ShaderOutputName": "Smoothness", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] } { @@ -4234,6 +2274,42 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "d5f8db7848d34ac4bc2e47bc9700b02a", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -364.0000915527344, + "y": 244.6666717529297, + "width": 172.66668701171876, + "height": 35.99998474121094 + } + }, + "m_Slots": [ + { + "m_Id": "c947e10335f9489ea3420187a17e63af" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "653228a387f647d5a5e1fa4da9b5f6d7" + } +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.BooleanMaterialSlot", @@ -4280,50 +2356,75 @@ { "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", - "m_ObjectId": "dae5c5d4ef084500a261fd99b836b8f9", - "m_Id": 0, - "m_DisplayName": "A", + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "d7b531121e794d20a1b2a7fbd9afdf4a", + "m_Id": -1946006235, + "m_DisplayName": "BaseColor", "m_SlotType": 0, "m_Hidden": false, - "m_ShaderOutputName": "A", - "m_StageCapability": 3, + "m_ShaderOutputName": "_BaseColor", + "m_StageCapability": 2, "m_Value": { - "e00": 0.0, - "e01": 0.0, - "e02": 0.0, - "e03": 0.0, - "e10": 0.0, - "e11": 0.0, - "e12": 0.0, - "e13": 0.0, - "e20": 0.0, - "e21": 0.0, - "e22": 0.0, - "e23": 0.0, - "e30": 0.0, - "e31": 0.0, - "e32": 0.0, - "e33": 0.0 + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 }, "m_DefaultValue": { - "e00": 1.0, - "e01": 0.0, - "e02": 0.0, - "e03": 0.0, - "e10": 0.0, - "e11": 1.0, - "e12": 0.0, - "e13": 0.0, - "e20": 0.0, - "e21": 0.0, - "e22": 1.0, - "e23": 0.0, - "e30": 0.0, - "e31": 0.0, - "e32": 0.0, - "e33": 1.0 - } + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "d9d26bcc4b844de8a9829d0120c97dcc", + "m_Id": 1238374258, + "m_DisplayName": "Roughness", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "_Roughness", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", + "m_ObjectId": "da75e0b3880e405db252692028d54133", + "m_Id": 725867842, + "m_DisplayName": "BaseMap", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "_BaseMap", + "m_StageCapability": 2, + "m_BareResource": false, + "m_Texture": { + "m_SerializedTexture": "", + "m_Guid": "" + }, + "m_DefaultType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "dd159d7b06a3483fbb5c33fda09461cd", + "m_Id": 0, + "m_DisplayName": "Metallic", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] } { @@ -4356,21 +2457,6 @@ "m_ColorMode": 0 } -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", - "m_ObjectId": "df89e85942804209a6c5a8542deaaf9a", - "m_Id": 4, - "m_DisplayName": "R", - "m_SlotType": 1, - "m_Hidden": false, - "m_ShaderOutputName": "R", - "m_StageCapability": 2, - "m_Value": 0.0, - "m_DefaultValue": 0.0, - "m_Labels": [] -} - { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.NormalMaterialSlot", @@ -4395,33 +2481,10 @@ "m_Space": 0 } -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", - "m_ObjectId": "e27f6627b19f4372bfcf798965a0b49a", - "m_Id": 0, - "m_DisplayName": "Out", - "m_SlotType": 1, - "m_Hidden": false, - "m_ShaderOutputName": "Out", - "m_StageCapability": 3, - "m_Value": { - "x": 0.0, - "y": 0.0, - "z": 0.0 - }, - "m_DefaultValue": { - "x": 0.0, - "y": 0.0, - "z": 0.0 - }, - "m_Labels": [] -} - { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", - "m_ObjectId": "e7d2ed98f9964f4aa647d47a4707f549", + "m_ObjectId": "ed92041349b441768aa1f485dae63d3c", "m_Id": 0, "m_DisplayName": "BumpScale", "m_SlotType": 1, @@ -4435,70 +2498,40 @@ { "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", - "m_ObjectId": "e96a61a3df77424ea29af5a57479b600", - "m_Id": 1, - "m_DisplayName": "B", - "m_SlotType": 0, - "m_Hidden": false, - "m_ShaderOutputName": "B", - "m_StageCapability": 3, - "m_Value": { - "e00": 2.0, - "e01": 2.0, - "e02": 2.0, - "e03": 2.0, - "e10": 2.0, - "e11": 2.0, - "e12": 2.0, - "e13": 2.0, - "e20": 2.0, - "e21": 2.0, - "e22": 2.0, - "e23": 2.0, - "e30": 2.0, - "e31": 2.0, - "e32": 2.0, - "e33": 2.0 + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "eec810392601496bbf30d0e04d1c9e5a", + "m_Group": { + "m_Id": "" }, - "m_DefaultValue": { - "e00": 1.0, - "e01": 0.0, - "e02": 0.0, - "e03": 0.0, - "e10": 0.0, - "e11": 1.0, - "e12": 0.0, - "e13": 0.0, - "e20": 0.0, - "e21": 0.0, - "e22": 1.0, - "e23": 0.0, - "e30": 0.0, - "e31": 0.0, - "e32": 0.0, - "e33": 1.0 + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -308.66668701171877, + "y": 410.6667175292969, + "width": 117.33335876464844, + "height": 35.99993896484375 + } + }, + "m_Slots": [ + { + "m_Id": "dd159d7b06a3483fbb5c33fda09461cd" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "fd4b1637b32c44d79eea652e4b5626b2" } } -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", - "m_ObjectId": "ed7a1bf0296441bb937a9b1e6a9aa0c4", - "m_Id": 1, - "m_DisplayName": "Texture", - "m_SlotType": 0, - "m_Hidden": false, - "m_ShaderOutputName": "Texture", - "m_StageCapability": 3, - "m_BareResource": false, - "m_Texture": { - "m_SerializedTexture": "", - "m_Guid": "" - }, - "m_DefaultType": 0 -} - { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", @@ -4549,116 +2582,56 @@ { "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", - "m_ObjectId": "f17d8746454e409e891b2a301f143151", - "m_Id": 1, - "m_DisplayName": "B", + "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", + "m_ObjectId": "f386966343c340c09e357e87cdcb6d91", + "m_Id": 2124990166, + "m_DisplayName": "OcclusionMap", "m_SlotType": 0, "m_Hidden": false, - "m_ShaderOutputName": "B", - "m_StageCapability": 3, + "m_ShaderOutputName": "_OcclusionMap", + "m_StageCapability": 2, + "m_BareResource": false, + "m_Texture": { + "m_SerializedTexture": "", + "m_Guid": "" + }, + "m_DefaultType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", + "m_ObjectId": "f4283db3232c4a1090c5ab5091fa7d02", + "m_Id": 7, + "m_DisplayName": "Emission", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Emission", + "m_StageCapability": 2, "m_Value": { - "e00": 2.0, - "e01": 2.0, - "e02": 2.0, - "e03": 2.0, - "e10": 2.0, - "e11": 2.0, - "e12": 2.0, - "e13": 2.0, - "e20": 2.0, - "e21": 2.0, - "e22": 2.0, - "e23": 2.0, - "e30": 2.0, - "e31": 2.0, - "e32": 2.0, - "e33": 2.0 + "x": 0.0, + "y": 0.0, + "z": 0.0 }, "m_DefaultValue": { - "e00": 1.0, - "e01": 0.0, - "e02": 0.0, - "e03": 0.0, - "e10": 0.0, - "e11": 1.0, - "e12": 0.0, - "e13": 0.0, - "e20": 0.0, - "e21": 0.0, - "e22": 1.0, - "e23": 0.0, - "e30": 0.0, - "e31": 0.0, - "e32": 0.0, - "e33": 1.0 - } -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", - "m_ObjectId": "f270ed64ab2f4573bccddd9052f89b45", - "m_Id": 6, - "m_DisplayName": "B", - "m_SlotType": 1, - "m_Hidden": false, - "m_ShaderOutputName": "B", - "m_StageCapability": 2, - "m_Value": 0.0, - "m_DefaultValue": 0.0, + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, "m_Labels": [] } { "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", - "m_ObjectId": "f2cd25f551014ea49840fbd04e896d26", - "m_Id": 7, - "m_DisplayName": "A", + "m_Type": "UnityEditor.ShaderGraph.Texture2DMaterialSlot", + "m_ObjectId": "f4f063b4a8554eba9f0062104601584a", + "m_Id": 0, + "m_DisplayName": "OcclusionMap", "m_SlotType": 1, "m_Hidden": false, - "m_ShaderOutputName": "A", - "m_StageCapability": 2, - "m_Value": 0.0, - "m_DefaultValue": 0.0, - "m_Labels": [] -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.PropertyNode", - "m_ObjectId": "f36558b3ef9547e295ba8c189a69b79a", - "m_Group": { - "m_Id": "" - }, - "m_Name": "Property", - "m_DrawState": { - "m_Expanded": true, - "m_Position": { - "serializedVersion": "2", - "x": -835.9999389648438, - "y": 1446.6666259765625, - "width": 140.0, - "height": 36.0 - } - }, - "m_Slots": [ - { - "m_Id": "72164721f8af40cba28e44f84a0f4fd5" - } - ], - "synonyms": [], - "m_Precision": 0, - "m_PreviewExpanded": true, - "m_DismissedVersion": 0, - "m_PreviewMode": 0, - "m_CustomColors": { - "m_SerializableColors": [] - }, - "m_Property": { - "m_Id": "2138b6eae95a4a249265714cefb1795f" - } + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_BareResource": false } { @@ -4723,6 +2696,42 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "fa61ad0af8f743998cdb12dfea31d6a6", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -345.3333740234375, + "y": 590.6666870117188, + "width": 154.0000457763672, + "height": 35.99993896484375 + } + }, + "m_Slots": [ + { + "m_Id": "6e364da577ef41d8ac8f4f2ab56412b1" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "2138b6eae95a4a249265714cefb1795f" + } +} + { "m_SGVersion": 1, "m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty", diff --git a/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyPbrSubGraph.shadersubgraph b/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyPbrSubGraph.shadersubgraph new file mode 100644 index 000000000..10d440638 --- /dev/null +++ b/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyPbrSubGraph.shadersubgraph @@ -0,0 +1,4248 @@ +{ + "m_SGVersion": 3, + "m_Type": "UnityEditor.ShaderGraph.GraphData", + "m_ObjectId": "5a2d6628108e453fbfe5cfa5e522d9a9", + "m_Properties": [ + { + "m_Id": "65967a44db6b4e5bb53bac3dfd6fc045" + }, + { + "m_Id": "8ccf0f4af8f048a4bbdb335e17e612a8" + }, + { + "m_Id": "d94e9e3c962941ada3f359c02435554a" + }, + { + "m_Id": "6cbc1f284b9e449a8b6732e4fd1418cb" + }, + { + "m_Id": "ea1b4577ae37440ebb7646f685359b91" + }, + { + "m_Id": "eb9d3331c84c4ad29780f6475d74ec64" + }, + { + "m_Id": "8a1ff54b67ff488fb1c1f4c117d15e5b" + }, + { + "m_Id": "b34aeef26d00428489bdea9a7f11788a" + }, + { + "m_Id": "fddfcfba23f4484197ced74f6a153680" + }, + { + "m_Id": "eb31e1d5ba694a60885248856af53466" + }, + { + "m_Id": "dec62a6ca6c94573b68f5277b3c59ab6" + } + ], + "m_Keywords": [], + "m_Dropdowns": [], + "m_CategoryData": [ + { + "m_Id": "8e46262304df435f8a6c6f7aa6b59cad" + } + ], + "m_Nodes": [ + { + "m_Id": "95965af48a8849339faf1a291c791faf" + }, + { + "m_Id": "938e7735e2514aa2872cf020cce5351f" + }, + { + "m_Id": "7cc86c96ee5e414b8d60c0646935f9dc" + }, + { + "m_Id": "e2b1237b8d9f4984aaa93fa1014ad32f" + }, + { + "m_Id": "88c2f24236ff40f5b87bb2c19b666b61" + }, + { + "m_Id": "3390457763fc40058fe02ee6435e6e45" + }, + { + "m_Id": "5eef577c98e34954bf04a2dd7c871f75" + }, + { + "m_Id": "eb539082e9b44af9a45e06fce943e79b" + }, + { + "m_Id": "a607bf6c25d3408b9640d4b263981255" + }, + { + "m_Id": "7f00d74041734b5e9f19552959f21da5" + }, + { + "m_Id": "4267eb8dd9314cf7a45044acb1d323c3" + }, + { + "m_Id": "8f9fee6a8a4e483cae36497e4f4adee2" + }, + { + "m_Id": "22a729d236324664a3922a27475d095d" + }, + { + "m_Id": "9b008f07eb40412ba15df86a304f81fe" + }, + { + "m_Id": "620b08515bf540989ca88405976633df" + }, + { + "m_Id": "08450cb37ae04d0aa3b01a00b836e8b0" + }, + { + "m_Id": "e5c2a7ebd0b44eb0b6ded1ca3bc70850" + }, + { + "m_Id": "7674d3f8f44047038c8ec964d1053ebc" + }, + { + "m_Id": "fa41d8f133734d46b073f60d63ac25ef" + }, + { + "m_Id": "1239dbb98c7b454e9d981a8d19be31cd" + }, + { + "m_Id": "13f996335df44c398f8938cf09dd3fbe" + }, + { + "m_Id": "676e4ddc93c84889b638434526f46a9e" + }, + { + "m_Id": "f20fc1b4e639441d87909a30ddc3b4a0" + }, + { + "m_Id": "1a8eaa0a6813449fbddd0d53e9e85d07" + }, + { + "m_Id": "5c4d818b2aaa4de891fd7299fd2536c3" + }, + { + "m_Id": "417635dfcbc34691a3e58530f430da19" + }, + { + "m_Id": "3fba216a7770483ebd8ffef83f8d0793" + } + ], + "m_GroupDatas": [], + "m_StickyNoteDatas": [], + "m_Edges": [ + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "08450cb37ae04d0aa3b01a00b836e8b0" + }, + "m_SlotId": 5 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "9b008f07eb40412ba15df86a304f81fe" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "08450cb37ae04d0aa3b01a00b836e8b0" + }, + "m_SlotId": 6 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "22a729d236324664a3922a27475d095d" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "1239dbb98c7b454e9d981a8d19be31cd" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "08450cb37ae04d0aa3b01a00b836e8b0" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "13f996335df44c398f8938cf09dd3fbe" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "22a729d236324664a3922a27475d095d" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "1a8eaa0a6813449fbddd0d53e9e85d07" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "95965af48a8849339faf1a291c791faf" + }, + "m_SlotId": 7 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "22a729d236324664a3922a27475d095d" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "95965af48a8849339faf1a291c791faf" + }, + "m_SlotId": 5 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "3390457763fc40058fe02ee6435e6e45" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "938e7735e2514aa2872cf020cce5351f" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "3fba216a7770483ebd8ffef83f8d0793" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "5c4d818b2aaa4de891fd7299fd2536c3" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "417635dfcbc34691a3e58530f430da19" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "1a8eaa0a6813449fbddd0d53e9e85d07" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "4267eb8dd9314cf7a45044acb1d323c3" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "a607bf6c25d3408b9640d4b263981255" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "5c4d818b2aaa4de891fd7299fd2536c3" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "1a8eaa0a6813449fbddd0d53e9e85d07" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "5eef577c98e34954bf04a2dd7c871f75" + }, + "m_SlotId": 1 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "eb539082e9b44af9a45e06fce943e79b" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "5eef577c98e34954bf04a2dd7c871f75" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "eb539082e9b44af9a45e06fce943e79b" + }, + "m_SlotId": 2 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "5eef577c98e34954bf04a2dd7c871f75" + }, + "m_SlotId": 3 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "eb539082e9b44af9a45e06fce943e79b" + }, + "m_SlotId": 3 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "620b08515bf540989ca88405976633df" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "95965af48a8849339faf1a291c791faf" + }, + "m_SlotId": 4 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "676e4ddc93c84889b638434526f46a9e" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "7674d3f8f44047038c8ec964d1053ebc" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "7674d3f8f44047038c8ec964d1053ebc" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "e5c2a7ebd0b44eb0b6ded1ca3bc70850" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "7cc86c96ee5e414b8d60c0646935f9dc" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "e2b1237b8d9f4984aaa93fa1014ad32f" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "7f00d74041734b5e9f19552959f21da5" + }, + "m_SlotId": 4 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "a607bf6c25d3408b9640d4b263981255" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "88c2f24236ff40f5b87bb2c19b666b61" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "5eef577c98e34954bf04a2dd7c871f75" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "8f9fee6a8a4e483cae36497e4f4adee2" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "7f00d74041734b5e9f19552959f21da5" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "938e7735e2514aa2872cf020cce5351f" + }, + "m_SlotId": 4 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "7cc86c96ee5e414b8d60c0646935f9dc" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "938e7735e2514aa2872cf020cce5351f" + }, + "m_SlotId": 5 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "7cc86c96ee5e414b8d60c0646935f9dc" + }, + "m_SlotId": 2 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "938e7735e2514aa2872cf020cce5351f" + }, + "m_SlotId": 6 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "7cc86c96ee5e414b8d60c0646935f9dc" + }, + "m_SlotId": 3 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "938e7735e2514aa2872cf020cce5351f" + }, + "m_SlotId": 7 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "95965af48a8849339faf1a291c791faf" + }, + "m_SlotId": 2 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "9b008f07eb40412ba15df86a304f81fe" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "620b08515bf540989ca88405976633df" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "a607bf6c25d3408b9640d4b263981255" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "95965af48a8849339faf1a291c791faf" + }, + "m_SlotId": 3 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "e2b1237b8d9f4984aaa93fa1014ad32f" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "95965af48a8849339faf1a291c791faf" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "e5c2a7ebd0b44eb0b6ded1ca3bc70850" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "95965af48a8849339faf1a291c791faf" + }, + "m_SlotId": 6 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "eb539082e9b44af9a45e06fce943e79b" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "e2b1237b8d9f4984aaa93fa1014ad32f" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "f20fc1b4e639441d87909a30ddc3b4a0" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "e5c2a7ebd0b44eb0b6ded1ca3bc70850" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "fa41d8f133734d46b073f60d63ac25ef" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "9b008f07eb40412ba15df86a304f81fe" + }, + "m_SlotId": 0 + } + } + ], + "m_VertexContext": { + "m_Position": { + "x": 0.0, + "y": 0.0 + }, + "m_Blocks": [] + }, + "m_FragmentContext": { + "m_Position": { + "x": 0.0, + "y": 0.0 + }, + "m_Blocks": [] + }, + "m_PreviewData": { + "serializedMesh": { + "m_SerializedMesh": "{\"mesh\":{\"instanceID\":0}}", + "m_Guid": "" + }, + "preventRotation": false + }, + "m_Path": "Sub Graphs", + "m_GraphPrecision": 1, + "m_PreviewMode": 2, + "m_OutputNode": { + "m_Id": "95965af48a8849339faf1a291c791faf" + }, + "m_SubDatas": [], + "m_ActiveTargets": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "00c79a9d25ab4d38858e3369f7aed45c", + "m_Id": 0, + "m_DisplayName": "A", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": { + "e00": 0.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 0.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 0.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 0.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "0505f04023ce4ee3833316ff7908c74f", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": { + "e00": 2.0, + "e01": 2.0, + "e02": 2.0, + "e03": 2.0, + "e10": 2.0, + "e11": 2.0, + "e12": 2.0, + "e13": 2.0, + "e20": 2.0, + "e21": 2.0, + "e22": 2.0, + "e23": 2.0, + "e30": 2.0, + "e31": 2.0, + "e32": 2.0, + "e33": 2.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "0668252b25964b8e8d5a6a68d1752a69", + "m_Id": 4, + "m_DisplayName": "Smoothness", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Smoothness", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.UVMaterialSlot", + "m_ObjectId": "06f64a6471ca4a9ab99bf4bdce9ca84f", + "m_Id": 2, + "m_DisplayName": "UV", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "UV", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0 + }, + "m_Labels": [], + "m_Channel": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SampleTexture2DNode", + "m_ObjectId": "08450cb37ae04d0aa3b01a00b836e8b0", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Sample Texture 2D", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -160.0000457763672, + "y": 470.0, + "width": 184.66665649414063, + "height": 254.6666259765625 + } + }, + "m_Slots": [ + { + "m_Id": "139a58f2156e4c949a568d0248bcaa15" + }, + { + "m_Id": "b18c3e20d78f4fa38c46a18a020fddf2" + }, + { + "m_Id": "60259e1ae85a42ed976cbfd21738ed79" + }, + { + "m_Id": "a1a351dbb6974bfbaf69d88ac2e89505" + }, + { + "m_Id": "876e4c048caa48dfb478c57c75f68b5b" + }, + { + "m_Id": "43b0913da27240c8a6fe7e2eea4f4545" + }, + { + "m_Id": "7feb748e0d4646458310a1109ff1c8d3" + }, + { + "m_Id": "ebf689c11ef842838e8e183bd480c74a" + } + ], + "synonyms": [ + "tex2d" + ], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_TextureType": 0, + "m_NormalMapSpace": 1, + "m_EnableGlobalMipBias": true, + "m_MipSamplingMode": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "1239dbb98c7b454e9d981a8d19be31cd", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -439.3333435058594, + "y": 496.6666564941406, + "width": 107.3333740234375, + "height": 35.999969482421878 + } + }, + "m_Slots": [ + { + "m_Id": "cd3b41827c9f4ed3a832df5466451ee4" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "eb9d3331c84c4ad29780f6475d74ec64" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "13725fe0ce284486a708f897d08e7f93", + "m_Id": 2, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "e00": 0.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 0.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 0.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 0.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "13817641b44147a18f186e6569f8a323", + "m_Id": 2, + "m_DisplayName": "Y", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Y", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [ + "Y" + ] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "139a58f2156e4c949a568d0248bcaa15", + "m_Id": 0, + "m_DisplayName": "RGBA", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "RGBA", + "m_StageCapability": 2, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "13f996335df44c398f8938cf09dd3fbe", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -439.3333435058594, + "y": 624.6666259765625, + "width": 118.66668701171875, + "height": 35.99993896484375 + } + }, + "m_Slots": [ + { + "m_Id": "7fbd980729894542a91190cfcc94d9c4" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "8a1ff54b67ff488fb1c1f4c117d15e5b" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "15b94593a6a2431a9b064eee170953e8", + "m_Id": 6, + "m_DisplayName": "B", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "17b3de0d05dc45e2bbbc4ef4faffb732", + "m_Id": 0, + "m_DisplayName": "BaseColor", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.MultiplyNode", + "m_ObjectId": "1a8eaa0a6813449fbddd0d53e9e85d07", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Multiply", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 149.3333282470703, + "y": 1182.6668701171875, + "width": 209.33335876464845, + "height": 303.9998779296875 + } + }, + "m_Slots": [ + { + "m_Id": "bdac9cf259ee4c9785441c958ebe2c82" + }, + { + "m_Id": "33adb5d2a7164f418a4b8290cad09899" + }, + { + "m_Id": "5f1f37eb4819404f892f37e9288b6e42" + } + ], + "synonyms": [ + "multiplication", + "times", + "x" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "1b3d1b7d83e04d988887477411921a9f", + "m_Id": 0, + "m_DisplayName": "A", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": { + "e00": 0.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 0.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 0.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 0.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "1ea9368063724b3d934eaff8e8306333", + "m_Id": 5, + "m_DisplayName": "G", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "G", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", + "m_ObjectId": "1eb8d79419ba44c29e52bc41d5c6360b", + "m_Id": 2, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "20aa61a00c104ecfbcadd370f7f9a929", + "m_Id": 6, + "m_DisplayName": "B", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.MultiplyNode", + "m_ObjectId": "22a729d236324664a3922a27475d095d", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Multiply", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 149.33334350585938, + "y": 574.6666870117188, + "width": 209.33331298828126, + "height": 304.0 + } + }, + "m_Slots": [ + { + "m_Id": "3201ef36a58647bb9363f33b1b43011b" + }, + { + "m_Id": "38f63e79eb484bea87ee9585dd49d85b" + }, + { + "m_Id": "5d9a78af82ca4ccba3df445c14fc1c37" + } + ], + "synonyms": [ + "multiplication", + "times", + "x" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "2b1b5c4446234c1e8e5299237ec6d156", + "m_Id": 7, + "m_DisplayName": "A", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.UVMaterialSlot", + "m_ObjectId": "2dd646544df342c395c79447bc9a913f", + "m_Id": 2, + "m_DisplayName": "UV", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "UV", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0 + }, + "m_Labels": [], + "m_Channel": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DMaterialSlot", + "m_ObjectId": "2e68b8e1d623476881d81d698a8a69fd", + "m_Id": 0, + "m_DisplayName": "BaseMap", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_BareResource": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", + "m_ObjectId": "2ff2caf3886a4815896954bfe5dfd71a", + "m_Id": 1, + "m_DisplayName": "Texture", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Texture", + "m_StageCapability": 3, + "m_BareResource": false, + "m_Texture": { + "m_SerializedTexture": "", + "m_Guid": "" + }, + "m_DefaultType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "3201ef36a58647bb9363f33b1b43011b", + "m_Id": 0, + "m_DisplayName": "A", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": { + "e00": 0.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 0.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 0.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 0.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "3390457763fc40058fe02ee6435e6e45", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -413.3333435058594, + "y": -241.33334350585938, + "width": 133.33334350585938, + "height": 36.0 + } + }, + "m_Slots": [ + { + "m_Id": "2e68b8e1d623476881d81d698a8a69fd" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "8ccf0f4af8f048a4bbdb335e17e612a8" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "33adb5d2a7164f418a4b8290cad09899", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": { + "e00": 2.0, + "e01": 2.0, + "e02": 2.0, + "e03": 2.0, + "e10": 2.0, + "e11": 2.0, + "e12": 2.0, + "e13": 2.0, + "e20": 2.0, + "e21": 2.0, + "e22": 2.0, + "e23": 2.0, + "e30": 2.0, + "e31": 2.0, + "e32": 2.0, + "e33": 2.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "34c65d4e1a6540b3bab4c7a621a00d7c", + "m_Id": 7, + "m_DisplayName": "A", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "368105ca5b4a4db7a35f7cce08635d2d", + "m_Id": 0, + "m_DisplayName": "RGBA", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "RGBA", + "m_StageCapability": 2, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "38f63e79eb484bea87ee9585dd49d85b", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": { + "e00": 2.0, + "e01": 2.0, + "e02": 2.0, + "e03": 2.0, + "e10": 2.0, + "e11": 2.0, + "e12": 2.0, + "e13": 2.0, + "e20": 2.0, + "e21": 2.0, + "e22": 2.0, + "e23": 2.0, + "e30": 2.0, + "e31": 2.0, + "e32": 2.0, + "e33": 2.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "3a5db45a2ab244ac8b422a9f4ce47086", + "m_Id": 0, + "m_DisplayName": "NormalStrength", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "3b6a726e957646bcb078f6f9da8e0d20", + "m_Id": 2, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "e00": 0.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 0.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 0.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 0.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SamplerStateMaterialSlot", + "m_ObjectId": "3d6a371dbce54bbbab42175068da0891", + "m_Id": 3, + "m_DisplayName": "Sampler", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Sampler", + "m_StageCapability": 3, + "m_BareResource": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "3d8fbb7ad1224fd29519e8d6c6ec41d5", + "m_Id": 4, + "m_DisplayName": "R", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "R", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "3fba216a7770483ebd8ffef83f8d0793", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -367.9999694824219, + "y": 1263.3333740234375, + "width": 135.99998474121095, + "height": 35.9998779296875 + } + }, + "m_Slots": [ + { + "m_Id": "f9563785968c4a608b3e810745614987" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "dec62a6ca6c94573b68f5277b3c59ab6" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.UVMaterialSlot", + "m_ObjectId": "411c76b7464b46519f90450d7b5c6903", + "m_Id": 2, + "m_DisplayName": "UV", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "UV", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0 + }, + "m_Labels": [], + "m_Channel": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "417635dfcbc34691a3e58530f430da19", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -334.6666564941406, + "y": 1223.333251953125, + "width": 106.66667175292969, + "height": 36.0001220703125 + } + }, + "m_Slots": [ + { + "m_Id": "f0c42c328d6644529d4ebb7ee48d16f7" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "eb31e1d5ba694a60885248856af53466" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "4267eb8dd9314cf7a45044acb1d323c3", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -452.6666564941406, + "y": 77.33334350585938, + "width": 172.66668701171876, + "height": 36.00001525878906 + } + }, + "m_Slots": [ + { + "m_Id": "96770059d85542fc9b4b317bd5b13a82" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "d94e9e3c962941ada3f359c02435554a" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "437ff83312a14976a8ae3ae3629c3897", + "m_Id": 7, + "m_DisplayName": "A", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", + "m_ObjectId": "43b0913da27240c8a6fe7e2eea4f4545", + "m_Id": 1, + "m_DisplayName": "Texture", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Texture", + "m_StageCapability": 3, + "m_BareResource": false, + "m_Texture": { + "m_SerializedTexture": "", + "m_Guid": "" + }, + "m_DefaultType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "444353c284d1483aa8c547e6d45c11b3", + "m_Id": 0, + "m_DisplayName": "RGBA", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "RGBA", + "m_StageCapability": 2, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "460fac8e25814a59bc5b4f658163fa66", + "m_Id": 3, + "m_DisplayName": "AmbientOcclusion", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "AmbientOcclusion", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "468040b3744c433f87ddd3275deb90bc", + "m_Id": 3, + "m_DisplayName": "Z", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Z", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [ + "Z" + ] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "471d69768b3143c28bcd29941d55b24d", + "m_Id": 2, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "e00": 0.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 0.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 0.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 0.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", + "m_ObjectId": "49e20bed649b4cd0bd8e413469e516a0", + "m_Id": 7, + "m_DisplayName": "Emission", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Emission", + "m_StageCapability": 2, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "4cbf192907004250a41455d12cdf49ff", + "m_Id": 7, + "m_DisplayName": "A", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "4f20b8041693464f92cf0f919ebc52a7", + "m_Id": 1, + "m_DisplayName": "X", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "X", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", + "m_ObjectId": "594111a1ff324732ba7075feb396d2bf", + "m_Id": 1, + "m_DisplayName": "Texture", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Texture", + "m_StageCapability": 3, + "m_BareResource": false, + "m_Texture": { + "m_SerializedTexture": "", + "m_Guid": "" + }, + "m_DefaultType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "5b2300a185a84379b546e9232253e9fd", + "m_Id": 1, + "m_DisplayName": "R", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "R", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SampleTexture2DNode", + "m_ObjectId": "5c4d818b2aaa4de891fd7299fd2536c3", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Sample Texture 2D", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -166.0, + "y": 1263.3333740234375, + "width": 184.6666717529297, + "height": 254.66650390625 + } + }, + "m_Slots": [ + { + "m_Id": "444353c284d1483aa8c547e6d45c11b3" + }, + { + "m_Id": "3d8fbb7ad1224fd29519e8d6c6ec41d5" + }, + { + "m_Id": "7ce535298b98460d948e5d7b99d3b13f" + }, + { + "m_Id": "15b94593a6a2431a9b064eee170953e8" + }, + { + "m_Id": "2b1b5c4446234c1e8e5299237ec6d156" + }, + { + "m_Id": "2ff2caf3886a4815896954bfe5dfd71a" + }, + { + "m_Id": "7c5f6c0a896143df958172c1b360aa0a" + }, + { + "m_Id": "94650ab96add4de1af68e22836e8cbe9" + } + ], + "synonyms": [ + "tex2d" + ], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_TextureType": 0, + "m_NormalMapSpace": 1, + "m_EnableGlobalMipBias": true, + "m_MipSamplingMode": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "5d9a78af82ca4ccba3df445c14fc1c37", + "m_Id": 2, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "e00": 0.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 0.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 0.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 0.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SplitNode", + "m_ObjectId": "5eef577c98e34954bf04a2dd7c871f75", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Split", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -162.00001525878907, + "y": -432.6667175292969, + "width": 120.66667175292969, + "height": 150.66668701171876 + } + }, + "m_Slots": [ + { + "m_Id": "a2750e19880748c4ac03949e44e82e8e" + }, + { + "m_Id": "5b2300a185a84379b546e9232253e9fd" + }, + { + "m_Id": "e7d900bf26d949a59c6342be77402d0f" + }, + { + "m_Id": "ac343ab52b6548c78d7be88d92330ecc" + }, + { + "m_Id": "b8e89f4b5c2e4d98afcd8525d8b16d68" + } + ], + "synonyms": [ + "separate" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "5f1f37eb4819404f892f37e9288b6e42", + "m_Id": 2, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "e00": 0.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 0.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 0.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 0.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "60259e1ae85a42ed976cbfd21738ed79", + "m_Id": 5, + "m_DisplayName": "G", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "G", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", + "m_ObjectId": "60365f2245b14faaa99d66a0588596a5", + "m_Id": 6, + "m_DisplayName": "Normal", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Normal", + "m_StageCapability": 2, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SubtractNode", + "m_ObjectId": "620b08515bf540989ca88405976633df", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Subtract", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 149.33328247070313, + "y": 270.66668701171877, + "width": 209.33331298828126, + "height": 303.99993896484377 + } + }, + "m_Slots": [ + { + "m_Id": "904ef2c5811644bfbb6ce08f462af4f6" + }, + { + "m_Id": "a93caca8319c449b980155eed9e4d3ed" + }, + { + "m_Id": "d20a75c55807482d8a5bc564bb1e5033" + } + ], + "synonyms": [ + "subtraction", + "remove", + "minus", + "take away" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.ShaderGraph.Internal.Vector4ShaderProperty", + "m_ObjectId": "65967a44db6b4e5bb53bac3dfd6fc045", + "m_Guid": { + "m_GuidSerialized": "b78d6b8b-b348-4425-8b4e-41096ddbeb76" + }, + "m_Name": "BaseColor", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "BaseColor", + "m_DefaultReferenceName": "_BaseColor", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": { + "x": 1.0, + "y": 1.0, + "z": 1.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "676e4ddc93c84889b638434526f46a9e", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -439.3333740234375, + "y": 935.333251953125, + "width": 140.00003051757813, + "height": 36.0 + } + }, + "m_Slots": [ + { + "m_Id": "e3a75f5bd043431cb63f6c57005833a2" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "b34aeef26d00428489bdea9a7f11788a" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SamplerStateMaterialSlot", + "m_ObjectId": "68e2934785f2443086c571fe019ddc6d", + "m_Id": 3, + "m_DisplayName": "Sampler", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Sampler", + "m_StageCapability": 3, + "m_BareResource": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Internal.Texture2DShaderProperty", + "m_ObjectId": "6cbc1f284b9e449a8b6732e4fd1418cb", + "m_Guid": { + "m_GuidSerialized": "3c367e55-9fb2-480b-bea6-22ae8f81b7a4" + }, + "m_Name": "OcclusionMap", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "OcclusionMap", + "m_DefaultReferenceName": "_OcclusionMap", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": { + "m_SerializedTexture": "", + "m_Guid": "" + }, + "isMainTexture": false, + "useTilingAndOffset": false, + "m_Modifiable": true, + "m_DefaultType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "7356a6fd7b654cf3a667db6cd631793e", + "m_Id": 1, + "m_DisplayName": "X", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "X", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SamplerStateMaterialSlot", + "m_ObjectId": "7652328c5d634fe9b590d1672678ba92", + "m_Id": 3, + "m_DisplayName": "Sampler", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Sampler", + "m_StageCapability": 3, + "m_BareResource": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SampleTexture2DNode", + "m_ObjectId": "7674d3f8f44047038c8ec964d1053ebc", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Sample Texture 2D", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -160.0000457763672, + "y": 741.9999389648438, + "width": 184.66665649414063, + "height": 254.666748046875 + } + }, + "m_Slots": [ + { + "m_Id": "368105ca5b4a4db7a35f7cce08635d2d" + }, + { + "m_Id": "fb41c688927f4aed99055b7c3ccca5fc" + }, + { + "m_Id": "efcf7ac5789140f7b2bf528268ce2eb8" + }, + { + "m_Id": "91f2e587519e46b697e4e18e013e410b" + }, + { + "m_Id": "437ff83312a14976a8ae3ae3629c3897" + }, + { + "m_Id": "9c326cd3a80d4f7bb14eb584f807ef4f" + }, + { + "m_Id": "2dd646544df342c395c79447bc9a913f" + }, + { + "m_Id": "7652328c5d634fe9b590d1672678ba92" + } + ], + "synonyms": [ + "tex2d" + ], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_TextureType": 1, + "m_NormalMapSpace": 0, + "m_EnableGlobalMipBias": true, + "m_MipSamplingMode": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.UVMaterialSlot", + "m_ObjectId": "7c5f6c0a896143df958172c1b360aa0a", + "m_Id": 2, + "m_DisplayName": "UV", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "UV", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0 + }, + "m_Labels": [], + "m_Channel": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector3Node", + "m_ObjectId": "7cc86c96ee5e414b8d60c0646935f9dc", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Vector 3", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 64.0, + "y": -259.3333740234375, + "width": 129.33331298828126, + "height": 126.66670227050781 + } + }, + "m_Slots": [ + { + "m_Id": "4f20b8041693464f92cf0f919ebc52a7" + }, + { + "m_Id": "13817641b44147a18f186e6569f8a323" + }, + { + "m_Id": "dfc51385ceda4d86a36a8ea7f19c6d88" + }, + { + "m_Id": "ec56dfa66b7b49aeb8c725e966bca89e" + } + ], + "synonyms": [ + "3", + "v3", + "vec3", + "float3" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "7ce535298b98460d948e5d7b99d3b13f", + "m_Id": 5, + "m_DisplayName": "G", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "G", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "7eb3b00684374b3ba2bd8be059d9d11d", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": { + "e00": 2.0, + "e01": 2.0, + "e02": 2.0, + "e03": 2.0, + "e10": 2.0, + "e11": 2.0, + "e12": 2.0, + "e13": 2.0, + "e20": 2.0, + "e21": 2.0, + "e22": 2.0, + "e23": 2.0, + "e30": 2.0, + "e31": 2.0, + "e32": 2.0, + "e33": 2.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SampleTexture2DNode", + "m_ObjectId": "7f00d74041734b5e9f19552959f21da5", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Sample Texture 2D", + "m_DrawState": { + "m_Expanded": false, + "m_Position": { + "serializedVersion": "2", + "x": -14.666682243347168, + "y": 77.33332824707031, + "width": 157.33334350585938, + "height": 158.66665649414063 + } + }, + "m_Slots": [ + { + "m_Id": "aef4cd9ceab0488b9f80ee544878b9e1" + }, + { + "m_Id": "de4ae76b50584c558f032b86843eaf3c" + }, + { + "m_Id": "d4562f8a59c04a76bcf052f84219bacf" + }, + { + "m_Id": "cd89087ed9db48ddb642060735ab4f35" + }, + { + "m_Id": "4cbf192907004250a41455d12cdf49ff" + }, + { + "m_Id": "8287aa2694d24d1ea48d24d50a87cfce" + }, + { + "m_Id": "06f64a6471ca4a9ab99bf4bdce9ca84f" + }, + { + "m_Id": "3d6a371dbce54bbbab42175068da0891" + } + ], + "synonyms": [ + "tex2d" + ], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_TextureType": 0, + "m_NormalMapSpace": 1, + "m_EnableGlobalMipBias": true, + "m_MipSamplingMode": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "7fbd980729894542a91190cfcc94d9c4", + "m_Id": 0, + "m_DisplayName": "Metallic", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.UVMaterialSlot", + "m_ObjectId": "7feb748e0d4646458310a1109ff1c8d3", + "m_Id": 2, + "m_DisplayName": "UV", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "UV", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0 + }, + "m_Labels": [], + "m_Channel": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", + "m_ObjectId": "8287aa2694d24d1ea48d24d50a87cfce", + "m_Id": 1, + "m_DisplayName": "Texture", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Texture", + "m_StageCapability": 3, + "m_BareResource": false, + "m_Texture": { + "m_SerializedTexture": "", + "m_Guid": "" + }, + "m_DefaultType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "876e4c048caa48dfb478c57c75f68b5b", + "m_Id": 7, + "m_DisplayName": "A", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "88c2f24236ff40f5b87bb2c19b666b61", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -412.0, + "y": -282.0, + "width": 132.0, + "height": 36.0 + } + }, + "m_Slots": [ + { + "m_Id": "17b3de0d05dc45e2bbbc4ef4faffb732" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "65967a44db6b4e5bb53bac3dfd6fc045" + } +} + +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty", + "m_ObjectId": "8a1ff54b67ff488fb1c1f4c117d15e5b", + "m_Guid": { + "m_GuidSerialized": "973fb1a8-0148-4447-9bfe-a520bbeea5a5" + }, + "m_Name": "Metallic", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "Metallic", + "m_DefaultReferenceName": "_Metallic", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": 1.0, + "m_FloatType": 0, + "m_RangeValues": { + "x": 0.0, + "y": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Internal.Texture2DShaderProperty", + "m_ObjectId": "8ccf0f4af8f048a4bbdb335e17e612a8", + "m_Guid": { + "m_GuidSerialized": "13da451d-5e09-4040-8b64-ceb8dda217c0" + }, + "m_Name": "BaseMap", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "BaseMap", + "m_DefaultReferenceName": "_BaseMap", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": { + "m_SerializedTexture": "", + "m_Guid": "" + }, + "isMainTexture": false, + "useTilingAndOffset": false, + "m_Modifiable": true, + "m_DefaultType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "8d9b4b001a2b4c9dba4a3c4d6586517f", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": { + "e00": 2.0, + "e01": 2.0, + "e02": 2.0, + "e03": 2.0, + "e10": 2.0, + "e11": 2.0, + "e12": 2.0, + "e13": 2.0, + "e20": 2.0, + "e21": 2.0, + "e22": 2.0, + "e23": 2.0, + "e30": 2.0, + "e31": 2.0, + "e32": 2.0, + "e33": 2.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.CategoryData", + "m_ObjectId": "8e46262304df435f8a6c6f7aa6b59cad", + "m_Name": "", + "m_ChildObjectList": [ + { + "m_Id": "65967a44db6b4e5bb53bac3dfd6fc045" + }, + { + "m_Id": "8ccf0f4af8f048a4bbdb335e17e612a8" + }, + { + "m_Id": "d94e9e3c962941ada3f359c02435554a" + }, + { + "m_Id": "6cbc1f284b9e449a8b6732e4fd1418cb" + }, + { + "m_Id": "ea1b4577ae37440ebb7646f685359b91" + }, + { + "m_Id": "8a1ff54b67ff488fb1c1f4c117d15e5b" + }, + { + "m_Id": "eb9d3331c84c4ad29780f6475d74ec64" + }, + { + "m_Id": "b34aeef26d00428489bdea9a7f11788a" + }, + { + "m_Id": "fddfcfba23f4484197ced74f6a153680" + }, + { + "m_Id": "eb31e1d5ba694a60885248856af53466" + }, + { + "m_Id": "dec62a6ca6c94573b68f5277b3c59ab6" + } + ] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "8f9fee6a8a4e483cae36497e4f4adee2", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -439.3333435058594, + "y": 116.66665649414063, + "width": 159.3333740234375, + "height": 36.00001525878906 + } + }, + "m_Slots": [ + { + "m_Id": "956beddedb794319beea21d83986643d" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "6cbc1f284b9e449a8b6732e4fd1418cb" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "904ef2c5811644bfbb6ce08f462af4f6", + "m_Id": 0, + "m_DisplayName": "A", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": { + "x": 1.0, + "y": 1.0, + "z": 1.0, + "w": 1.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "91f2e587519e46b697e4e18e013e410b", + "m_Id": 6, + "m_DisplayName": "B", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SampleTexture2DNode", + "m_ObjectId": "938e7735e2514aa2872cf020cce5351f", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Sample Texture 2D", + "m_DrawState": { + "m_Expanded": false, + "m_Position": { + "serializedVersion": "2", + "x": -162.00001525878907, + "y": -282.0, + "width": 184.66668701171876, + "height": 254.66664123535157 + } + }, + "m_Slots": [ + { + "m_Id": "d0190bd214234175b32325104c503ea4" + }, + { + "m_Id": "c98c7be5086a49788ddac6b44947626a" + }, + { + "m_Id": "1ea9368063724b3d934eaff8e8306333" + }, + { + "m_Id": "20aa61a00c104ecfbcadd370f7f9a929" + }, + { + "m_Id": "34c65d4e1a6540b3bab4c7a621a00d7c" + }, + { + "m_Id": "594111a1ff324732ba7075feb396d2bf" + }, + { + "m_Id": "411c76b7464b46519f90450d7b5c6903" + }, + { + "m_Id": "68e2934785f2443086c571fe019ddc6d" + } + ], + "synonyms": [ + "tex2d" + ], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_TextureType": 0, + "m_NormalMapSpace": 1, + "m_EnableGlobalMipBias": true, + "m_MipSamplingMode": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SamplerStateMaterialSlot", + "m_ObjectId": "94650ab96add4de1af68e22836e8cbe9", + "m_Id": 3, + "m_DisplayName": "Sampler", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Sampler", + "m_StageCapability": 3, + "m_BareResource": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DMaterialSlot", + "m_ObjectId": "956beddedb794319beea21d83986643d", + "m_Id": 0, + "m_DisplayName": "OcclusionMap", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_BareResource": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SubGraphOutputNode", + "m_ObjectId": "95965af48a8849339faf1a291c791faf", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Output", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 536.0, + "y": -22.00001335144043, + "width": 149.33331298828126, + "height": 198.66668701171876 + } + }, + "m_Slots": [ + { + "m_Id": "e670c006d04c420e95fb34da172bb9a3" + }, + { + "m_Id": "ce40e4791e8d451c92633a89d2b6623e" + }, + { + "m_Id": "460fac8e25814a59bc5b4f658163fa66" + }, + { + "m_Id": "0668252b25964b8e8d5a6a68d1752a69" + }, + { + "m_Id": "e9d21fe40b8740c7a371e1efbc8677e4" + }, + { + "m_Id": "60365f2245b14faaa99d66a0588596a5" + }, + { + "m_Id": "49e20bed649b4cd0bd8e413469e516a0" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "IsFirstSlotValid": true +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "96770059d85542fc9b4b317bd5b13a82", + "m_Id": 0, + "m_DisplayName": "OcclusionStrength", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.MultiplyNode", + "m_ObjectId": "9b008f07eb40412ba15df86a304f81fe", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Multiply", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -55.99999237060547, + "y": 308.66668701171877, + "width": 127.33332061767578, + "height": 120.0 + } + }, + "m_Slots": [ + { + "m_Id": "9fab626280c64cb2a0992aa76fb57d8b" + }, + { + "m_Id": "0505f04023ce4ee3833316ff7908c74f" + }, + { + "m_Id": "3b6a726e957646bcb078f6f9da8e0d20" + } + ], + "synonyms": [ + "multiplication", + "times", + "x" + ], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", + "m_ObjectId": "9c326cd3a80d4f7bb14eb584f807ef4f", + "m_Id": 1, + "m_DisplayName": "Texture", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Texture", + "m_StageCapability": 3, + "m_BareResource": false, + "m_Texture": { + "m_SerializedTexture": "", + "m_Guid": "" + }, + "m_DefaultType": 3 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "9fab626280c64cb2a0992aa76fb57d8b", + "m_Id": 0, + "m_DisplayName": "A", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": { + "e00": 0.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 0.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 0.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 0.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "a1a351dbb6974bfbaf69d88ac2e89505", + "m_Id": 6, + "m_DisplayName": "B", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "a2750e19880748c4ac03949e44e82e8e", + "m_Id": 0, + "m_DisplayName": "In", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "In", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.MultiplyNode", + "m_ObjectId": "a607bf6c25d3408b9640d4b263981255", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Multiply", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 231.33331298828126, + "y": 17.333377838134767, + "width": 127.33328247070313, + "height": 119.99998474121094 + } + }, + "m_Slots": [ + { + "m_Id": "00c79a9d25ab4d38858e3369f7aed45c" + }, + { + "m_Id": "7eb3b00684374b3ba2bd8be059d9d11d" + }, + { + "m_Id": "471d69768b3143c28bcd29941d55b24d" + } + ], + "synonyms": [ + "multiplication", + "times", + "x" + ], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "a93caca8319c449b980155eed9e4d3ed", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": { + "x": 1.0, + "y": 1.0, + "z": 1.0, + "w": 1.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "ac343ab52b6548c78d7be88d92330ecc", + "m_Id": 3, + "m_DisplayName": "B", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "aef4cd9ceab0488b9f80ee544878b9e1", + "m_Id": 0, + "m_DisplayName": "RGBA", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "RGBA", + "m_StageCapability": 2, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "b07720188c364ec593eb969739c9c287", + "m_Id": 2, + "m_DisplayName": "Y", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Y", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [ + "Y" + ] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "b18c3e20d78f4fa38c46a18a020fddf2", + "m_Id": 4, + "m_DisplayName": "R", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "R", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "b30de319244046f6a482b20af8eba3ca", + "m_Id": 0, + "m_DisplayName": "Roughness", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Internal.Texture2DShaderProperty", + "m_ObjectId": "b34aeef26d00428489bdea9a7f11788a", + "m_Guid": { + "m_GuidSerialized": "faa5e58d-2520-4f65-9d9f-7fd1e13237cf" + }, + "m_Name": "NormalMap", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "NormalMap", + "m_DefaultReferenceName": "_NormalMap", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": { + "m_SerializedTexture": "", + "m_Guid": "" + }, + "isMainTexture": false, + "useTilingAndOffset": false, + "m_Modifiable": true, + "m_DefaultType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "b8e89f4b5c2e4d98afcd8525d8b16d68", + "m_Id": 4, + "m_DisplayName": "A", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "bdac9cf259ee4c9785441c958ebe2c82", + "m_Id": 0, + "m_DisplayName": "A", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": { + "e00": 0.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 0.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 0.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 0.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "c195827d123741be9a33c73964d1c7bd", + "m_Id": 1, + "m_DisplayName": "Strength", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Strength", + "m_StageCapability": 3, + "m_Value": 1.0, + "m_DefaultValue": 1.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "c98c7be5086a49788ddac6b44947626a", + "m_Id": 4, + "m_DisplayName": "R", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "R", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DMaterialSlot", + "m_ObjectId": "cd3b41827c9f4ed3a832df5466451ee4", + "m_Id": 0, + "m_DisplayName": "MetallicRoughnessMap", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_BareResource": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "cd89087ed9db48ddb642060735ab4f35", + "m_Id": 6, + "m_DisplayName": "B", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", + "m_ObjectId": "ce3cdbc510db4cc192fdc9aacf3189c7", + "m_Id": 0, + "m_DisplayName": "In", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "In", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 1.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "ce40e4791e8d451c92633a89d2b6623e", + "m_Id": 2, + "m_DisplayName": "Alpha", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Alpha", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "d0190bd214234175b32325104c503ea4", + "m_Id": 0, + "m_DisplayName": "RGBA", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "RGBA", + "m_StageCapability": 2, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "d20a75c55807482d8a5bc564bb1e5033", + "m_Id": 2, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "d4562f8a59c04a76bcf052f84219bacf", + "m_Id": 5, + "m_DisplayName": "G", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "G", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty", + "m_ObjectId": "d94e9e3c962941ada3f359c02435554a", + "m_Guid": { + "m_GuidSerialized": "7158af0f-43b5-4192-8219-b5dceaa50e9c" + }, + "m_Name": "OcclusionStrength", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "OcclusionStrength", + "m_DefaultReferenceName": "_OcclusionStrength", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": 1.0, + "m_FloatType": 0, + "m_RangeValues": { + "x": 0.0, + "y": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "de4ae76b50584c558f032b86843eaf3c", + "m_Id": 4, + "m_DisplayName": "R", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "R", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Internal.Texture2DShaderProperty", + "m_ObjectId": "dec62a6ca6c94573b68f5277b3c59ab6", + "m_Guid": { + "m_GuidSerialized": "d9244f52-772a-4de5-aeb8-8d877a97e8b7" + }, + "m_Name": "EmissionMap", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "EmissionMap", + "m_DefaultReferenceName": "_EmissionMap", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": { + "m_SerializedTexture": "{\"texture\":{\"fileID\":2800000,\"guid\":\"09e6225be3a2a43489e11a41cb198377\",\"type\":3}}", + "m_Guid": "" + }, + "isMainTexture": false, + "useTilingAndOffset": false, + "m_Modifiable": true, + "m_DefaultType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "dfc51385ceda4d86a36a8ea7f19c6d88", + "m_Id": 3, + "m_DisplayName": "Z", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Z", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [ + "Z" + ] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.MultiplyNode", + "m_ObjectId": "e2b1237b8d9f4984aaa93fa1014ad32f", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Multiply", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 227.33331298828126, + "y": -282.0, + "width": 131.33334350585938, + "height": 119.99998474121094 + } + }, + "m_Slots": [ + { + "m_Id": "1b3d1b7d83e04d988887477411921a9f" + }, + { + "m_Id": "8d9b4b001a2b4c9dba4a3c4d6586517f" + }, + { + "m_Id": "13725fe0ce284486a708f897d08e7f93" + } + ], + "synonyms": [ + "multiplication", + "times", + "x" + ], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DMaterialSlot", + "m_ObjectId": "e3a75f5bd043431cb63f6c57005833a2", + "m_Id": 0, + "m_DisplayName": "NormalMap", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_BareResource": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", + "m_ObjectId": "e4e2e3c250ee419d80684aee3834c4ae", + "m_Id": 0, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.NormalStrengthNode", + "m_ObjectId": "e5c2a7ebd0b44eb0b6ded1ca3bc70850", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Normal Strength", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 149.33334350585938, + "y": 878.6666870117188, + "width": 209.33331298828126, + "height": 304.00006103515627 + } + }, + "m_Slots": [ + { + "m_Id": "ce3cdbc510db4cc192fdc9aacf3189c7" + }, + { + "m_Id": "c195827d123741be9a33c73964d1c7bd" + }, + { + "m_Id": "1eb8d79419ba44c29e52bc41d5c6360b" + } + ], + "synonyms": [ + "intensity" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", + "m_ObjectId": "e670c006d04c420e95fb34da172bb9a3", + "m_Id": 1, + "m_DisplayName": "BaseColor", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "BaseColor", + "m_StageCapability": 2, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "e7d900bf26d949a59c6342be77402d0f", + "m_Id": 2, + "m_DisplayName": "G", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "G", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "e9d21fe40b8740c7a371e1efbc8677e4", + "m_Id": 5, + "m_DisplayName": "Metallic", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Metallic", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty", + "m_ObjectId": "ea1b4577ae37440ebb7646f685359b91", + "m_Guid": { + "m_GuidSerialized": "f752957a-ec1a-4574-8fac-9b1b9dc26de0" + }, + "m_Name": "Roughness", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "Roughness", + "m_DefaultReferenceName": "_Roughness", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": 0.0, + "m_FloatType": 0, + "m_RangeValues": { + "x": 0.0, + "y": 1.0 + } +} + +{ + "m_SGVersion": 3, + "m_Type": "UnityEditor.ShaderGraph.Internal.ColorShaderProperty", + "m_ObjectId": "eb31e1d5ba694a60885248856af53466", + "m_Guid": { + "m_GuidSerialized": "bf455d07-d15f-40c3-96b7-f94d24e299b3" + }, + "m_Name": "EmissionColor", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "EmissionColor", + "m_DefaultReferenceName": "_EmissionColor", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": { + "r": 0.0, + "g": 0.0, + "b": 0.0, + "a": 0.0 + }, + "isMainColor": false, + "m_ColorMode": 1 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector3Node", + "m_ObjectId": "eb539082e9b44af9a45e06fce943e79b", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Vector 3", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 63.99998092651367, + "y": -386.0000305175781, + "width": 129.3333740234375, + "height": 126.66668701171875 + } + }, + "m_Slots": [ + { + "m_Id": "7356a6fd7b654cf3a667db6cd631793e" + }, + { + "m_Id": "b07720188c364ec593eb969739c9c287" + }, + { + "m_Id": "468040b3744c433f87ddd3275deb90bc" + }, + { + "m_Id": "e4e2e3c250ee419d80684aee3834c4ae" + } + ], + "synonyms": [ + "3", + "v3", + "vec3", + "float3" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Internal.Texture2DShaderProperty", + "m_ObjectId": "eb9d3331c84c4ad29780f6475d74ec64", + "m_Guid": { + "m_GuidSerialized": "bc3d4243-09da-46a4-9dc6-0c47f9eb6c2b" + }, + "m_Name": "MetallicRoughnessMap", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "MetallicRoughnessMap", + "m_DefaultReferenceName": "_MetallicRoughnessMap", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": { + "m_SerializedTexture": "{\"texture\":{\"fileID\":2800000,\"guid\":\"909670d47b2f55d4a991788acca59d7e\",\"type\":3}}", + "m_Guid": "" + }, + "isMainTexture": false, + "useTilingAndOffset": false, + "m_Modifiable": true, + "m_DefaultType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SamplerStateMaterialSlot", + "m_ObjectId": "ebf689c11ef842838e8e183bd480c74a", + "m_Id": 3, + "m_DisplayName": "Sampler", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Sampler", + "m_StageCapability": 3, + "m_BareResource": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", + "m_ObjectId": "ec56dfa66b7b49aeb8c725e966bca89e", + "m_Id": 0, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "efcf7ac5789140f7b2bf528268ce2eb8", + "m_Id": 5, + "m_DisplayName": "G", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "G", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "f0c42c328d6644529d4ebb7ee48d16f7", + "m_Id": 0, + "m_DisplayName": "EmissionColor", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "f20fc1b4e639441d87909a30ddc3b4a0", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -440.66668701171877, + "y": 978.6665649414063, + "width": 120.0, + "height": 36.0001220703125 + } + }, + "m_Slots": [ + { + "m_Id": "3a5db45a2ab244ac8b422a9f4ce47086" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "fddfcfba23f4484197ced74f6a153680" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DMaterialSlot", + "m_ObjectId": "f9563785968c4a608b3e810745614987", + "m_Id": 0, + "m_DisplayName": "EmissionMap", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_BareResource": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "fa41d8f133734d46b073f60d63ac25ef", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -439.3333435058594, + "y": 451.9999694824219, + "width": 102.66668701171875, + "height": 36.00006103515625 + } + }, + "m_Slots": [ + { + "m_Id": "b30de319244046f6a482b20af8eba3ca" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "ea1b4577ae37440ebb7646f685359b91" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "fb41c688927f4aed99055b7c3ccca5fc", + "m_Id": 4, + "m_DisplayName": "R", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "R", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty", + "m_ObjectId": "fddfcfba23f4484197ced74f6a153680", + "m_Guid": { + "m_GuidSerialized": "d703b665-c68c-4723-b0fe-9322ff9f1b4d" + }, + "m_Name": "NormalStrength", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "NormalStrength", + "m_DefaultReferenceName": "_NormalStrength", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": 0.0, + "m_FloatType": 0, + "m_RangeValues": { + "x": 0.0, + "y": 1.0 + } +} + diff --git a/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyPbrSubGraph.shadersubgraph.meta b/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyPbrSubGraph.shadersubgraph.meta new file mode 100644 index 000000000..fd427abd2 --- /dev/null +++ b/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyPbrSubGraph.shadersubgraph.meta @@ -0,0 +1,10 @@ +fileFormatVersion: 2 +guid: 2fe3270edce96f4438a6dcc501a8c5cd +ScriptedImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 2 + userData: + assetBundleName: + assetBundleVariant: + script: {fileID: 11500000, guid: 60072b568d64c40a485e0fc55012dc9f, type: 3} diff --git a/Assets/VRM10_Samples/VRM10Viewer/VRM10Viewer.unity b/Assets/VRM10_Samples/VRM10Viewer/VRM10Viewer.unity index 05cf34b7c..f380c4088 100644 --- a/Assets/VRM10_Samples/VRM10Viewer/VRM10Viewer.unity +++ b/Assets/VRM10_Samples/VRM10Viewer/VRM10Viewer.unity @@ -30642,7 +30642,7 @@ MonoBehaviour: type: 3} m_alphaBlendMaterial: {fileID: -876546973899608171, guid: 868190a58757d6242bb3ca456402f82f, type: 3} - m_mtoonMaterial: {fileID: -876546973899608171, guid: 181d2f25392c4884c88480261b6d6b57, + m_mtoonMaterialOpaque: {fileID: -876546973899608171, guid: fd08e80eb7e04e849b8a6d534e48efea, type: 3} m_useCustomMaterial: {fileID: 731212246} m_openModel: {fileID: 2009818433} diff --git a/Assets/VRM10_Samples/VRM10Viewer/VRM10ViewerUI.cs b/Assets/VRM10_Samples/VRM10Viewer/VRM10ViewerUI.cs index 84fe2a800..39720314f 100644 --- a/Assets/VRM10_Samples/VRM10Viewer/VRM10ViewerUI.cs +++ b/Assets/VRM10_Samples/VRM10Viewer/VRM10ViewerUI.cs @@ -28,7 +28,7 @@ namespace UniVRM10.VRM10Viewer [SerializeField] Material m_alphaBlendMaterial = default; [SerializeField] - Material m_mtoonMaterial = default; + Material m_mtoonMaterialOpaque = default; [Header("UI")] [SerializeField] @@ -497,7 +497,7 @@ namespace UniVRM10.VRM10Viewer private void Start() { - m_mtoonImporter = new(m_mtoonMaterial); + m_mtoonImporter = new(m_mtoonMaterialOpaque); m_pbrImporter = new(m_opaqueMaterial, m_alphaBlendMaterial); m_autoEmotion = gameObject.AddComponent(); From 77b285fc76dec393f1b8b573dd4906ee880415ce Mon Sep 17 00:00:00 2001 From: ousttrue Date: Fri, 7 Feb 2025 14:18:23 +0900 Subject: [PATCH 12/56] ShadeColor --- .../IO/Texture/Vrm10MToonTextureImporter.cs | 2 +- .../Assets/TinyMToonOpaque.shadergraph | 2014 +++++++++++++++-- .../Assets/TinyPbrSubGraph.shadersubgraph | 36 +- .../VRM10Viewer/TinyMToonMaterialContext.cs | 55 +- .../VRM10Viewer/TinyMToonMaterialImporter.cs | 20 +- 5 files changed, 1824 insertions(+), 303 deletions(-) diff --git a/Assets/VRM10/Runtime/IO/Texture/Vrm10MToonTextureImporter.cs b/Assets/VRM10/Runtime/IO/Texture/Vrm10MToonTextureImporter.cs index 28d78c174..b7dd4fe7b 100644 --- a/Assets/VRM10/Runtime/IO/Texture/Vrm10MToonTextureImporter.cs +++ b/Assets/VRM10/Runtime/IO/Texture/Vrm10MToonTextureImporter.cs @@ -118,7 +118,7 @@ namespace UniVRM10 } } - private static bool TryGetShadeMultiplyTexture(GltfData data, VRMC_materials_mtoon mToon, out SubAssetKey key, out TextureDescriptor desc) + public static bool TryGetShadeMultiplyTexture(GltfData data, VRMC_materials_mtoon mToon, out SubAssetKey key, out TextureDescriptor desc) { return TryGetSRGBTexture(data, new Vrm10TextureInfo(mToon.ShadeMultiplyTexture), out key, out desc); } diff --git a/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyMToonOpaque.shadergraph b/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyMToonOpaque.shadergraph index 29a8bad40..b25267f2b 100644 --- a/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyMToonOpaque.shadergraph +++ b/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyMToonOpaque.shadergraph @@ -5,6 +5,18 @@ "m_Properties": [ { "m_Id": "4e79611254fb4f7ebaa9dc55ea52a427" + }, + { + "m_Id": "41bfcf3cf6f24e0098346d3a59224d97" + }, + { + "m_Id": "5c4080b43fa645598a638526be476d15" + }, + { + "m_Id": "c6ae1333e8494c6292d560a6a0c1126e" + }, + { + "m_Id": "025d73c9fe2e47b3853bf9a00d126af4" } ], "m_Keywords": [], @@ -27,26 +39,53 @@ { "m_Id": "e27b69744886424eb5f477011f04efd2" }, - { - "m_Id": "978fb2b4d6a64b13baf4df534019c0ef" - }, - { - "m_Id": "12d6f083f5bf4fe396e430f312c91445" - }, - { - "m_Id": "945c5856342a4d05a37a15c8fd76dd91" - }, - { - "m_Id": "ef80aee428f942ea9ba07ca5ff70d8b7" - }, - { - "m_Id": "c043e21ac8d54fe3af1f367b6682ea76" - }, { "m_Id": "6f5745e22b43420db4198550f74935a6" }, { "m_Id": "001956a26193431db776814a0429e033" + }, + { + "m_Id": "aa688b600dbe46bfa78fda5e3d5fdd0b" + }, + { + "m_Id": "e202f291b6294c1c980899f1ab2ca582" + }, + { + "m_Id": "11c2b215d12c4952997709b16601ce21" + }, + { + "m_Id": "5caf44abf8c94193bae46a6c36c6bb87" + }, + { + "m_Id": "9e9053ae73f94d2f99ce33a60274938f" + }, + { + "m_Id": "e41f220e296b4cc2a9a3c1faf14d7d72" + }, + { + "m_Id": "53ca4faac8f8465c955fe6f1c038c001" + }, + { + "m_Id": "02d64a802a6d4d29bdf3cc69c21aab22" + }, + { + "m_Id": "740353e06794457a882599bb4a70b703" + }, + { + "m_Id": "c0677ef2e2bf4d488e08da8a6f0fd932" + }, + { + "m_Id": "b81474aeedbf4efa8c1bc90bb75c99a9" + }, + { + "m_Id": "a62805bf0771413ba8c1e8f51ad17b54" + }, + { + "m_Id": "61e8c91a6b5d417f89dba58a5aaee6d8" + }, + { + "m_Id": "2367bc93d6e7445391b808a16728f2b9" } ], "m_GroupDatas": [], @@ -66,6 +105,104 @@ "m_SlotId": 1 } }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "02d64a802a6d4d29bdf3cc69c21aab22" + }, + "m_SlotId": 3 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "e41f220e296b4cc2a9a3c1faf14d7d72" + }, + "m_SlotId": 2 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "11c2b215d12c4952997709b16601ce21" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "5caf44abf8c94193bae46a6c36c6bb87" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "2367bc93d6e7445391b808a16728f2b9" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "02d64a802a6d4d29bdf3cc69c21aab22" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "2367bc93d6e7445391b808a16728f2b9" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "61e8c91a6b5d417f89dba58a5aaee6d8" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "53ca4faac8f8465c955fe6f1c038c001" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "e41f220e296b4cc2a9a3c1faf14d7d72" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "5caf44abf8c94193bae46a6c36c6bb87" + }, + "m_SlotId": 1 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "02d64a802a6d4d29bdf3cc69c21aab22" + }, + "m_SlotId": 2 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "61e8c91a6b5d417f89dba58a5aaee6d8" + }, + "m_SlotId": 1 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "02d64a802a6d4d29bdf3cc69c21aab22" + }, + "m_SlotId": 0 + } + }, { "m_OutputSlot": { "m_Node": { @@ -73,6 +210,118 @@ }, "m_SlotId": 0 }, + "m_InputSlot": { + "m_Node": { + "m_Id": "a62805bf0771413ba8c1e8f51ad17b54" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "740353e06794457a882599bb4a70b703" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "53ca4faac8f8465c955fe6f1c038c001" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "9e9053ae73f94d2f99ce33a60274938f" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "53ca4faac8f8465c955fe6f1c038c001" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "a62805bf0771413ba8c1e8f51ad17b54" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "e41f220e296b4cc2a9a3c1faf14d7d72" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "aa688b600dbe46bfa78fda5e3d5fdd0b" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "11c2b215d12c4952997709b16601ce21" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "b81474aeedbf4efa8c1bc90bb75c99a9" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "a62805bf0771413ba8c1e8f51ad17b54" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "c0677ef2e2bf4d488e08da8a6f0fd932" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "740353e06794457a882599bb4a70b703" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "e202f291b6294c1c980899f1ab2ca582" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "11c2b215d12c4952997709b16601ce21" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "e41f220e296b4cc2a9a3c1faf14d7d72" + }, + "m_SlotId": 3 + }, "m_InputSlot": { "m_Node": { "m_Id": "e27b69744886424eb5f477011f04efd2" @@ -83,8 +332,8 @@ ], "m_VertexContext": { "m_Position": { - "x": 0.0, - "y": 0.0 + "x": 544.0000610351563, + "y": -131.33334350585938 }, "m_Blocks": [ { @@ -100,27 +349,12 @@ }, "m_FragmentContext": { "m_Position": { - "x": 0.0, - "y": 200.0 + "x": 544.0000610351563, + "y": 95.3333740234375 }, "m_Blocks": [ { "m_Id": "e27b69744886424eb5f477011f04efd2" - }, - { - "m_Id": "978fb2b4d6a64b13baf4df534019c0ef" - }, - { - "m_Id": "12d6f083f5bf4fe396e430f312c91445" - }, - { - "m_Id": "945c5856342a4d05a37a15c8fd76dd91" - }, - { - "m_Id": "ef80aee428f942ea9ba07ca5ff70d8b7" - }, - { - "m_Id": "c043e21ac8d54fe3af1f367b6682ea76" } ] }, @@ -157,10 +391,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": -434.6666564941406, - "y": 140.0, - "width": 140.0, - "height": 35.99998474121094 + "x": -391.3333435058594, + "y": -28.000011444091798, + "width": 133.33334350585938, + "height": 36.0000114440918 } }, "m_Slots": [ @@ -181,36 +415,6 @@ } } -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.ColorRGBMaterialSlot", - "m_ObjectId": "019aac67658b4391a0fbbde2235300db", - "m_Id": 0, - "m_DisplayName": "Emission", - "m_SlotType": 0, - "m_Hidden": false, - "m_ShaderOutputName": "Emission", - "m_StageCapability": 2, - "m_Value": { - "x": 0.0, - "y": 0.0, - "z": 0.0 - }, - "m_DefaultValue": { - "x": 0.0, - "y": 0.0, - "z": 0.0 - }, - "m_Labels": [], - "m_ColorMode": 1, - "m_DefaultColor": { - "r": 0.0, - "g": 0.0, - "b": 0.0, - "a": 1.0 - } -} - { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.NormalMaterialSlot", @@ -235,6 +439,203 @@ "m_Space": 0 } +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty", + "m_ObjectId": "025d73c9fe2e47b3853bf9a00d126af4", + "m_Guid": { + "m_GuidSerialized": "faf3291f-b550-41b3-b53d-2a983b8f3183" + }, + "m_Name": "ShadingToonyFactor", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "ShadingToonyFactor", + "m_DefaultReferenceName": "_ShadingToonyFactor", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": 0.0, + "m_FloatType": 0, + "m_RangeValues": { + "x": 0.0, + "y": 1.0 + } +} + +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.ShaderGraph.CustomFunctionNode", + "m_ObjectId": "02d64a802a6d4d29bdf3cc69c21aab22", + "m_Group": { + "m_Id": "" + }, + "m_Name": "linearstep (Custom Function)", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -11.999978065490723, + "y": 557.3333129882813, + "width": 211.99998474121095, + "height": 144.0 + } + }, + "m_Slots": [ + { + "m_Id": "1a6db28a6c03456083c39b3b0dfbc56a" + }, + { + "m_Id": "f55b8ae1b1c7406ca3a2b32d737adf05" + }, + { + "m_Id": "35b4cbc7d7894237be86cdf5305edaa6" + }, + { + "m_Id": "ec6717fc07224569802ff5be80e915d7" + } + ], + "synonyms": [ + "code", + "HLSL" + ], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SourceType": 1, + "m_FunctionName": "linearstep", + "m_FunctionSource": "", + "m_FunctionBody": "Out = saturate( ( t - a ) / ( b - a ) );" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "063fb8e850264b3bba0c55df7440ba52", + "m_Id": 0, + "m_DisplayName": "In", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "In", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "0acaf0553f7946bfb5829bdc191aaed7", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": { + "e00": 2.0, + "e01": 2.0, + "e02": 2.0, + "e03": 2.0, + "e10": 2.0, + "e11": 2.0, + "e12": 2.0, + "e13": 2.0, + "e20": 2.0, + "e21": 2.0, + "e22": 2.0, + "e23": 2.0, + "e30": 2.0, + "e31": 2.0, + "e32": 2.0, + "e33": 2.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "0ce508edff374df4bb032abe5f083cf1", + "m_Id": 2, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "e00": 0.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 0.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 0.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 0.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", @@ -252,25 +653,129 @@ { "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.BlockNode", - "m_ObjectId": "12d6f083f5bf4fe396e430f312c91445", + "m_Type": "UnityEditor.ShaderGraph.DotProductNode", + "m_ObjectId": "11c2b215d12c4952997709b16601ce21", "m_Group": { "m_Id": "" }, - "m_Name": "SurfaceDescription.Metallic", + "m_Name": "Dot Product", "m_DrawState": { "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": 0.0, - "y": 0.0, - "width": 0.0, - "height": 0.0 + "x": -415.3333435058594, + "y": 737.333251953125, + "width": 209.33331298828126, + "height": 304.0 } }, "m_Slots": [ { - "m_Id": "bed0fcfe71ee4b1e85fb3d9d7ee1e4c1" + "m_Id": "22cba68eaa70423e9470cba77ea66f7f" + }, + { + "m_Id": "2763a2e24ec94cd4818051c81a67e6e5" + }, + { + "m_Id": "530783b8df6b4117921bebd846679a96" + } + ], + "synonyms": [ + "scalar product" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "186bce80a20f46b7bd505213dbac4145", + "m_Id": 0, + "m_DisplayName": "In", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "In", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "1a6db28a6c03456083c39b3b0dfbc56a", + "m_Id": 0, + "m_DisplayName": "a", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "a", + "m_StageCapability": 3, + "m_Value": -1.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "22cba68eaa70423e9470cba77ea66f7f", + "m_Id": 0, + "m_DisplayName": "A", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "2367bc93d6e7445391b808a16728f2b9", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -389.9999694824219, + "y": 617.3333129882813, + "width": 184.00001525878907, + "height": 36.0 + } + }, + "m_Slots": [ + { + "m_Id": "2c364dcc6c61442cbf11e8ab6a564d48" } ], "synonyms": [], @@ -281,7 +786,100 @@ "m_CustomColors": { "m_SerializableColors": [] }, - "m_SerializedDescriptor": "SurfaceDescription.Metallic" + "m_Property": { + "m_Id": "025d73c9fe2e47b3853bf9a00d126af4" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "2763a2e24ec94cd4818051c81a67e6e5", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 1.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SamplerStateMaterialSlot", + "m_ObjectId": "287d5f9bb8b7491ca4de9a9f289728dd", + "m_Id": 3, + "m_DisplayName": "Sampler", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Sampler", + "m_StageCapability": 3, + "m_BareResource": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "2c364dcc6c61442cbf11e8ab6a564d48", + "m_Id": 0, + "m_DisplayName": "ShadingToonyFactor", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "2cf27a4d36454c98b25d12c294e5bc6d", + "m_Id": 2, + "m_DisplayName": "T", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "T", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "35b4cbc7d7894237be86cdf5305edaa6", + "m_Id": 2, + "m_DisplayName": "t", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "t", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] } { @@ -314,6 +912,36 @@ } } +{ + "m_SGVersion": 3, + "m_Type": "UnityEditor.ShaderGraph.Internal.ColorShaderProperty", + "m_ObjectId": "41bfcf3cf6f24e0098346d3a59224d97", + "m_Guid": { + "m_GuidSerialized": "f42a4d4f-6d88-4897-addd-f0cb1e430ab8" + }, + "m_Name": "ShadingColor", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "ShadingColor", + "m_DefaultReferenceName": "_ShadingColor", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": { + "r": 0.5849056243896484, + "g": 0.5849056243896484, + "b": 0.5849056243896484, + "a": 1.0 + }, + "isMainColor": false, + "m_ColorMode": 0 +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.BlockNode", @@ -348,6 +976,19 @@ "m_SerializedDescriptor": "VertexDescription.Tangent" } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DMaterialSlot", + "m_ObjectId": "4bd73107ed5043a6a98b42284d491e6d", + "m_Id": 0, + "m_DisplayName": "ShadingMap", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_BareResource": false +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Internal.Texture2DShaderProperty", @@ -378,6 +1019,174 @@ "m_DefaultType": 0 } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "530783b8df6b4117921bebd846679a96", + "m_Id": 2, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.MultiplyNode", + "m_ObjectId": "53ca4faac8f8465c955fe6f1c038c001", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Multiply", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -11.999979019165039, + "y": 186.0000457763672, + "width": 209.33335876464845, + "height": 304.0 + } + }, + "m_Slots": [ + { + "m_Id": "a34da0802e87442eaf359e401ba5268b" + }, + { + "m_Id": "8b4922699ee6451ba733201453de68a6" + }, + { + "m_Id": "0ce508edff374df4bb032abe5f083cf1" + } + ], + "synonyms": [ + "multiplication", + "times", + "x" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", + "m_ObjectId": "57cb21c7713343469a05eef5dde2da73", + "m_Id": 1, + "m_DisplayName": "Texture", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Texture", + "m_StageCapability": 3, + "m_BareResource": false, + "m_Texture": { + "m_SerializedTexture": "", + "m_Guid": "" + }, + "m_DefaultType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "5981590622dc4c7eb9d7eca93e62857f", + "m_Id": 1, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Internal.Texture2DShaderProperty", + "m_ObjectId": "5c4080b43fa645598a638526be476d15", + "m_Guid": { + "m_GuidSerialized": "32cac61f-148f-4535-a0a3-1b35df0ee783" + }, + "m_Name": "ShadingMap", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "ShadingMap", + "m_DefaultReferenceName": "_ShadingMap", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": { + "m_SerializedTexture": "", + "m_Guid": "" + }, + "isMainTexture": false, + "useTilingAndOffset": false, + "m_Modifiable": true, + "m_DefaultType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SaturateNode", + "m_ObjectId": "5caf44abf8c94193bae46a6c36c6bb87", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Saturate", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -162.66665649414063, + "y": 701.3333740234375, + "width": 129.3333740234375, + "height": 95.99993896484375 + } + }, + "m_Slots": [ + { + "m_Id": "186bce80a20f46b7bd505213dbac4145" + }, + { + "m_Id": "5981590622dc4c7eb9d7eca93e62857f" + } + ], + "synonyms": [ + "clamp" + ], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", @@ -395,26 +1204,89 @@ { "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.NormalMaterialSlot", - "m_ObjectId": "6ea9aa166ed74644b3a8a23458367734", - "m_Id": 0, - "m_DisplayName": "Normal (Tangent Space)", - "m_SlotType": 0, + "m_Type": "UnityEditor.ShaderGraph.NegateNode", + "m_ObjectId": "61e8c91a6b5d417f89dba58a5aaee6d8", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Negate", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -162.6666717529297, + "y": 557.3333129882813, + "width": 129.3334197998047, + "height": 96.0 + } + }, + "m_Slots": [ + { + "m_Id": "063fb8e850264b3bba0c55df7440ba52" + }, + { + "m_Id": "658f56a453034c4fa307a8e33389edf7" + } + ], + "synonyms": [ + "invert", + "opposite" + ], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "658f56a453034c4fa307a8e33389edf7", + "m_Id": 1, + "m_DisplayName": "Out", + "m_SlotType": 1, "m_Hidden": false, - "m_ShaderOutputName": "NormalTS", - "m_StageCapability": 2, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, "m_Value": { "x": 0.0, "y": 0.0, - "z": 0.0 + "z": 0.0, + "w": 0.0 }, "m_DefaultValue": { "x": 0.0, "y": 0.0, - "z": 0.0 + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "65f13b0e92a247fdb153ab9b99eb60ec", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": { + "x": 1.0, + "y": 1.0, + "z": 1.0, + "w": 1.0 }, - "m_Labels": [], - "m_Space": 3 + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } } { @@ -429,10 +1301,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": -319.1457214355469, - "y": 221.52105712890626, - "width": 209.3333282470703, - "height": 438.66668701171877 + "x": -218.0, + "y": -57.33329391479492, + "width": 184.66665649414063, + "height": 254.66664123535157 } }, "m_Slots": [ @@ -465,14 +1337,14 @@ "tex2d" ], "m_Precision": 0, - "m_PreviewExpanded": true, + "m_PreviewExpanded": false, "m_DismissedVersion": 0, "m_PreviewMode": 0, "m_CustomColors": { "m_SerializableColors": [] }, "m_TextureType": 0, - "m_NormalMapSpace": 0, + "m_NormalMapSpace": 1, "m_EnableGlobalMipBias": true, "m_MipSamplingMode": 0 } @@ -492,6 +1364,96 @@ "m_Labels": [] } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SampleTexture2DNode", + "m_ObjectId": "740353e06794457a882599bb4a70b703", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Sample Texture 2D", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -217.9999542236328, + "y": 261.3334045410156, + "width": 184.66668701171876, + "height": 254.66659545898438 + } + }, + "m_Slots": [ + { + "m_Id": "c5d09826216940f08397fb95ec32fa71" + }, + { + "m_Id": "7cef4486bdd34f3a89a63215444e9c84" + }, + { + "m_Id": "d2dbb34462e7424a9c199463bb21bdd5" + }, + { + "m_Id": "7961fc7e637341e89889fd0db0d24d91" + }, + { + "m_Id": "93ea5f2c21fd4188bfc5c6489c0baf47" + }, + { + "m_Id": "57cb21c7713343469a05eef5dde2da73" + }, + { + "m_Id": "f968d08982784ea0bdea3db8ea689dd2" + }, + { + "m_Id": "287d5f9bb8b7491ca4de9a9f289728dd" + } + ], + "synonyms": [ + "tex2d" + ], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_TextureType": 0, + "m_NormalMapSpace": 1, + "m_EnableGlobalMipBias": true, + "m_MipSamplingMode": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "7961fc7e637341e89889fd0db0d24d91", + "m_Id": 6, + "m_DisplayName": "B", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "7cef4486bdd34f3a89a63215444e9c84", + "m_Id": 4, + "m_DisplayName": "R", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "R", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.BlockNode", @@ -532,8 +1494,20 @@ "m_ObjectId": "867e133e4da04154ac66a450c056f228", "m_Name": "", "m_ChildObjectList": [ + { + "m_Id": "c6ae1333e8494c6292d560a6a0c1126e" + }, { "m_Id": "4e79611254fb4f7ebaa9dc55ea52a427" + }, + { + "m_Id": "41bfcf3cf6f24e0098346d3a59224d97" + }, + { + "m_Id": "5c4080b43fa645598a638526be476d15" + }, + { + "m_Id": "025d73c9fe2e47b3853bf9a00d126af4" } ] } @@ -551,6 +1525,54 @@ "m_BareResource": false } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "8b4922699ee6451ba733201453de68a6", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": { + "e00": 2.0, + "e01": 2.0, + "e02": 2.0, + "e03": 2.0, + "e10": 2.0, + "e11": 2.0, + "e12": 2.0, + "e13": 2.0, + "e20": 2.0, + "e21": 2.0, + "e22": 2.0, + "e23": 2.0, + "e30": 2.0, + "e31": 2.0, + "e32": 2.0, + "e33": 2.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.BlockNode", @@ -587,46 +1609,66 @@ { "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.BlockNode", - "m_ObjectId": "945c5856342a4d05a37a15c8fd76dd91", - "m_Group": { - "m_Id": "" + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "8f535cbbf2854293a08dec8d8aa7986e", + "m_Id": 3, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 }, - "m_Name": "SurfaceDescription.Smoothness", - "m_DrawState": { - "m_Expanded": true, - "m_Position": { - "serializedVersion": "2", - "x": 0.0, - "y": 0.0, - "width": 0.0, - "height": 0.0 - } - }, - "m_Slots": [ - { - "m_Id": "da4800c1d386405fb154caff690abd85" - } - ], - "synonyms": [], - "m_Precision": 0, - "m_PreviewExpanded": true, - "m_DismissedVersion": 0, - "m_PreviewMode": 0, - "m_CustomColors": { - "m_SerializableColors": [] - }, - "m_SerializedDescriptor": "SurfaceDescription.Smoothness" + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } } { - "m_SGVersion": 2, - "m_Type": "UnityEditor.Rendering.Universal.ShaderGraph.UniversalLitSubTarget", - "m_ObjectId": "97355bb871ae412c90915a1c95a39813", - "m_WorkflowMode": 1, - "m_NormalDropOffSpace": 0, - "m_ClearCoat": false, - "m_BlendModePreserveSpecular": true + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "93ea5f2c21fd4188bfc5c6489c0baf47", + "m_Id": 7, + "m_DisplayName": "A", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "9588546692ca4354acbdb16148b88365", + "m_Id": 0, + "m_DisplayName": "ShadingColor", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_Labels": [] } { @@ -654,40 +1696,6 @@ "m_Labels": [] } -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.BlockNode", - "m_ObjectId": "978fb2b4d6a64b13baf4df534019c0ef", - "m_Group": { - "m_Id": "" - }, - "m_Name": "SurfaceDescription.NormalTS", - "m_DrawState": { - "m_Expanded": true, - "m_Position": { - "serializedVersion": "2", - "x": 0.0, - "y": 0.0, - "width": 0.0, - "height": 0.0 - } - }, - "m_Slots": [ - { - "m_Id": "6ea9aa166ed74644b3a8a23458367734" - } - ], - "synonyms": [], - "m_Precision": 0, - "m_PreviewExpanded": true, - "m_DismissedVersion": 0, - "m_PreviewMode": 0, - "m_CustomColors": { - "m_SerializableColors": [] - }, - "m_SerializedDescriptor": "SurfaceDescription.NormalTS" -} - { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", @@ -703,6 +1711,227 @@ "m_Labels": [] } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "9e9053ae73f94d2f99ce33a60274938f", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -393.9999694824219, + "y": 225.33338928222657, + "width": 139.33331298828126, + "height": 35.99992370605469 + } + }, + "m_Slots": [ + { + "m_Id": "9588546692ca4354acbdb16148b88365" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "41bfcf3cf6f24e0098346d3a59224d97" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", + "m_ObjectId": "a2233950ab514a708c59193dc0931934", + "m_Id": 0, + "m_DisplayName": "Direction", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Direction", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "a34da0802e87442eaf359e401ba5268b", + "m_Id": 0, + "m_DisplayName": "A", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": { + "e00": 0.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 0.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 0.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 0.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.MultiplyNode", + "m_ObjectId": "a62805bf0771413ba8c1e8f51ad17b54", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Multiply", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -12.000016212463379, + "y": -131.3333282470703, + "width": 209.33334350585938, + "height": 304.0 + } + }, + "m_Slots": [ + { + "m_Id": "ec4dcc25a33a4887adbbbe8bf7ba2d83" + }, + { + "m_Id": "0acaf0553f7946bfb5829bdc191aaed7" + }, + { + "m_Id": "f4bbe10db634492a8b729d010310abe0" + } + ], + "synonyms": [ + "multiplication", + "times", + "x" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.MainLightDirectionNode", + "m_ObjectId": "aa688b600dbe46bfa78fda5e3d5fdd0b", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Main Light Direction", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -670.6666870117188, + "y": 691.333251953125, + "width": 161.33334350585938, + "height": 78.666748046875 + } + }, + "m_Slots": [ + { + "m_Id": "a2233950ab514a708c59193dc0931934" + } + ], + "synonyms": [ + "sun" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "b81474aeedbf4efa8c1bc90bb75c99a9", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -390.0, + "y": -93.33330535888672, + "width": 132.0, + "height": 36.0000114440918 + } + }, + "m_Slots": [ + { + "m_Id": "fb9fb639830c4cf69bfd994cb2ed4c29" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "c6ae1333e8494c6292d560a6a0c1126e" + } +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.TangentMaterialSlot", @@ -729,40 +1958,25 @@ { "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", - "m_ObjectId": "bed0fcfe71ee4b1e85fb3d9d7ee1e4c1", - "m_Id": 0, - "m_DisplayName": "Metallic", - "m_SlotType": 0, - "m_Hidden": false, - "m_ShaderOutputName": "Metallic", - "m_StageCapability": 2, - "m_Value": 0.0, - "m_DefaultValue": 0.0, - "m_Labels": [] -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.BlockNode", - "m_ObjectId": "c043e21ac8d54fe3af1f367b6682ea76", + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "c0677ef2e2bf4d488e08da8a6f0fd932", "m_Group": { "m_Id": "" }, - "m_Name": "SurfaceDescription.Occlusion", + "m_Name": "Property", "m_DrawState": { "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": 0.0, - "y": 0.0, - "width": 0.0, - "height": 0.0 + "x": -391.3332824707031, + "y": 289.3334045410156, + "width": 140.6666259765625, + "height": 36.0 } }, "m_Slots": [ { - "m_Id": "e0d5d67a35d246f4be028fa5a4c778bf" + "m_Id": "4bd73107ed5043a6a98b42284d491e6d" } ], "synonyms": [], @@ -773,7 +1987,64 @@ "m_CustomColors": { "m_SerializableColors": [] }, - "m_SerializedDescriptor": "SurfaceDescription.Occlusion" + "m_Property": { + "m_Id": "5c4080b43fa645598a638526be476d15" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "c5d09826216940f08397fb95ec32fa71", + "m_Id": 0, + "m_DisplayName": "RGBA", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "RGBA", + "m_StageCapability": 2, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 3, + "m_Type": "UnityEditor.ShaderGraph.Internal.ColorShaderProperty", + "m_ObjectId": "c6ae1333e8494c6292d560a6a0c1126e", + "m_Guid": { + "m_GuidSerialized": "e4a91be8-41b1-46a6-8fb3-cee571683ce1" + }, + "m_Name": "BaseColor", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "BaseColor", + "m_DefaultReferenceName": "_BaseColor", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": { + "r": 1.0, + "g": 1.0, + "b": 1.0, + "a": 0.0 + }, + "isMainColor": false, + "m_ColorMode": 0 } { @@ -782,7 +2053,7 @@ "m_ObjectId": "cd04b2ec603c4ce98f51d924e2a512c2", "m_Datas": [], "m_ActiveSubTarget": { - "m_Id": "97355bb871ae412c90915a1c95a39813" + "m_Id": "cd81c525151142c89a6af7f574fd628b" }, "m_AllowMaterialOverride": false, "m_SurfaceType": 0, @@ -798,6 +2069,27 @@ "m_SupportVFX": false } +{ + "m_SGVersion": 2, + "m_Type": "UnityEditor.Rendering.Universal.ShaderGraph.UniversalUnlitSubTarget", + "m_ObjectId": "cd81c525151142c89a6af7f574fd628b" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "d2dbb34462e7424a9c199463bb21bdd5", + "m_Id": 5, + "m_DisplayName": "G", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "G", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", @@ -818,32 +2110,38 @@ { "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", - "m_ObjectId": "da4800c1d386405fb154caff690abd85", - "m_Id": 0, - "m_DisplayName": "Smoothness", - "m_SlotType": 0, - "m_Hidden": false, - "m_ShaderOutputName": "Smoothness", - "m_StageCapability": 2, - "m_Value": 0.5, - "m_DefaultValue": 0.5, - "m_Labels": [] -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", - "m_ObjectId": "e0d5d67a35d246f4be028fa5a4c778bf", - "m_Id": 0, - "m_DisplayName": "Ambient Occlusion", - "m_SlotType": 0, - "m_Hidden": false, - "m_ShaderOutputName": "Occlusion", - "m_StageCapability": 2, - "m_Value": 1.0, - "m_DefaultValue": 1.0, - "m_Labels": [] + "m_Type": "UnityEditor.ShaderGraph.NormalVectorNode", + "m_ObjectId": "e202f291b6294c1c980899f1ab2ca582", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Normal Vector", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -718.6666870117188, + "y": 792.6666259765625, + "width": 209.33334350585938, + "height": 318.6666259765625 + } + }, + "m_Slots": [ + { + "m_Id": "f1db522d48544626941467ff25d95e13" + } + ], + "synonyms": [ + "surface direction" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 2, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Space": 2 } { @@ -880,6 +2178,52 @@ "m_SerializedDescriptor": "SurfaceDescription.BaseColor" } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.LerpNode", + "m_ObjectId": "e41f220e296b4cc2a9a3c1faf14d7d72", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Lerp", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 262.66668701171877, + "y": 95.3333740234375, + "width": 209.33328247070313, + "height": 327.99993896484377 + } + }, + "m_Slots": [ + { + "m_Id": "f22a1522c3bb47bf8416a9fbb8262bb4" + }, + { + "m_Id": "65f13b0e92a247fdb153ab9b99eb60ec" + }, + { + "m_Id": "2cf27a4d36454c98b25d12c294e5bc6d" + }, + { + "m_Id": "8f535cbbf2854293a08dec8d8aa7986e" + } + ], + "synonyms": [ + "mix", + "blend", + "linear interpolate" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.UVMaterialSlot", @@ -904,36 +2248,112 @@ { "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.BlockNode", - "m_ObjectId": "ef80aee428f942ea9ba07ca5ff70d8b7", - "m_Group": { - "m_Id": "" + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "ec4dcc25a33a4887adbbbe8bf7ba2d83", + "m_Id": 0, + "m_DisplayName": "A", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": { + "e00": 0.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 0.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 0.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 0.0 }, - "m_Name": "SurfaceDescription.Emission", - "m_DrawState": { - "m_Expanded": true, - "m_Position": { - "serializedVersion": "2", - "x": 0.0, - "y": 0.0, - "width": 0.0, - "height": 0.0 - } + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "ec6717fc07224569802ff5be80e915d7", + "m_Id": 3, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", + "m_ObjectId": "f1db522d48544626941467ff25d95e13", + "m_Id": 0, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 1.0 }, - "m_Slots": [ - { - "m_Id": "019aac67658b4391a0fbbde2235300db" - } - ], - "synonyms": [], - "m_Precision": 0, - "m_PreviewExpanded": true, - "m_DismissedVersion": 0, - "m_PreviewMode": 0, - "m_CustomColors": { - "m_SerializableColors": [] + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 }, - "m_SerializedDescriptor": "SurfaceDescription.Emission" + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "f22a1522c3bb47bf8416a9fbb8262bb4", + "m_Id": 0, + "m_DisplayName": "A", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } } { @@ -960,6 +2380,69 @@ "m_Space": 0 } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "f4bbe10db634492a8b729d010310abe0", + "m_Id": 2, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "e00": 0.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 0.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 0.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 0.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "f55b8ae1b1c7406ca3a2b32d737adf05", + "m_Id": 1, + "m_DisplayName": "b", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "b", + "m_StageCapability": 3, + "m_Value": 1.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.SamplerStateMaterialSlot", @@ -973,3 +2456,50 @@ "m_BareResource": false } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.UVMaterialSlot", + "m_ObjectId": "f968d08982784ea0bdea3db8ea689dd2", + "m_Id": 2, + "m_DisplayName": "UV", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "UV", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0 + }, + "m_Labels": [], + "m_Channel": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "fb9fb639830c4cf69bfd994cb2ed4c29", + "m_Id": 0, + "m_DisplayName": "BaseColor", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_Labels": [] +} + diff --git a/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyPbrSubGraph.shadersubgraph b/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyPbrSubGraph.shadersubgraph index 10d440638..06a421e45 100644 --- a/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyPbrSubGraph.shadersubgraph +++ b/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyPbrSubGraph.shadersubgraph @@ -2554,10 +2554,10 @@ "m_Expanded": false, "m_Position": { "serializedVersion": "2", - "x": -14.666682243347168, - "y": 77.33332824707031, - "width": 157.33334350585938, - "height": 158.66665649414063 + "x": -60.00007629394531, + "y": 77.33324432373047, + "width": 157.3333282470703, + "height": 157.33343505859376 } }, "m_Slots": [ @@ -3029,10 +3029,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": 536.0, - "y": -22.00001335144043, - "width": 149.33331298828126, - "height": 198.66668701171876 + "x": 660.666748046875, + "y": 2.000000238418579, + "width": 149.3331298828125, + "height": 222.66671752929688 } }, "m_Slots": [ @@ -3244,10 +3244,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": 231.33331298828126, - "y": 17.333377838134767, - "width": 127.33328247070313, - "height": 119.99998474121094 + "x": 125.33326721191406, + "y": -38.66671371459961, + "width": 209.33335876464845, + "height": 303.9999694824219 } }, "m_Slots": [ @@ -3267,7 +3267,7 @@ "x" ], "m_Precision": 0, - "m_PreviewExpanded": false, + "m_PreviewExpanded": true, "m_DismissedVersion": 0, "m_PreviewMode": 0, "m_CustomColors": { @@ -3741,10 +3741,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": 227.33331298828126, - "y": -282.0, - "width": 131.33334350585938, - "height": 119.99998474121094 + "x": 253.9999237060547, + "y": -385.9999694824219, + "width": 209.33335876464845, + "height": 303.9999694824219 } }, "m_Slots": [ @@ -3764,7 +3764,7 @@ "x" ], "m_Precision": 0, - "m_PreviewExpanded": false, + "m_PreviewExpanded": true, "m_DismissedVersion": 0, "m_PreviewMode": 0, "m_CustomColors": { diff --git a/Assets/VRM10_Samples/VRM10Viewer/TinyMToonMaterialContext.cs b/Assets/VRM10_Samples/VRM10Viewer/TinyMToonMaterialContext.cs index 4df95163d..d74440732 100644 --- a/Assets/VRM10_Samples/VRM10Viewer/TinyMToonMaterialContext.cs +++ b/Assets/VRM10_Samples/VRM10Viewer/TinyMToonMaterialContext.cs @@ -1,3 +1,4 @@ +using System.Dynamic; using UnityEngine; namespace UniVRM10.VRM10Viewer @@ -17,21 +18,11 @@ namespace UniVRM10.VRM10Viewer /// When using shadergraph, require "Set as Main Texture" /// private static readonly int BaseMapProp = Shader.PropertyToID("_BaseMap"); - /// - /// float = 1.0 - /// - private static readonly int OcclusionStrengthProp = Shader.PropertyToID("_OcclusionStrength"); - /// - /// Texture2D.Red = 1.0. - /// - private static readonly int OcclusionMapProp = Shader.PropertyToID("_OcclusionMap"); - private static readonly int RoughnessProp = Shader.PropertyToID("_Roughness"); - private static readonly int MetallicProp = Shader.PropertyToID("_Metallic"); - /// - /// Texture2D.Green = 1.0. The roughness - /// Texture2D.Blue = 1.0. The metalness - /// - private static readonly int MetallicRoughnessMapProp = Shader.PropertyToID("_MetallicRoughnessMap"); + + private static readonly int ShadingColorFactorProp = Shader.PropertyToID("_ShadingColor"); + private static readonly int ShadingMapProp = Shader.PropertyToID("_ShadingMap"); + private static readonly int ShadingToonyFactorProp = Shader.PropertyToID("_ShadingToonyFactor"); + /// /// float = 1.0 /// @@ -40,6 +31,7 @@ namespace UniVRM10.VRM10Viewer /// Texture2D = [0, 0, 1.0] /// private static readonly int BumpMapProp = Shader.PropertyToID("_BumpMap"); + /// /// Color = black /// @@ -48,6 +40,7 @@ namespace UniVRM10.VRM10Viewer /// Texture2D = black /// private static readonly int EmissionMapProp = Shader.PropertyToID("_EmissionMap"); + /// /// boolean keyword /// @@ -84,34 +77,20 @@ namespace UniVRM10.VRM10Viewer set => Material.SetTextureScale(BaseMapProp, value); } - public float OcclusionStrength + public Color ShadingColorFactorSrgb { - get => Material.GetFloat(OcclusionStrengthProp); - set => Material.SetFloat(OcclusionStrengthProp, value); + get => Material.GetColor(ShadingColorFactorProp); + set => Material.SetColor(ShadingColorFactorProp, value); } - public Texture OcclusionTexture + public Texture ShadingTexture { - get => Material.GetTexture(OcclusionMapProp); - set - { - Material.SetTexture(OcclusionMapProp, value); - } + get => Material.GetTexture(ShadingMapProp); + set => Material.SetTexture(ShadingMapProp, value); } - - public float Roughness + public float ShadingToonyFactor { - get => Material.GetFloat(RoughnessProp); - set => Material.SetFloat(RoughnessProp, value); - } - public float Metallic - { - get => Material.GetFloat(MetallicProp); - set => Material.SetFloat(MetallicProp, value); - } - public Texture MetallicRoughnessMap - { - get => Material.GetTexture(MetallicRoughnessMapProp); - set => Material.SetTexture(MetallicRoughnessMapProp, value); + get => Material.GetFloat(ShadingToonyFactorProp); + set => Material.SetFloat(ShadingToonyFactorProp, value); } public float BumpScale diff --git a/Assets/VRM10_Samples/VRM10Viewer/TinyMToonMaterialImporter.cs b/Assets/VRM10_Samples/VRM10Viewer/TinyMToonMaterialImporter.cs index 9da754da7..5801562d8 100644 --- a/Assets/VRM10_Samples/VRM10Viewer/TinyMToonMaterialImporter.cs +++ b/Assets/VRM10_Samples/VRM10Viewer/TinyMToonMaterialImporter.cs @@ -2,6 +2,7 @@ using System; using System.Collections.Generic; using System.Threading.Tasks; using UniGLTF; +using UniGLTF.Extensions.VRMC_materials_mtoon; using UnityEngine; namespace UniVRM10.VRM10Viewer @@ -43,15 +44,15 @@ namespace UniVRM10.VRM10Viewer ); return true; - Task AsyncAction(Material x, GetTextureAsyncFunc y, IAwaitCaller z) => GenerateMaterialAsync(data, src, x, y, z); + Task AsyncAction(Material x, GetTextureAsyncFunc y, IAwaitCaller z) => GenerateMaterialAsync(data, src, mtoon, x, y, z); } - public static async Task GenerateMaterialAsync(GltfData data, glTFMaterial src, Material dst, GetTextureAsyncFunc getTextureAsync, IAwaitCaller awaitCaller) + public static async Task GenerateMaterialAsync(GltfData data, glTFMaterial src, VRMC_materials_mtoon mtoon, Material dst, GetTextureAsyncFunc getTextureAsync, IAwaitCaller awaitCaller) { var context = new TinyMToonMaterialContext(dst); // ImportSurfaceSettings(src, context); - await ImportBaseColorAsync(data, src, context, getTextureAsync, awaitCaller); + await ImportBaseShadeColorAsync(data, src, mtoon, context, getTextureAsync, awaitCaller); // await ImportMetallicRoughnessAsync(data, src, context, getTextureAsync, awaitCaller); // await ImportOcclusionAsync(data, src, context, getTextureAsync, awaitCaller); // await ImportNormalAsync(data, src, context, getTextureAsync, awaitCaller); @@ -60,7 +61,7 @@ namespace UniVRM10.VRM10Viewer // context.Validate(); } - public static async Task ImportBaseColorAsync(GltfData data, glTFMaterial src, TinyMToonMaterialContext context, GetTextureAsyncFunc getTextureAsync, IAwaitCaller awaitCaller) + public static async Task ImportBaseShadeColorAsync(GltfData data, glTFMaterial src, VRMC_materials_mtoon mtoon, TinyMToonMaterialContext context, GetTextureAsyncFunc getTextureAsync, IAwaitCaller awaitCaller) { var baseColorFactor = GltfMaterialImportUtils.ImportLinearBaseColorFactor(data, src); if (baseColorFactor.HasValue) @@ -77,6 +78,17 @@ namespace UniVRM10.VRM10Viewer context.BaseTextureScale = desc.Scale; } } + + context.ShadingToonyFactor = mtoon.ShadingToonyFactor.GetValueOrDefault(); + var shadeColor = mtoon.ShadeColorFactor?.ToColor3(UniGLTF.ColorSpace.Linear, UniGLTF.ColorSpace.sRGB); + context.ShadingColorFactorSrgb = shadeColor.GetValueOrDefault(Color.white); + if (mtoon is { ShadeMultiplyTexture: { Index: >= 0 } }) + { + if (Vrm10MToonTextureImporter.TryGetShadeMultiplyTexture(data, mtoon, out var _, out var desc)) + { + context.ShadingTexture = await getTextureAsync(desc, awaitCaller); + } + } } } } \ No newline at end of file From 1553402a97201ebdf3986098ff3780462cc362e4 Mon Sep 17 00:00:00 2001 From: ousttrue Date: Fri, 7 Feb 2025 14:51:51 +0900 Subject: [PATCH 13/56] TinyMToonAlphaBlend --- .../Assets/TinyMToonAlphaBlend.shadergraph | 1182 +++++++ .../TinyMToonAlphaBlend.shadergraph.meta | 10 + .../Assets/TinyMToonOpaque.shadergraph | 1740 +--------- .../Assets/TinyMToon_SubGraph.shadersubgraph | 2836 +++++++++++++++++ .../TinyMToon_SubGraph.shadersubgraph.meta | 10 + ...bgraph => TinyPbr_SubGraph.shadersubgraph} | 0 ...a => TinyPbr_SubGraph.shadersubgraph.meta} | 0 .../VRM10Viewer/TinyMToonMaterialImporter.cs | 8 +- .../VRM10Viewer/VRM10Viewer.unity | 6 +- .../VRM10Viewer/VRM10ViewerUI.cs | 12 +- 10 files changed, 4228 insertions(+), 1576 deletions(-) create mode 100644 Assets/VRM10_Samples/VRM10Viewer/Assets/TinyMToonAlphaBlend.shadergraph create mode 100644 Assets/VRM10_Samples/VRM10Viewer/Assets/TinyMToonAlphaBlend.shadergraph.meta create mode 100644 Assets/VRM10_Samples/VRM10Viewer/Assets/TinyMToon_SubGraph.shadersubgraph create mode 100644 Assets/VRM10_Samples/VRM10Viewer/Assets/TinyMToon_SubGraph.shadersubgraph.meta rename Assets/VRM10_Samples/VRM10Viewer/Assets/{TinyPbrSubGraph.shadersubgraph => TinyPbr_SubGraph.shadersubgraph} (100%) rename Assets/VRM10_Samples/VRM10Viewer/Assets/{TinyPbrSubGraph.shadersubgraph.meta => TinyPbr_SubGraph.shadersubgraph.meta} (100%) diff --git a/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyMToonAlphaBlend.shadergraph b/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyMToonAlphaBlend.shadergraph new file mode 100644 index 000000000..146731b20 --- /dev/null +++ b/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyMToonAlphaBlend.shadergraph @@ -0,0 +1,1182 @@ +{ + "m_SGVersion": 3, + "m_Type": "UnityEditor.ShaderGraph.GraphData", + "m_ObjectId": "5e8062d7742046c5a0cbef2f61ceca95", + "m_Properties": [ + { + "m_Id": "4e79611254fb4f7ebaa9dc55ea52a427" + }, + { + "m_Id": "41bfcf3cf6f24e0098346d3a59224d97" + }, + { + "m_Id": "5c4080b43fa645598a638526be476d15" + }, + { + "m_Id": "c6ae1333e8494c6292d560a6a0c1126e" + }, + { + "m_Id": "025d73c9fe2e47b3853bf9a00d126af4" + } + ], + "m_Keywords": [], + "m_Dropdowns": [], + "m_CategoryData": [ + { + "m_Id": "867e133e4da04154ac66a450c056f228" + } + ], + "m_Nodes": [ + { + "m_Id": "8e6b987b3d2e4b438d4618bd99e12be6" + }, + { + "m_Id": "7e3c0b97666e47ffa0460010d1a64071" + }, + { + "m_Id": "4ad89151ecf0451d9f92f4db3f59ca3d" + }, + { + "m_Id": "e27b69744886424eb5f477011f04efd2" + }, + { + "m_Id": "001956a26193431db776814a0429e033" + }, + { + "m_Id": "9e9053ae73f94d2f99ce33a60274938f" + }, + { + "m_Id": "c0677ef2e2bf4d488e08da8a6f0fd932" + }, + { + "m_Id": "b81474aeedbf4efa8c1bc90bb75c99a9" + }, + { + "m_Id": "2367bc93d6e7445391b808a16728f2b9" + }, + { + "m_Id": "0776e82cf5bc4372962108bf3847d1d0" + }, + { + "m_Id": "df96d56bdf664324a1b96c21e76b4a17" + } + ], + "m_GroupDatas": [], + "m_StickyNoteDatas": [], + "m_Edges": [ + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "001956a26193431db776814a0429e033" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "0776e82cf5bc4372962108bf3847d1d0" + }, + "m_SlotId": -643094866 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "0776e82cf5bc4372962108bf3847d1d0" + }, + "m_SlotId": 1 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "e27b69744886424eb5f477011f04efd2" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "0776e82cf5bc4372962108bf3847d1d0" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "df96d56bdf664324a1b96c21e76b4a17" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "2367bc93d6e7445391b808a16728f2b9" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "0776e82cf5bc4372962108bf3847d1d0" + }, + "m_SlotId": -1559276299 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "9e9053ae73f94d2f99ce33a60274938f" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "0776e82cf5bc4372962108bf3847d1d0" + }, + "m_SlotId": 2016068918 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "b81474aeedbf4efa8c1bc90bb75c99a9" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "0776e82cf5bc4372962108bf3847d1d0" + }, + "m_SlotId": 1340748427 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "c0677ef2e2bf4d488e08da8a6f0fd932" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "0776e82cf5bc4372962108bf3847d1d0" + }, + "m_SlotId": 1221667242 + } + } + ], + "m_VertexContext": { + "m_Position": { + "x": 544.0000610351563, + "y": -131.33334350585938 + }, + "m_Blocks": [ + { + "m_Id": "8e6b987b3d2e4b438d4618bd99e12be6" + }, + { + "m_Id": "7e3c0b97666e47ffa0460010d1a64071" + }, + { + "m_Id": "4ad89151ecf0451d9f92f4db3f59ca3d" + } + ] + }, + "m_FragmentContext": { + "m_Position": { + "x": 544.0000610351563, + "y": 95.33334350585938 + }, + "m_Blocks": [ + { + "m_Id": "e27b69744886424eb5f477011f04efd2" + }, + { + "m_Id": "df96d56bdf664324a1b96c21e76b4a17" + } + ] + }, + "m_PreviewData": { + "serializedMesh": { + "m_SerializedMesh": "{\"mesh\":{\"instanceID\":0}}", + "m_Guid": "" + }, + "preventRotation": false + }, + "m_Path": "Shader Graphs", + "m_GraphPrecision": 1, + "m_PreviewMode": 2, + "m_OutputNode": { + "m_Id": "" + }, + "m_SubDatas": [], + "m_ActiveTargets": [ + { + "m_Id": "cd04b2ec603c4ce98f51d924e2a512c2" + } + ] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "001956a26193431db776814a0429e033", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 27.333396911621095, + "y": 113.33332824707031, + "width": 133.33331298828126, + "height": 35.999969482421878 + } + }, + "m_Slots": [ + { + "m_Id": "896378e2743d4645bbfd8533cf1826e5" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "4e79611254fb4f7ebaa9dc55ea52a427" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "018b3bf4033e49fc9f98b77e0886c132", + "m_Id": 1340748427, + "m_DisplayName": "BaseColor", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "_BaseColor", + "m_StageCapability": 2, + "m_Value": { + "x": 1.0, + "y": 1.0, + "z": 1.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.NormalMaterialSlot", + "m_ObjectId": "01c54a54e6cb42a290e72e354571cec5", + "m_Id": 0, + "m_DisplayName": "Normal", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Normal", + "m_StageCapability": 1, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_Space": 0 +} + +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty", + "m_ObjectId": "025d73c9fe2e47b3853bf9a00d126af4", + "m_Guid": { + "m_GuidSerialized": "faf3291f-b550-41b3-b53d-2a983b8f3183" + }, + "m_Name": "ShadingToonyFactor", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "ShadingToonyFactor", + "m_DefaultReferenceName": "_ShadingToonyFactor", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": 0.0, + "m_FloatType": 0, + "m_RangeValues": { + "x": 0.0, + "y": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SubGraphNode", + "m_ObjectId": "0776e82cf5bc4372962108bf3847d1d0", + "m_Group": { + "m_Id": "" + }, + "m_Name": "TinyMToon_SubGraph", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 240.66665649414063, + "y": 95.33334350585938, + "width": 265.3334045410156, + "height": 377.3332824707031 + } + }, + "m_Slots": [ + { + "m_Id": "018b3bf4033e49fc9f98b77e0886c132" + }, + { + "m_Id": "7e0c1e8c83e24c23985adb526ecaef3f" + }, + { + "m_Id": "d38dd7e5f50e4fa09df0f606f2e323be" + }, + { + "m_Id": "9a2d5569fa30469981f78f76b4b050f0" + }, + { + "m_Id": "ead31769aa464a4e8aae7a3cfa026b2c" + }, + { + "m_Id": "e6c1845b1ff7420192f4e36917f71689" + }, + { + "m_Id": "5411d859ca084103badb8b7863988cb2" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedSubGraph": "{\n \"subGraph\": {\n \"fileID\": -5475051401550479605,\n \"guid\": \"45c6d2335bae988419dbc2ec65c33dae\",\n \"type\": 3\n }\n}", + "m_PropertyGuids": [ + "e0a3ade0-ddd9-4c69-b3b5-923901f7b2da", + "d2495ca0-f5eb-484a-bd18-dca0589774e3", + "916faab9-cc1c-4621-84b8-9c47171bf8e8", + "ad5cc3fe-a5f8-4a48-9956-35d13519f07e", + "fa354438-5a66-4424-a53f-da950e75c488" + ], + "m_PropertyIds": [ + 1340748427, + -643094866, + 2016068918, + 1221667242, + -1559276299 + ], + "m_Dropdowns": [], + "m_DropdownSelectedEntries": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "2367bc93d6e7445391b808a16728f2b9", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -24.666656494140626, + "y": 222.0, + "width": 185.3333740234375, + "height": 35.999969482421878 + } + }, + "m_Slots": [ + { + "m_Id": "2c364dcc6c61442cbf11e8ab6a564d48" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "025d73c9fe2e47b3853bf9a00d126af4" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "2c364dcc6c61442cbf11e8ab6a564d48", + "m_Id": 0, + "m_DisplayName": "ShadingToonyFactor", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.ColorRGBMaterialSlot", + "m_ObjectId": "3b076e005942425f99ce3907ec24fe79", + "m_Id": 0, + "m_DisplayName": "Base Color", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "BaseColor", + "m_StageCapability": 2, + "m_Value": { + "x": 0.5, + "y": 0.5, + "z": 0.5 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_ColorMode": 0, + "m_DefaultColor": { + "r": 0.5, + "g": 0.5, + "b": 0.5, + "a": 1.0 + } +} + +{ + "m_SGVersion": 3, + "m_Type": "UnityEditor.ShaderGraph.Internal.ColorShaderProperty", + "m_ObjectId": "41bfcf3cf6f24e0098346d3a59224d97", + "m_Guid": { + "m_GuidSerialized": "f42a4d4f-6d88-4897-addd-f0cb1e430ab8" + }, + "m_Name": "ShadingColor", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "ShadingColor", + "m_DefaultReferenceName": "_ShadingColor", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": { + "r": 0.5849056243896484, + "g": 0.5849056243896484, + "b": 0.5849056243896484, + "a": 1.0 + }, + "isMainColor": false, + "m_ColorMode": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "4ad89151ecf0451d9f92f4db3f59ca3d", + "m_Group": { + "m_Id": "" + }, + "m_Name": "VertexDescription.Tangent", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 0.0, + "y": 0.0, + "width": 0.0, + "height": 0.0 + } + }, + "m_Slots": [ + { + "m_Id": "b977eab87a834a02956948283a300909" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "VertexDescription.Tangent" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DMaterialSlot", + "m_ObjectId": "4bd73107ed5043a6a98b42284d491e6d", + "m_Id": 0, + "m_DisplayName": "ShadingMap", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_BareResource": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Internal.Texture2DShaderProperty", + "m_ObjectId": "4e79611254fb4f7ebaa9dc55ea52a427", + "m_Guid": { + "m_GuidSerialized": "8ba0f7ac-16b0-4874-83a9-5f7ed0c10efa" + }, + "m_Name": "BaseMap", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "BaseMap", + "m_DefaultReferenceName": "_BaseMap", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": { + "m_SerializedTexture": "", + "m_Guid": "" + }, + "isMainTexture": true, + "useTilingAndOffset": true, + "m_Modifiable": true, + "m_DefaultType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "5411d859ca084103badb8b7863988cb2", + "m_Id": 2, + "m_DisplayName": "Alpha", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Alpha", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Internal.Texture2DShaderProperty", + "m_ObjectId": "5c4080b43fa645598a638526be476d15", + "m_Guid": { + "m_GuidSerialized": "32cac61f-148f-4535-a0a3-1b35df0ee783" + }, + "m_Name": "ShadingMap", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "ShadingMap", + "m_DefaultReferenceName": "_ShadingMap", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": { + "m_SerializedTexture": "", + "m_Guid": "" + }, + "isMainTexture": false, + "useTilingAndOffset": false, + "m_Modifiable": true, + "m_DefaultType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "6362e795c9f74fd88710a3e8fd53744c", + "m_Id": 0, + "m_DisplayName": "Alpha", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Alpha", + "m_StageCapability": 2, + "m_Value": 1.0, + "m_DefaultValue": 1.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", + "m_ObjectId": "7e0c1e8c83e24c23985adb526ecaef3f", + "m_Id": -643094866, + "m_DisplayName": "BaseMap", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "_BaseMap", + "m_StageCapability": 2, + "m_BareResource": false, + "m_Texture": { + "m_SerializedTexture": "", + "m_Guid": "" + }, + "m_DefaultType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "7e3c0b97666e47ffa0460010d1a64071", + "m_Group": { + "m_Id": "" + }, + "m_Name": "VertexDescription.Normal", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 0.0, + "y": 0.0, + "width": 0.0, + "height": 0.0 + } + }, + "m_Slots": [ + { + "m_Id": "01c54a54e6cb42a290e72e354571cec5" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "VertexDescription.Normal" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.CategoryData", + "m_ObjectId": "867e133e4da04154ac66a450c056f228", + "m_Name": "", + "m_ChildObjectList": [ + { + "m_Id": "c6ae1333e8494c6292d560a6a0c1126e" + }, + { + "m_Id": "4e79611254fb4f7ebaa9dc55ea52a427" + }, + { + "m_Id": "41bfcf3cf6f24e0098346d3a59224d97" + }, + { + "m_Id": "5c4080b43fa645598a638526be476d15" + }, + { + "m_Id": "025d73c9fe2e47b3853bf9a00d126af4" + } + ] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DMaterialSlot", + "m_ObjectId": "896378e2743d4645bbfd8533cf1826e5", + "m_Id": 0, + "m_DisplayName": "BaseMap", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_BareResource": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "8e6b987b3d2e4b438d4618bd99e12be6", + "m_Group": { + "m_Id": "" + }, + "m_Name": "VertexDescription.Position", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 0.0, + "y": 0.0, + "width": 0.0, + "height": 0.0 + } + }, + "m_Slots": [ + { + "m_Id": "f3a2f016faaf422f9c936817f13cb82d" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "VertexDescription.Position" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "9588546692ca4354acbdb16148b88365", + "m_Id": 0, + "m_DisplayName": "ShadingColor", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", + "m_ObjectId": "9a2d5569fa30469981f78f76b4b050f0", + "m_Id": 1221667242, + "m_DisplayName": "ShadingColorMap", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "_ShadingColorMap", + "m_StageCapability": 2, + "m_BareResource": false, + "m_Texture": { + "m_SerializedTexture": "", + "m_Guid": "" + }, + "m_DefaultType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "9e9053ae73f94d2f99ce33a60274938f", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 12.000022888183594, + "y": 149.3332977294922, + "width": 148.66668701171876, + "height": 36.00001525878906 + } + }, + "m_Slots": [ + { + "m_Id": "9588546692ca4354acbdb16148b88365" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "41bfcf3cf6f24e0098346d3a59224d97" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "b81474aeedbf4efa8c1bc90bb75c99a9", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 28.666715621948243, + "y": 77.33330535888672, + "width": 132.0, + "height": 36.000022888183597 + } + }, + "m_Slots": [ + { + "m_Id": "fb9fb639830c4cf69bfd994cb2ed4c29" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "c6ae1333e8494c6292d560a6a0c1126e" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.TangentMaterialSlot", + "m_ObjectId": "b977eab87a834a02956948283a300909", + "m_Id": 0, + "m_DisplayName": "Tangent", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Tangent", + "m_StageCapability": 1, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_Space": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "c0677ef2e2bf4d488e08da8a6f0fd932", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 10.000045776367188, + "y": 185.99996948242188, + "width": 150.6666717529297, + "height": 36.000030517578128 + } + }, + "m_Slots": [ + { + "m_Id": "4bd73107ed5043a6a98b42284d491e6d" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "5c4080b43fa645598a638526be476d15" + } +} + +{ + "m_SGVersion": 3, + "m_Type": "UnityEditor.ShaderGraph.Internal.ColorShaderProperty", + "m_ObjectId": "c6ae1333e8494c6292d560a6a0c1126e", + "m_Guid": { + "m_GuidSerialized": "e4a91be8-41b1-46a6-8fb3-cee571683ce1" + }, + "m_Name": "BaseColor", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "BaseColor", + "m_DefaultReferenceName": "_BaseColor", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": { + "r": 1.0, + "g": 1.0, + "b": 1.0, + "a": 0.0 + }, + "isMainColor": true, + "m_ColorMode": 0 +} + +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.Rendering.Universal.ShaderGraph.UniversalTarget", + "m_ObjectId": "cd04b2ec603c4ce98f51d924e2a512c2", + "m_Datas": [], + "m_ActiveSubTarget": { + "m_Id": "cd81c525151142c89a6af7f574fd628b" + }, + "m_AllowMaterialOverride": false, + "m_SurfaceType": 1, + "m_ZTestMode": 4, + "m_ZWriteControl": 0, + "m_AlphaMode": 0, + "m_RenderFace": 2, + "m_AlphaClip": false, + "m_CastShadows": true, + "m_ReceiveShadows": true, + "m_SupportsLODCrossFade": false, + "m_CustomEditorGUI": "", + "m_SupportVFX": false +} + +{ + "m_SGVersion": 2, + "m_Type": "UnityEditor.Rendering.Universal.ShaderGraph.UniversalUnlitSubTarget", + "m_ObjectId": "cd81c525151142c89a6af7f574fd628b" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "d38dd7e5f50e4fa09df0f606f2e323be", + "m_Id": 2016068918, + "m_DisplayName": "ShadingColor", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "_ShadingColor", + "m_StageCapability": 2, + "m_Value": { + "x": 0.5849056243896484, + "y": 0.5849056243896484, + "z": 0.5849056243896484, + "w": 1.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "df96d56bdf664324a1b96c21e76b4a17", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.Alpha", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 0.0, + "y": 0.0, + "width": 0.0, + "height": 0.0 + } + }, + "m_Slots": [ + { + "m_Id": "6362e795c9f74fd88710a3e8fd53744c" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.Alpha" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "e27b69744886424eb5f477011f04efd2", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.BaseColor", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 0.0, + "y": 0.0, + "width": 0.0, + "height": 0.0 + } + }, + "m_Slots": [ + { + "m_Id": "3b076e005942425f99ce3907ec24fe79" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.BaseColor" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", + "m_ObjectId": "e6c1845b1ff7420192f4e36917f71689", + "m_Id": 1, + "m_DisplayName": "BaseColor", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "BaseColor", + "m_StageCapability": 2, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "ead31769aa464a4e8aae7a3cfa026b2c", + "m_Id": -1559276299, + "m_DisplayName": "ShadingToonyFactor", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "_ShadingToonyFactor", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PositionMaterialSlot", + "m_ObjectId": "f3a2f016faaf422f9c936817f13cb82d", + "m_Id": 0, + "m_DisplayName": "Position", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Position", + "m_StageCapability": 1, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_Space": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "fb9fb639830c4cf69bfd994cb2ed4c29", + "m_Id": 0, + "m_DisplayName": "BaseColor", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_Labels": [] +} + diff --git a/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyMToonAlphaBlend.shadergraph.meta b/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyMToonAlphaBlend.shadergraph.meta new file mode 100644 index 000000000..a5833ea06 --- /dev/null +++ b/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyMToonAlphaBlend.shadergraph.meta @@ -0,0 +1,10 @@ +fileFormatVersion: 2 +guid: 6b60fe85d745eda4281e3278fcb0657c +ScriptedImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 2 + userData: + assetBundleName: + assetBundleVariant: + script: {fileID: 11500000, guid: 625f186215c104763be7675aa2d941aa, type: 3} diff --git a/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyMToonOpaque.shadergraph b/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyMToonOpaque.shadergraph index b25267f2b..6c0af666a 100644 --- a/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyMToonOpaque.shadergraph +++ b/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyMToonOpaque.shadergraph @@ -39,53 +39,23 @@ { "m_Id": "e27b69744886424eb5f477011f04efd2" }, - { - "m_Id": "6f5745e22b43420db4198550f74935a6" - }, { "m_Id": "001956a26193431db776814a0429e033" }, - { - "m_Id": "aa688b600dbe46bfa78fda5e3d5fdd0b" - }, - { - "m_Id": "e202f291b6294c1c980899f1ab2ca582" - }, - { - "m_Id": "11c2b215d12c4952997709b16601ce21" - }, - { - "m_Id": "5caf44abf8c94193bae46a6c36c6bb87" - }, { "m_Id": "9e9053ae73f94d2f99ce33a60274938f" }, - { - "m_Id": "e41f220e296b4cc2a9a3c1faf14d7d72" - }, - { - "m_Id": "53ca4faac8f8465c955fe6f1c038c001" - }, - { - "m_Id": "02d64a802a6d4d29bdf3cc69c21aab22" - }, - { - "m_Id": "740353e06794457a882599bb4a70b703" - }, { "m_Id": "c0677ef2e2bf4d488e08da8a6f0fd932" }, { "m_Id": "b81474aeedbf4efa8c1bc90bb75c99a9" }, - { - "m_Id": "a62805bf0771413ba8c1e8f51ad17b54" - }, - { - "m_Id": "61e8c91a6b5d417f89dba58a5aaee6d8" - }, { "m_Id": "2367bc93d6e7445391b808a16728f2b9" + }, + { + "m_Id": "0776e82cf5bc4372962108bf3847d1d0" } ], "m_GroupDatas": [], @@ -100,35 +70,21 @@ }, "m_InputSlot": { "m_Node": { - "m_Id": "6f5745e22b43420db4198550f74935a6" + "m_Id": "0776e82cf5bc4372962108bf3847d1d0" + }, + "m_SlotId": -643094866 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "0776e82cf5bc4372962108bf3847d1d0" }, "m_SlotId": 1 - } - }, - { - "m_OutputSlot": { - "m_Node": { - "m_Id": "02d64a802a6d4d29bdf3cc69c21aab22" - }, - "m_SlotId": 3 }, "m_InputSlot": { "m_Node": { - "m_Id": "e41f220e296b4cc2a9a3c1faf14d7d72" - }, - "m_SlotId": 2 - } - }, - { - "m_OutputSlot": { - "m_Node": { - "m_Id": "11c2b215d12c4952997709b16601ce21" - }, - "m_SlotId": 2 - }, - "m_InputSlot": { - "m_Node": { - "m_Id": "5caf44abf8c94193bae46a6c36c6bb87" + "m_Id": "e27b69744886424eb5f477011f04efd2" }, "m_SlotId": 0 } @@ -142,93 +98,9 @@ }, "m_InputSlot": { "m_Node": { - "m_Id": "02d64a802a6d4d29bdf3cc69c21aab22" + "m_Id": "0776e82cf5bc4372962108bf3847d1d0" }, - "m_SlotId": 1 - } - }, - { - "m_OutputSlot": { - "m_Node": { - "m_Id": "2367bc93d6e7445391b808a16728f2b9" - }, - "m_SlotId": 0 - }, - "m_InputSlot": { - "m_Node": { - "m_Id": "61e8c91a6b5d417f89dba58a5aaee6d8" - }, - "m_SlotId": 0 - } - }, - { - "m_OutputSlot": { - "m_Node": { - "m_Id": "53ca4faac8f8465c955fe6f1c038c001" - }, - "m_SlotId": 2 - }, - "m_InputSlot": { - "m_Node": { - "m_Id": "e41f220e296b4cc2a9a3c1faf14d7d72" - }, - "m_SlotId": 1 - } - }, - { - "m_OutputSlot": { - "m_Node": { - "m_Id": "5caf44abf8c94193bae46a6c36c6bb87" - }, - "m_SlotId": 1 - }, - "m_InputSlot": { - "m_Node": { - "m_Id": "02d64a802a6d4d29bdf3cc69c21aab22" - }, - "m_SlotId": 2 - } - }, - { - "m_OutputSlot": { - "m_Node": { - "m_Id": "61e8c91a6b5d417f89dba58a5aaee6d8" - }, - "m_SlotId": 1 - }, - "m_InputSlot": { - "m_Node": { - "m_Id": "02d64a802a6d4d29bdf3cc69c21aab22" - }, - "m_SlotId": 0 - } - }, - { - "m_OutputSlot": { - "m_Node": { - "m_Id": "6f5745e22b43420db4198550f74935a6" - }, - "m_SlotId": 0 - }, - "m_InputSlot": { - "m_Node": { - "m_Id": "a62805bf0771413ba8c1e8f51ad17b54" - }, - "m_SlotId": 1 - } - }, - { - "m_OutputSlot": { - "m_Node": { - "m_Id": "740353e06794457a882599bb4a70b703" - }, - "m_SlotId": 0 - }, - "m_InputSlot": { - "m_Node": { - "m_Id": "53ca4faac8f8465c955fe6f1c038c001" - }, - "m_SlotId": 1 + "m_SlotId": -1559276299 } }, { @@ -240,37 +112,9 @@ }, "m_InputSlot": { "m_Node": { - "m_Id": "53ca4faac8f8465c955fe6f1c038c001" + "m_Id": "0776e82cf5bc4372962108bf3847d1d0" }, - "m_SlotId": 0 - } - }, - { - "m_OutputSlot": { - "m_Node": { - "m_Id": "a62805bf0771413ba8c1e8f51ad17b54" - }, - "m_SlotId": 2 - }, - "m_InputSlot": { - "m_Node": { - "m_Id": "e41f220e296b4cc2a9a3c1faf14d7d72" - }, - "m_SlotId": 0 - } - }, - { - "m_OutputSlot": { - "m_Node": { - "m_Id": "aa688b600dbe46bfa78fda5e3d5fdd0b" - }, - "m_SlotId": 0 - }, - "m_InputSlot": { - "m_Node": { - "m_Id": "11c2b215d12c4952997709b16601ce21" - }, - "m_SlotId": 0 + "m_SlotId": 2016068918 } }, { @@ -282,9 +126,9 @@ }, "m_InputSlot": { "m_Node": { - "m_Id": "a62805bf0771413ba8c1e8f51ad17b54" + "m_Id": "0776e82cf5bc4372962108bf3847d1d0" }, - "m_SlotId": 0 + "m_SlotId": 1340748427 } }, { @@ -296,37 +140,9 @@ }, "m_InputSlot": { "m_Node": { - "m_Id": "740353e06794457a882599bb4a70b703" + "m_Id": "0776e82cf5bc4372962108bf3847d1d0" }, - "m_SlotId": 1 - } - }, - { - "m_OutputSlot": { - "m_Node": { - "m_Id": "e202f291b6294c1c980899f1ab2ca582" - }, - "m_SlotId": 0 - }, - "m_InputSlot": { - "m_Node": { - "m_Id": "11c2b215d12c4952997709b16601ce21" - }, - "m_SlotId": 1 - } - }, - { - "m_OutputSlot": { - "m_Node": { - "m_Id": "e41f220e296b4cc2a9a3c1faf14d7d72" - }, - "m_SlotId": 3 - }, - "m_InputSlot": { - "m_Node": { - "m_Id": "e27b69744886424eb5f477011f04efd2" - }, - "m_SlotId": 0 + "m_SlotId": 1221667242 } } ], @@ -391,10 +207,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": -391.3333435058594, - "y": -28.000011444091798, - "width": 133.33334350585938, - "height": 36.0000114440918 + "x": 27.333396911621095, + "y": 113.33332824707031, + "width": 133.33331298828126, + "height": 35.999969482421878 } }, "m_Slots": [ @@ -415,6 +231,31 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "018b3bf4033e49fc9f98b77e0886c132", + "m_Id": 1340748427, + "m_DisplayName": "BaseColor", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "_BaseColor", + "m_StageCapability": 2, + "m_Value": { + "x": 1.0, + "y": 1.0, + "z": 1.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_Labels": [] +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.NormalMaterialSlot", @@ -468,291 +309,71 @@ } { - "m_SGVersion": 1, - "m_Type": "UnityEditor.ShaderGraph.CustomFunctionNode", - "m_ObjectId": "02d64a802a6d4d29bdf3cc69c21aab22", + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SubGraphNode", + "m_ObjectId": "0776e82cf5bc4372962108bf3847d1d0", "m_Group": { "m_Id": "" }, - "m_Name": "linearstep (Custom Function)", + "m_Name": "TinyMToon_SubGraph", "m_DrawState": { "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": -11.999978065490723, - "y": 557.3333129882813, - "width": 211.99998474121095, - "height": 144.0 + "x": 240.66665649414063, + "y": 95.33334350585938, + "width": 265.3334045410156, + "height": 377.3332824707031 } }, "m_Slots": [ { - "m_Id": "1a6db28a6c03456083c39b3b0dfbc56a" + "m_Id": "018b3bf4033e49fc9f98b77e0886c132" }, { - "m_Id": "f55b8ae1b1c7406ca3a2b32d737adf05" + "m_Id": "7e0c1e8c83e24c23985adb526ecaef3f" }, { - "m_Id": "35b4cbc7d7894237be86cdf5305edaa6" + "m_Id": "d38dd7e5f50e4fa09df0f606f2e323be" }, { - "m_Id": "ec6717fc07224569802ff5be80e915d7" + "m_Id": "9a2d5569fa30469981f78f76b4b050f0" + }, + { + "m_Id": "ead31769aa464a4e8aae7a3cfa026b2c" + }, + { + "m_Id": "7207d851d0d54d9dbec558d8350cbcf5" + }, + { + "m_Id": "8dee648ae25449838a2cc7261ec55970" } ], - "synonyms": [ - "code", - "HLSL" - ], - "m_Precision": 0, - "m_PreviewExpanded": false, - "m_DismissedVersion": 0, - "m_PreviewMode": 0, - "m_CustomColors": { - "m_SerializableColors": [] - }, - "m_SourceType": 1, - "m_FunctionName": "linearstep", - "m_FunctionSource": "", - "m_FunctionBody": "Out = saturate( ( t - a ) / ( b - a ) );" -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", - "m_ObjectId": "063fb8e850264b3bba0c55df7440ba52", - "m_Id": 0, - "m_DisplayName": "In", - "m_SlotType": 0, - "m_Hidden": false, - "m_ShaderOutputName": "In", - "m_StageCapability": 3, - "m_Value": { - "x": 0.0, - "y": 0.0, - "z": 0.0, - "w": 0.0 - }, - "m_DefaultValue": { - "x": 0.0, - "y": 0.0, - "z": 0.0, - "w": 0.0 - } -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", - "m_ObjectId": "0acaf0553f7946bfb5829bdc191aaed7", - "m_Id": 1, - "m_DisplayName": "B", - "m_SlotType": 0, - "m_Hidden": false, - "m_ShaderOutputName": "B", - "m_StageCapability": 3, - "m_Value": { - "e00": 2.0, - "e01": 2.0, - "e02": 2.0, - "e03": 2.0, - "e10": 2.0, - "e11": 2.0, - "e12": 2.0, - "e13": 2.0, - "e20": 2.0, - "e21": 2.0, - "e22": 2.0, - "e23": 2.0, - "e30": 2.0, - "e31": 2.0, - "e32": 2.0, - "e33": 2.0 - }, - "m_DefaultValue": { - "e00": 1.0, - "e01": 0.0, - "e02": 0.0, - "e03": 0.0, - "e10": 0.0, - "e11": 1.0, - "e12": 0.0, - "e13": 0.0, - "e20": 0.0, - "e21": 0.0, - "e22": 1.0, - "e23": 0.0, - "e30": 0.0, - "e31": 0.0, - "e32": 0.0, - "e33": 1.0 - } -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", - "m_ObjectId": "0ce508edff374df4bb032abe5f083cf1", - "m_Id": 2, - "m_DisplayName": "Out", - "m_SlotType": 1, - "m_Hidden": false, - "m_ShaderOutputName": "Out", - "m_StageCapability": 3, - "m_Value": { - "e00": 0.0, - "e01": 0.0, - "e02": 0.0, - "e03": 0.0, - "e10": 0.0, - "e11": 0.0, - "e12": 0.0, - "e13": 0.0, - "e20": 0.0, - "e21": 0.0, - "e22": 0.0, - "e23": 0.0, - "e30": 0.0, - "e31": 0.0, - "e32": 0.0, - "e33": 0.0 - }, - "m_DefaultValue": { - "e00": 1.0, - "e01": 0.0, - "e02": 0.0, - "e03": 0.0, - "e10": 0.0, - "e11": 1.0, - "e12": 0.0, - "e13": 0.0, - "e20": 0.0, - "e21": 0.0, - "e22": 1.0, - "e23": 0.0, - "e30": 0.0, - "e31": 0.0, - "e32": 0.0, - "e33": 1.0 - } -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", - "m_ObjectId": "119a395b33c7443980ebe76a78156c14", - "m_Id": 4, - "m_DisplayName": "R", - "m_SlotType": 1, - "m_Hidden": false, - "m_ShaderOutputName": "R", - "m_StageCapability": 2, - "m_Value": 0.0, - "m_DefaultValue": 0.0, - "m_Labels": [] -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.DotProductNode", - "m_ObjectId": "11c2b215d12c4952997709b16601ce21", - "m_Group": { - "m_Id": "" - }, - "m_Name": "Dot Product", - "m_DrawState": { - "m_Expanded": true, - "m_Position": { - "serializedVersion": "2", - "x": -415.3333435058594, - "y": 737.333251953125, - "width": 209.33331298828126, - "height": 304.0 - } - }, - "m_Slots": [ - { - "m_Id": "22cba68eaa70423e9470cba77ea66f7f" - }, - { - "m_Id": "2763a2e24ec94cd4818051c81a67e6e5" - }, - { - "m_Id": "530783b8df6b4117921bebd846679a96" - } - ], - "synonyms": [ - "scalar product" - ], + "synonyms": [], "m_Precision": 0, "m_PreviewExpanded": true, "m_DismissedVersion": 0, "m_PreviewMode": 0, "m_CustomColors": { "m_SerializableColors": [] - } -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", - "m_ObjectId": "186bce80a20f46b7bd505213dbac4145", - "m_Id": 0, - "m_DisplayName": "In", - "m_SlotType": 0, - "m_Hidden": false, - "m_ShaderOutputName": "In", - "m_StageCapability": 3, - "m_Value": { - "x": 0.0, - "y": 0.0, - "z": 0.0, - "w": 0.0 }, - "m_DefaultValue": { - "x": 0.0, - "y": 0.0, - "z": 0.0, - "w": 0.0 - } -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", - "m_ObjectId": "1a6db28a6c03456083c39b3b0dfbc56a", - "m_Id": 0, - "m_DisplayName": "a", - "m_SlotType": 0, - "m_Hidden": false, - "m_ShaderOutputName": "a", - "m_StageCapability": 3, - "m_Value": -1.0, - "m_DefaultValue": 0.0, - "m_Labels": [] -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", - "m_ObjectId": "22cba68eaa70423e9470cba77ea66f7f", - "m_Id": 0, - "m_DisplayName": "A", - "m_SlotType": 0, - "m_Hidden": false, - "m_ShaderOutputName": "A", - "m_StageCapability": 3, - "m_Value": { - "x": 0.0, - "y": 0.0, - "z": 0.0, - "w": 0.0 - }, - "m_DefaultValue": { - "x": 0.0, - "y": 0.0, - "z": 0.0, - "w": 0.0 - } + "m_SerializedSubGraph": "{\n \"subGraph\": {\n \"fileID\": -5475051401550479605,\n \"guid\": \"45c6d2335bae988419dbc2ec65c33dae\",\n \"type\": 3\n }\n}", + "m_PropertyGuids": [ + "e0a3ade0-ddd9-4c69-b3b5-923901f7b2da", + "d2495ca0-f5eb-484a-bd18-dca0589774e3", + "916faab9-cc1c-4621-84b8-9c47171bf8e8", + "ad5cc3fe-a5f8-4a48-9956-35d13519f07e", + "fa354438-5a66-4424-a53f-da950e75c488" + ], + "m_PropertyIds": [ + 1340748427, + -643094866, + 2016068918, + 1221667242, + -1559276299 + ], + "m_Dropdowns": [], + "m_DropdownSelectedEntries": [] } { @@ -767,10 +388,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": -389.9999694824219, - "y": 617.3333129882813, - "width": 184.00001525878907, - "height": 36.0 + "x": -24.666656494140626, + "y": 222.0, + "width": 185.3333740234375, + "height": 35.999969482421878 } }, "m_Slots": [ @@ -791,43 +412,6 @@ } } -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", - "m_ObjectId": "2763a2e24ec94cd4818051c81a67e6e5", - "m_Id": 1, - "m_DisplayName": "B", - "m_SlotType": 0, - "m_Hidden": false, - "m_ShaderOutputName": "B", - "m_StageCapability": 3, - "m_Value": { - "x": 0.0, - "y": 1.0, - "z": 0.0, - "w": 0.0 - }, - "m_DefaultValue": { - "x": 0.0, - "y": 0.0, - "z": 0.0, - "w": 0.0 - } -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.SamplerStateMaterialSlot", - "m_ObjectId": "287d5f9bb8b7491ca4de9a9f289728dd", - "m_Id": 3, - "m_DisplayName": "Sampler", - "m_SlotType": 0, - "m_Hidden": false, - "m_ShaderOutputName": "Sampler", - "m_StageCapability": 3, - "m_BareResource": false -} - { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", @@ -843,45 +427,6 @@ "m_Labels": [] } -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", - "m_ObjectId": "2cf27a4d36454c98b25d12c294e5bc6d", - "m_Id": 2, - "m_DisplayName": "T", - "m_SlotType": 0, - "m_Hidden": false, - "m_ShaderOutputName": "T", - "m_StageCapability": 3, - "m_Value": { - "x": 0.0, - "y": 0.0, - "z": 0.0, - "w": 0.0 - }, - "m_DefaultValue": { - "x": 0.0, - "y": 0.0, - "z": 0.0, - "w": 0.0 - } -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", - "m_ObjectId": "35b4cbc7d7894237be86cdf5305edaa6", - "m_Id": 2, - "m_DisplayName": "t", - "m_SlotType": 0, - "m_Hidden": false, - "m_ShaderOutputName": "t", - "m_StageCapability": 3, - "m_Value": 0.0, - "m_DefaultValue": 0.0, - "m_Labels": [] -} - { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.ColorRGBMaterialSlot", @@ -1019,106 +564,6 @@ "m_DefaultType": 0 } -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", - "m_ObjectId": "530783b8df6b4117921bebd846679a96", - "m_Id": 2, - "m_DisplayName": "Out", - "m_SlotType": 1, - "m_Hidden": false, - "m_ShaderOutputName": "Out", - "m_StageCapability": 3, - "m_Value": 0.0, - "m_DefaultValue": 0.0, - "m_Labels": [] -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.MultiplyNode", - "m_ObjectId": "53ca4faac8f8465c955fe6f1c038c001", - "m_Group": { - "m_Id": "" - }, - "m_Name": "Multiply", - "m_DrawState": { - "m_Expanded": true, - "m_Position": { - "serializedVersion": "2", - "x": -11.999979019165039, - "y": 186.0000457763672, - "width": 209.33335876464845, - "height": 304.0 - } - }, - "m_Slots": [ - { - "m_Id": "a34da0802e87442eaf359e401ba5268b" - }, - { - "m_Id": "8b4922699ee6451ba733201453de68a6" - }, - { - "m_Id": "0ce508edff374df4bb032abe5f083cf1" - } - ], - "synonyms": [ - "multiplication", - "times", - "x" - ], - "m_Precision": 0, - "m_PreviewExpanded": true, - "m_DismissedVersion": 0, - "m_PreviewMode": 0, - "m_CustomColors": { - "m_SerializableColors": [] - } -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", - "m_ObjectId": "57cb21c7713343469a05eef5dde2da73", - "m_Id": 1, - "m_DisplayName": "Texture", - "m_SlotType": 0, - "m_Hidden": false, - "m_ShaderOutputName": "Texture", - "m_StageCapability": 3, - "m_BareResource": false, - "m_Texture": { - "m_SerializedTexture": "", - "m_Guid": "" - }, - "m_DefaultType": 0 -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", - "m_ObjectId": "5981590622dc4c7eb9d7eca93e62857f", - "m_Id": 1, - "m_DisplayName": "Out", - "m_SlotType": 1, - "m_Hidden": false, - "m_ShaderOutputName": "Out", - "m_StageCapability": 3, - "m_Value": { - "x": 0.0, - "y": 0.0, - "z": 0.0, - "w": 0.0 - }, - "m_DefaultValue": { - "x": 0.0, - "y": 0.0, - "z": 0.0, - "w": 0.0 - } -} - { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Internal.Texture2DShaderProperty", @@ -1151,307 +596,43 @@ { "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.SaturateNode", - "m_ObjectId": "5caf44abf8c94193bae46a6c36c6bb87", - "m_Group": { - "m_Id": "" - }, - "m_Name": "Saturate", - "m_DrawState": { - "m_Expanded": true, - "m_Position": { - "serializedVersion": "2", - "x": -162.66665649414063, - "y": 701.3333740234375, - "width": 129.3333740234375, - "height": 95.99993896484375 - } - }, - "m_Slots": [ - { - "m_Id": "186bce80a20f46b7bd505213dbac4145" - }, - { - "m_Id": "5981590622dc4c7eb9d7eca93e62857f" - } - ], - "synonyms": [ - "clamp" - ], - "m_Precision": 0, - "m_PreviewExpanded": false, - "m_DismissedVersion": 0, - "m_PreviewMode": 0, - "m_CustomColors": { - "m_SerializableColors": [] - } -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", - "m_ObjectId": "5e4571167e004d41962bea79b2d6ec12", - "m_Id": 7, - "m_DisplayName": "A", + "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", + "m_ObjectId": "7207d851d0d54d9dbec558d8350cbcf5", + "m_Id": 1, + "m_DisplayName": "BaseColor", "m_SlotType": 1, "m_Hidden": false, - "m_ShaderOutputName": "A", + "m_ShaderOutputName": "BaseColor", "m_StageCapability": 2, - "m_Value": 0.0, - "m_DefaultValue": 0.0, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, "m_Labels": [] } { "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.NegateNode", - "m_ObjectId": "61e8c91a6b5d417f89dba58a5aaee6d8", - "m_Group": { - "m_Id": "" - }, - "m_Name": "Negate", - "m_DrawState": { - "m_Expanded": true, - "m_Position": { - "serializedVersion": "2", - "x": -162.6666717529297, - "y": 557.3333129882813, - "width": 129.3334197998047, - "height": 96.0 - } - }, - "m_Slots": [ - { - "m_Id": "063fb8e850264b3bba0c55df7440ba52" - }, - { - "m_Id": "658f56a453034c4fa307a8e33389edf7" - } - ], - "synonyms": [ - "invert", - "opposite" - ], - "m_Precision": 0, - "m_PreviewExpanded": false, - "m_DismissedVersion": 0, - "m_PreviewMode": 0, - "m_CustomColors": { - "m_SerializableColors": [] - } -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", - "m_ObjectId": "658f56a453034c4fa307a8e33389edf7", - "m_Id": 1, - "m_DisplayName": "Out", - "m_SlotType": 1, - "m_Hidden": false, - "m_ShaderOutputName": "Out", - "m_StageCapability": 3, - "m_Value": { - "x": 0.0, - "y": 0.0, - "z": 0.0, - "w": 0.0 - }, - "m_DefaultValue": { - "x": 0.0, - "y": 0.0, - "z": 0.0, - "w": 0.0 - } -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", - "m_ObjectId": "65f13b0e92a247fdb153ab9b99eb60ec", - "m_Id": 1, - "m_DisplayName": "B", + "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", + "m_ObjectId": "7e0c1e8c83e24c23985adb526ecaef3f", + "m_Id": -643094866, + "m_DisplayName": "BaseMap", "m_SlotType": 0, "m_Hidden": false, - "m_ShaderOutputName": "B", - "m_StageCapability": 3, - "m_Value": { - "x": 1.0, - "y": 1.0, - "z": 1.0, - "w": 1.0 - }, - "m_DefaultValue": { - "x": 0.0, - "y": 0.0, - "z": 0.0, - "w": 0.0 - } -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.SampleTexture2DNode", - "m_ObjectId": "6f5745e22b43420db4198550f74935a6", - "m_Group": { - "m_Id": "" - }, - "m_Name": "Sample Texture 2D", - "m_DrawState": { - "m_Expanded": true, - "m_Position": { - "serializedVersion": "2", - "x": -218.0, - "y": -57.33329391479492, - "width": 184.66665649414063, - "height": 254.66664123535157 - } - }, - "m_Slots": [ - { - "m_Id": "976fc3a4005841bc9f2506ad8a880ad2" - }, - { - "m_Id": "119a395b33c7443980ebe76a78156c14" - }, - { - "m_Id": "9b9bcc2fdef244b09b85c0d444a1464e" - }, - { - "m_Id": "702ae318a63f41199008fba14c3e0d46" - }, - { - "m_Id": "5e4571167e004d41962bea79b2d6ec12" - }, - { - "m_Id": "d6894d8dff434dd59a557d72bf9f60fb" - }, - { - "m_Id": "e7932487a75244b7b646db0d63a82e8e" - }, - { - "m_Id": "f92de9080fa848f6831d9ff9301e7ca9" - } - ], - "synonyms": [ - "tex2d" - ], - "m_Precision": 0, - "m_PreviewExpanded": false, - "m_DismissedVersion": 0, - "m_PreviewMode": 0, - "m_CustomColors": { - "m_SerializableColors": [] - }, - "m_TextureType": 0, - "m_NormalMapSpace": 1, - "m_EnableGlobalMipBias": true, - "m_MipSamplingMode": 0 -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", - "m_ObjectId": "702ae318a63f41199008fba14c3e0d46", - "m_Id": 6, - "m_DisplayName": "B", - "m_SlotType": 1, - "m_Hidden": false, - "m_ShaderOutputName": "B", + "m_ShaderOutputName": "_BaseMap", "m_StageCapability": 2, - "m_Value": 0.0, - "m_DefaultValue": 0.0, - "m_Labels": [] -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.SampleTexture2DNode", - "m_ObjectId": "740353e06794457a882599bb4a70b703", - "m_Group": { - "m_Id": "" + "m_BareResource": false, + "m_Texture": { + "m_SerializedTexture": "", + "m_Guid": "" }, - "m_Name": "Sample Texture 2D", - "m_DrawState": { - "m_Expanded": true, - "m_Position": { - "serializedVersion": "2", - "x": -217.9999542236328, - "y": 261.3334045410156, - "width": 184.66668701171876, - "height": 254.66659545898438 - } - }, - "m_Slots": [ - { - "m_Id": "c5d09826216940f08397fb95ec32fa71" - }, - { - "m_Id": "7cef4486bdd34f3a89a63215444e9c84" - }, - { - "m_Id": "d2dbb34462e7424a9c199463bb21bdd5" - }, - { - "m_Id": "7961fc7e637341e89889fd0db0d24d91" - }, - { - "m_Id": "93ea5f2c21fd4188bfc5c6489c0baf47" - }, - { - "m_Id": "57cb21c7713343469a05eef5dde2da73" - }, - { - "m_Id": "f968d08982784ea0bdea3db8ea689dd2" - }, - { - "m_Id": "287d5f9bb8b7491ca4de9a9f289728dd" - } - ], - "synonyms": [ - "tex2d" - ], - "m_Precision": 0, - "m_PreviewExpanded": false, - "m_DismissedVersion": 0, - "m_PreviewMode": 0, - "m_CustomColors": { - "m_SerializableColors": [] - }, - "m_TextureType": 0, - "m_NormalMapSpace": 1, - "m_EnableGlobalMipBias": true, - "m_MipSamplingMode": 0 -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", - "m_ObjectId": "7961fc7e637341e89889fd0db0d24d91", - "m_Id": 6, - "m_DisplayName": "B", - "m_SlotType": 1, - "m_Hidden": false, - "m_ShaderOutputName": "B", - "m_StageCapability": 2, - "m_Value": 0.0, - "m_DefaultValue": 0.0, - "m_Labels": [] -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", - "m_ObjectId": "7cef4486bdd34f3a89a63215444e9c84", - "m_Id": 4, - "m_DisplayName": "R", - "m_SlotType": 1, - "m_Hidden": false, - "m_ShaderOutputName": "R", - "m_StageCapability": 2, - "m_Value": 0.0, - "m_DefaultValue": 0.0, - "m_Labels": [] + "m_DefaultType": 0 } { @@ -1527,50 +708,17 @@ { "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", - "m_ObjectId": "8b4922699ee6451ba733201453de68a6", - "m_Id": 1, - "m_DisplayName": "B", - "m_SlotType": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "8dee648ae25449838a2cc7261ec55970", + "m_Id": 2, + "m_DisplayName": "Alpha", + "m_SlotType": 1, "m_Hidden": false, - "m_ShaderOutputName": "B", - "m_StageCapability": 3, - "m_Value": { - "e00": 2.0, - "e01": 2.0, - "e02": 2.0, - "e03": 2.0, - "e10": 2.0, - "e11": 2.0, - "e12": 2.0, - "e13": 2.0, - "e20": 2.0, - "e21": 2.0, - "e22": 2.0, - "e23": 2.0, - "e30": 2.0, - "e31": 2.0, - "e32": 2.0, - "e33": 2.0 - }, - "m_DefaultValue": { - "e00": 1.0, - "e01": 0.0, - "e02": 0.0, - "e03": 0.0, - "e10": 0.0, - "e11": 1.0, - "e12": 0.0, - "e13": 0.0, - "e20": 0.0, - "e21": 0.0, - "e22": 1.0, - "e23": 0.0, - "e30": 0.0, - "e31": 0.0, - "e32": 0.0, - "e33": 1.0 - } + "m_ShaderOutputName": "Alpha", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] } { @@ -1607,45 +755,6 @@ "m_SerializedDescriptor": "VertexDescription.Position" } -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", - "m_ObjectId": "8f535cbbf2854293a08dec8d8aa7986e", - "m_Id": 3, - "m_DisplayName": "Out", - "m_SlotType": 1, - "m_Hidden": false, - "m_ShaderOutputName": "Out", - "m_StageCapability": 3, - "m_Value": { - "x": 0.0, - "y": 0.0, - "z": 0.0, - "w": 0.0 - }, - "m_DefaultValue": { - "x": 0.0, - "y": 0.0, - "z": 0.0, - "w": 0.0 - } -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", - "m_ObjectId": "93ea5f2c21fd4188bfc5c6489c0baf47", - "m_Id": 7, - "m_DisplayName": "A", - "m_SlotType": 1, - "m_Hidden": false, - "m_ShaderOutputName": "A", - "m_StageCapability": 2, - "m_Value": 0.0, - "m_DefaultValue": 0.0, - "m_Labels": [] -} - { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", @@ -1673,42 +782,20 @@ { "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", - "m_ObjectId": "976fc3a4005841bc9f2506ad8a880ad2", - "m_Id": 0, - "m_DisplayName": "RGBA", - "m_SlotType": 1, + "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", + "m_ObjectId": "9a2d5569fa30469981f78f76b4b050f0", + "m_Id": 1221667242, + "m_DisplayName": "ShadingColorMap", + "m_SlotType": 0, "m_Hidden": false, - "m_ShaderOutputName": "RGBA", + "m_ShaderOutputName": "_ShadingColorMap", "m_StageCapability": 2, - "m_Value": { - "x": 0.0, - "y": 0.0, - "z": 0.0, - "w": 0.0 + "m_BareResource": false, + "m_Texture": { + "m_SerializedTexture": "", + "m_Guid": "" }, - "m_DefaultValue": { - "x": 0.0, - "y": 0.0, - "z": 0.0, - "w": 0.0 - }, - "m_Labels": [] -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", - "m_ObjectId": "9b9bcc2fdef244b09b85c0d444a1464e", - "m_Id": 5, - "m_DisplayName": "G", - "m_SlotType": 1, - "m_Hidden": false, - "m_ShaderOutputName": "G", - "m_StageCapability": 2, - "m_Value": 0.0, - "m_DefaultValue": 0.0, - "m_Labels": [] + "m_DefaultType": 0 } { @@ -1723,10 +810,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": -393.9999694824219, - "y": 225.33338928222657, - "width": 139.33331298828126, - "height": 35.99992370605469 + "x": 12.000022888183594, + "y": 149.3332977294922, + "width": 148.66668701171876, + "height": 36.00001525878906 } }, "m_Slots": [ @@ -1747,155 +834,6 @@ } } -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", - "m_ObjectId": "a2233950ab514a708c59193dc0931934", - "m_Id": 0, - "m_DisplayName": "Direction", - "m_SlotType": 1, - "m_Hidden": false, - "m_ShaderOutputName": "Direction", - "m_StageCapability": 3, - "m_Value": { - "x": 0.0, - "y": 0.0, - "z": 0.0 - }, - "m_DefaultValue": { - "x": 0.0, - "y": 0.0, - "z": 0.0 - }, - "m_Labels": [] -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", - "m_ObjectId": "a34da0802e87442eaf359e401ba5268b", - "m_Id": 0, - "m_DisplayName": "A", - "m_SlotType": 0, - "m_Hidden": false, - "m_ShaderOutputName": "A", - "m_StageCapability": 3, - "m_Value": { - "e00": 0.0, - "e01": 0.0, - "e02": 0.0, - "e03": 0.0, - "e10": 0.0, - "e11": 0.0, - "e12": 0.0, - "e13": 0.0, - "e20": 0.0, - "e21": 0.0, - "e22": 0.0, - "e23": 0.0, - "e30": 0.0, - "e31": 0.0, - "e32": 0.0, - "e33": 0.0 - }, - "m_DefaultValue": { - "e00": 1.0, - "e01": 0.0, - "e02": 0.0, - "e03": 0.0, - "e10": 0.0, - "e11": 1.0, - "e12": 0.0, - "e13": 0.0, - "e20": 0.0, - "e21": 0.0, - "e22": 1.0, - "e23": 0.0, - "e30": 0.0, - "e31": 0.0, - "e32": 0.0, - "e33": 1.0 - } -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.MultiplyNode", - "m_ObjectId": "a62805bf0771413ba8c1e8f51ad17b54", - "m_Group": { - "m_Id": "" - }, - "m_Name": "Multiply", - "m_DrawState": { - "m_Expanded": true, - "m_Position": { - "serializedVersion": "2", - "x": -12.000016212463379, - "y": -131.3333282470703, - "width": 209.33334350585938, - "height": 304.0 - } - }, - "m_Slots": [ - { - "m_Id": "ec4dcc25a33a4887adbbbe8bf7ba2d83" - }, - { - "m_Id": "0acaf0553f7946bfb5829bdc191aaed7" - }, - { - "m_Id": "f4bbe10db634492a8b729d010310abe0" - } - ], - "synonyms": [ - "multiplication", - "times", - "x" - ], - "m_Precision": 0, - "m_PreviewExpanded": true, - "m_DismissedVersion": 0, - "m_PreviewMode": 0, - "m_CustomColors": { - "m_SerializableColors": [] - } -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.MainLightDirectionNode", - "m_ObjectId": "aa688b600dbe46bfa78fda5e3d5fdd0b", - "m_Group": { - "m_Id": "" - }, - "m_Name": "Main Light Direction", - "m_DrawState": { - "m_Expanded": true, - "m_Position": { - "serializedVersion": "2", - "x": -670.6666870117188, - "y": 691.333251953125, - "width": 161.33334350585938, - "height": 78.666748046875 - } - }, - "m_Slots": [ - { - "m_Id": "a2233950ab514a708c59193dc0931934" - } - ], - "synonyms": [ - "sun" - ], - "m_Precision": 0, - "m_PreviewExpanded": true, - "m_DismissedVersion": 0, - "m_PreviewMode": 0, - "m_CustomColors": { - "m_SerializableColors": [] - } -} - { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.PropertyNode", @@ -1908,10 +846,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": -390.0, - "y": -93.33330535888672, + "x": 28.666715621948243, + "y": 77.33330535888672, "width": 132.0, - "height": 36.0000114440918 + "height": 36.000022888183597 } }, "m_Slots": [ @@ -1968,10 +906,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": -391.3332824707031, - "y": 289.3334045410156, - "width": 140.6666259765625, - "height": 36.0 + "x": 10.000045776367188, + "y": 185.99996948242188, + "width": 150.6666717529297, + "height": 36.000030517578128 } }, "m_Slots": [ @@ -1992,31 +930,6 @@ } } -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", - "m_ObjectId": "c5d09826216940f08397fb95ec32fa71", - "m_Id": 0, - "m_DisplayName": "RGBA", - "m_SlotType": 1, - "m_Hidden": false, - "m_ShaderOutputName": "RGBA", - "m_StageCapability": 2, - "m_Value": { - "x": 0.0, - "y": 0.0, - "z": 0.0, - "w": 0.0 - }, - "m_DefaultValue": { - "x": 0.0, - "y": 0.0, - "z": 0.0, - "w": 0.0 - }, - "m_Labels": [] -} - { "m_SGVersion": 3, "m_Type": "UnityEditor.ShaderGraph.Internal.ColorShaderProperty", @@ -2043,7 +956,7 @@ "b": 1.0, "a": 0.0 }, - "isMainColor": false, + "isMainColor": true, "m_ColorMode": 0 } @@ -2077,71 +990,27 @@ { "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", - "m_ObjectId": "d2dbb34462e7424a9c199463bb21bdd5", - "m_Id": 5, - "m_DisplayName": "G", - "m_SlotType": 1, - "m_Hidden": false, - "m_ShaderOutputName": "G", - "m_StageCapability": 2, - "m_Value": 0.0, - "m_DefaultValue": 0.0, - "m_Labels": [] -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", - "m_ObjectId": "d6894d8dff434dd59a557d72bf9f60fb", - "m_Id": 1, - "m_DisplayName": "Texture", + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "d38dd7e5f50e4fa09df0f606f2e323be", + "m_Id": 2016068918, + "m_DisplayName": "ShadingColor", "m_SlotType": 0, "m_Hidden": false, - "m_ShaderOutputName": "Texture", - "m_StageCapability": 3, - "m_BareResource": false, - "m_Texture": { - "m_SerializedTexture": "", - "m_Guid": "" + "m_ShaderOutputName": "_ShadingColor", + "m_StageCapability": 2, + "m_Value": { + "x": 0.5849056243896484, + "y": 0.5849056243896484, + "z": 0.5849056243896484, + "w": 1.0 }, - "m_DefaultType": 0 -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.NormalVectorNode", - "m_ObjectId": "e202f291b6294c1c980899f1ab2ca582", - "m_Group": { - "m_Id": "" + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 }, - "m_Name": "Normal Vector", - "m_DrawState": { - "m_Expanded": true, - "m_Position": { - "serializedVersion": "2", - "x": -718.6666870117188, - "y": 792.6666259765625, - "width": 209.33334350585938, - "height": 318.6666259765625 - } - }, - "m_Slots": [ - { - "m_Id": "f1db522d48544626941467ff25d95e13" - } - ], - "synonyms": [ - "surface direction" - ], - "m_Precision": 0, - "m_PreviewExpanded": true, - "m_DismissedVersion": 0, - "m_PreviewMode": 2, - "m_CustomColors": { - "m_SerializableColors": [] - }, - "m_Space": 2 + "m_Labels": [] } { @@ -2178,184 +1047,21 @@ "m_SerializedDescriptor": "SurfaceDescription.BaseColor" } -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.LerpNode", - "m_ObjectId": "e41f220e296b4cc2a9a3c1faf14d7d72", - "m_Group": { - "m_Id": "" - }, - "m_Name": "Lerp", - "m_DrawState": { - "m_Expanded": true, - "m_Position": { - "serializedVersion": "2", - "x": 262.66668701171877, - "y": 95.3333740234375, - "width": 209.33328247070313, - "height": 327.99993896484377 - } - }, - "m_Slots": [ - { - "m_Id": "f22a1522c3bb47bf8416a9fbb8262bb4" - }, - { - "m_Id": "65f13b0e92a247fdb153ab9b99eb60ec" - }, - { - "m_Id": "2cf27a4d36454c98b25d12c294e5bc6d" - }, - { - "m_Id": "8f535cbbf2854293a08dec8d8aa7986e" - } - ], - "synonyms": [ - "mix", - "blend", - "linear interpolate" - ], - "m_Precision": 0, - "m_PreviewExpanded": true, - "m_DismissedVersion": 0, - "m_PreviewMode": 0, - "m_CustomColors": { - "m_SerializableColors": [] - } -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.UVMaterialSlot", - "m_ObjectId": "e7932487a75244b7b646db0d63a82e8e", - "m_Id": 2, - "m_DisplayName": "UV", - "m_SlotType": 0, - "m_Hidden": false, - "m_ShaderOutputName": "UV", - "m_StageCapability": 3, - "m_Value": { - "x": 0.0, - "y": 0.0 - }, - "m_DefaultValue": { - "x": 0.0, - "y": 0.0 - }, - "m_Labels": [], - "m_Channel": 0 -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", - "m_ObjectId": "ec4dcc25a33a4887adbbbe8bf7ba2d83", - "m_Id": 0, - "m_DisplayName": "A", - "m_SlotType": 0, - "m_Hidden": false, - "m_ShaderOutputName": "A", - "m_StageCapability": 3, - "m_Value": { - "e00": 0.0, - "e01": 0.0, - "e02": 0.0, - "e03": 0.0, - "e10": 0.0, - "e11": 0.0, - "e12": 0.0, - "e13": 0.0, - "e20": 0.0, - "e21": 0.0, - "e22": 0.0, - "e23": 0.0, - "e30": 0.0, - "e31": 0.0, - "e32": 0.0, - "e33": 0.0 - }, - "m_DefaultValue": { - "e00": 1.0, - "e01": 0.0, - "e02": 0.0, - "e03": 0.0, - "e10": 0.0, - "e11": 1.0, - "e12": 0.0, - "e13": 0.0, - "e20": 0.0, - "e21": 0.0, - "e22": 1.0, - "e23": 0.0, - "e30": 0.0, - "e31": 0.0, - "e32": 0.0, - "e33": 1.0 - } -} - { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", - "m_ObjectId": "ec6717fc07224569802ff5be80e915d7", - "m_Id": 3, - "m_DisplayName": "Out", - "m_SlotType": 1, + "m_ObjectId": "ead31769aa464a4e8aae7a3cfa026b2c", + "m_Id": -1559276299, + "m_DisplayName": "ShadingToonyFactor", + "m_SlotType": 0, "m_Hidden": false, - "m_ShaderOutputName": "Out", - "m_StageCapability": 3, + "m_ShaderOutputName": "_ShadingToonyFactor", + "m_StageCapability": 2, "m_Value": 0.0, "m_DefaultValue": 0.0, "m_Labels": [] } -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", - "m_ObjectId": "f1db522d48544626941467ff25d95e13", - "m_Id": 0, - "m_DisplayName": "Out", - "m_SlotType": 1, - "m_Hidden": false, - "m_ShaderOutputName": "Out", - "m_StageCapability": 3, - "m_Value": { - "x": 0.0, - "y": 0.0, - "z": 1.0 - }, - "m_DefaultValue": { - "x": 0.0, - "y": 0.0, - "z": 0.0 - }, - "m_Labels": [] -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", - "m_ObjectId": "f22a1522c3bb47bf8416a9fbb8262bb4", - "m_Id": 0, - "m_DisplayName": "A", - "m_SlotType": 0, - "m_Hidden": false, - "m_ShaderOutputName": "A", - "m_StageCapability": 3, - "m_Value": { - "x": 0.0, - "y": 0.0, - "z": 0.0, - "w": 0.0 - }, - "m_DefaultValue": { - "x": 0.0, - "y": 0.0, - "z": 0.0, - "w": 0.0 - } -} - { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.PositionMaterialSlot", @@ -2380,104 +1086,6 @@ "m_Space": 0 } -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", - "m_ObjectId": "f4bbe10db634492a8b729d010310abe0", - "m_Id": 2, - "m_DisplayName": "Out", - "m_SlotType": 1, - "m_Hidden": false, - "m_ShaderOutputName": "Out", - "m_StageCapability": 3, - "m_Value": { - "e00": 0.0, - "e01": 0.0, - "e02": 0.0, - "e03": 0.0, - "e10": 0.0, - "e11": 0.0, - "e12": 0.0, - "e13": 0.0, - "e20": 0.0, - "e21": 0.0, - "e22": 0.0, - "e23": 0.0, - "e30": 0.0, - "e31": 0.0, - "e32": 0.0, - "e33": 0.0 - }, - "m_DefaultValue": { - "e00": 1.0, - "e01": 0.0, - "e02": 0.0, - "e03": 0.0, - "e10": 0.0, - "e11": 1.0, - "e12": 0.0, - "e13": 0.0, - "e20": 0.0, - "e21": 0.0, - "e22": 1.0, - "e23": 0.0, - "e30": 0.0, - "e31": 0.0, - "e32": 0.0, - "e33": 1.0 - } -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", - "m_ObjectId": "f55b8ae1b1c7406ca3a2b32d737adf05", - "m_Id": 1, - "m_DisplayName": "b", - "m_SlotType": 0, - "m_Hidden": false, - "m_ShaderOutputName": "b", - "m_StageCapability": 3, - "m_Value": 1.0, - "m_DefaultValue": 0.0, - "m_Labels": [] -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.SamplerStateMaterialSlot", - "m_ObjectId": "f92de9080fa848f6831d9ff9301e7ca9", - "m_Id": 3, - "m_DisplayName": "Sampler", - "m_SlotType": 0, - "m_Hidden": false, - "m_ShaderOutputName": "Sampler", - "m_StageCapability": 3, - "m_BareResource": false -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.UVMaterialSlot", - "m_ObjectId": "f968d08982784ea0bdea3db8ea689dd2", - "m_Id": 2, - "m_DisplayName": "UV", - "m_SlotType": 0, - "m_Hidden": false, - "m_ShaderOutputName": "UV", - "m_StageCapability": 3, - "m_Value": { - "x": 0.0, - "y": 0.0 - }, - "m_DefaultValue": { - "x": 0.0, - "y": 0.0 - }, - "m_Labels": [], - "m_Channel": 0 -} - { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", diff --git a/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyMToon_SubGraph.shadersubgraph b/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyMToon_SubGraph.shadersubgraph new file mode 100644 index 000000000..462a1b670 --- /dev/null +++ b/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyMToon_SubGraph.shadersubgraph @@ -0,0 +1,2836 @@ +{ + "m_SGVersion": 3, + "m_Type": "UnityEditor.ShaderGraph.GraphData", + "m_ObjectId": "cb9b3f03eaf8426a80d4812a41b632bf", + "m_Properties": [ + { + "m_Id": "5fcf9b30d74446eea8cc0773e5f006a6" + }, + { + "m_Id": "2a25272ab02641c5bf8885ef2790f1c1" + }, + { + "m_Id": "32d95fb1210b417892ceabe88d06e605" + }, + { + "m_Id": "e6bca830ac7e48a9bbcdc9f0f8ee6967" + }, + { + "m_Id": "22a4bb49b85e452a8db5595bcbeb91c5" + } + ], + "m_Keywords": [], + "m_Dropdowns": [], + "m_CategoryData": [ + { + "m_Id": "501036e1d6184113a2c38a110f6ca14b" + } + ], + "m_Nodes": [ + { + "m_Id": "e14d05fc892148ad9baf9d7558e2cb5a" + }, + { + "m_Id": "793b2df7f27d4151a34ffe48af207418" + }, + { + "m_Id": "c79574bf98cd4d1cb1029e884069a2ec" + }, + { + "m_Id": "76c827b6d41f41adaa41a73858a18fb3" + }, + { + "m_Id": "4157f6d98e8f4cff8948bb4a108c6c31" + }, + { + "m_Id": "45e0e6b45a3a4118a13934d39d0bbd83" + }, + { + "m_Id": "b16e118211bd4fc9b39121a2725d715f" + }, + { + "m_Id": "bb4f64b76594481eabd5d02fd49e443a" + }, + { + "m_Id": "9e8ee3e30f75499087e513eaac81b463" + }, + { + "m_Id": "a42e09269a6848a7b3adddfc9edfcce2" + }, + { + "m_Id": "81b78da7e4f34f108683a1b7f4c3ae4f" + }, + { + "m_Id": "ac0d7130cca947dfa64b9b4e4869b270" + }, + { + "m_Id": "d00ad0a354f1442c89d28b756c8fdcc6" + }, + { + "m_Id": "ea269fbf6a224fecbba11cbfe8f687b3" + }, + { + "m_Id": "3e165d96367e4901bc9876044554588c" + }, + { + "m_Id": "d79d0ca1463f424899863b8c4e306f4b" + }, + { + "m_Id": "193173a2eded42af802f4085a1ba700a" + }, + { + "m_Id": "ebb1c97eea8c4747ab5c2c8eb36fb25f" + }, + { + "m_Id": "cf9257d1f44646b7bb3f3e3b42ecc29e" + }, + { + "m_Id": "4efbc3bbf016413e94e4c9ac65dd4789" + } + ], + "m_GroupDatas": [], + "m_StickyNoteDatas": [], + "m_Edges": [ + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "193173a2eded42af802f4085a1ba700a" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "9e8ee3e30f75499087e513eaac81b463" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "193173a2eded42af802f4085a1ba700a" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "ac0d7130cca947dfa64b9b4e4869b270" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "3e165d96367e4901bc9876044554588c" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "bb4f64b76594481eabd5d02fd49e443a" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "4157f6d98e8f4cff8948bb4a108c6c31" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "45e0e6b45a3a4118a13934d39d0bbd83" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "45e0e6b45a3a4118a13934d39d0bbd83" + }, + "m_SlotId": 1 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "9e8ee3e30f75499087e513eaac81b463" + }, + "m_SlotId": 2 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "4efbc3bbf016413e94e4c9ac65dd4789" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "81b78da7e4f34f108683a1b7f4c3ae4f" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "76c827b6d41f41adaa41a73858a18fb3" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "4157f6d98e8f4cff8948bb4a108c6c31" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "793b2df7f27d4151a34ffe48af207418" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "81b78da7e4f34f108683a1b7f4c3ae4f" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "793b2df7f27d4151a34ffe48af207418" + }, + "m_SlotId": 7 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "ebb1c97eea8c4747ab5c2c8eb36fb25f" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "81b78da7e4f34f108683a1b7f4c3ae4f" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "b16e118211bd4fc9b39121a2725d715f" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "9e8ee3e30f75499087e513eaac81b463" + }, + "m_SlotId": 3 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "b16e118211bd4fc9b39121a2725d715f" + }, + "m_SlotId": 2 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "a42e09269a6848a7b3adddfc9edfcce2" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "bb4f64b76594481eabd5d02fd49e443a" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "ac0d7130cca947dfa64b9b4e4869b270" + }, + "m_SlotId": 1 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "9e8ee3e30f75499087e513eaac81b463" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "b16e118211bd4fc9b39121a2725d715f" + }, + "m_SlotId": 3 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "e14d05fc892148ad9baf9d7558e2cb5a" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "bb4f64b76594481eabd5d02fd49e443a" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "b16e118211bd4fc9b39121a2725d715f" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "c79574bf98cd4d1cb1029e884069a2ec" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "4157f6d98e8f4cff8948bb4a108c6c31" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "cf9257d1f44646b7bb3f3e3b42ecc29e" + }, + "m_SlotId": 1 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "4efbc3bbf016413e94e4c9ac65dd4789" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "cf9257d1f44646b7bb3f3e3b42ecc29e" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "4efbc3bbf016413e94e4c9ac65dd4789" + }, + "m_SlotId": 2 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "cf9257d1f44646b7bb3f3e3b42ecc29e" + }, + "m_SlotId": 3 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "4efbc3bbf016413e94e4c9ac65dd4789" + }, + "m_SlotId": 3 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "cf9257d1f44646b7bb3f3e3b42ecc29e" + }, + "m_SlotId": 4 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "ebb1c97eea8c4747ab5c2c8eb36fb25f" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "d00ad0a354f1442c89d28b756c8fdcc6" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "cf9257d1f44646b7bb3f3e3b42ecc29e" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "d79d0ca1463f424899863b8c4e306f4b" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "a42e09269a6848a7b3adddfc9edfcce2" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "ea269fbf6a224fecbba11cbfe8f687b3" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "793b2df7f27d4151a34ffe48af207418" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "ebb1c97eea8c4747ab5c2c8eb36fb25f" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "e14d05fc892148ad9baf9d7558e2cb5a" + }, + "m_SlotId": 2 + } + } + ], + "m_VertexContext": { + "m_Position": { + "x": 0.0, + "y": 0.0 + }, + "m_Blocks": [] + }, + "m_FragmentContext": { + "m_Position": { + "x": 0.0, + "y": 0.0 + }, + "m_Blocks": [] + }, + "m_PreviewData": { + "serializedMesh": { + "m_SerializedMesh": "{\"mesh\":{\"instanceID\":0}}", + "m_Guid": "" + }, + "preventRotation": false + }, + "m_Path": "Sub Graphs", + "m_GraphPrecision": 1, + "m_PreviewMode": 2, + "m_OutputNode": { + "m_Id": "e14d05fc892148ad9baf9d7558e2cb5a" + }, + "m_SubDatas": [], + "m_ActiveTargets": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "0cb0ffabbdaf4fb3b425b2e9537bed5d", + "m_Id": 2, + "m_DisplayName": "G", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "G", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "0cb14acd223546c1a2eedd3a5fcebc2b", + "m_Id": 3, + "m_DisplayName": "Z", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Z", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [ + "Z" + ] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "0dae3d1d556d4097b65295fe64706c86", + "m_Id": 0, + "m_DisplayName": "RGBA", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "RGBA", + "m_StageCapability": 2, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "1597fd3003474e4698f6d4adb9d4f390", + "m_Id": 3, + "m_DisplayName": "B", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "163b9d55f9ee44c2b2cb1436f7f8054c", + "m_Id": 2, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "e00": 0.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 0.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 0.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 0.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "193173a2eded42af802f4085a1ba700a", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -241.3332977294922, + "y": 66.00003051757813, + "width": 185.33326721191407, + "height": 36.000022888183597 + } + }, + "m_Slots": [ + { + "m_Id": "7da0169054194d1ca00d240bd0af65b4" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "22a4bb49b85e452a8db5595bcbeb91c5" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", + "m_ObjectId": "1e5c3325236a458cb23473e61ab52258", + "m_Id": 0, + "m_DisplayName": "Direction", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Direction", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty", + "m_ObjectId": "22a4bb49b85e452a8db5595bcbeb91c5", + "m_Guid": { + "m_GuidSerialized": "fa354438-5a66-4424-a53f-da950e75c488" + }, + "m_Name": "ShadingToonyFactor", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "ShadingToonyFactor", + "m_DefaultReferenceName": "_ShadingToonyFactor", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": 0.0, + "m_FloatType": 0, + "m_RangeValues": { + "x": 0.0, + "y": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", + "m_ObjectId": "244615cd3b5b44c7a2ac7c7da8a71dfc", + "m_Id": 0, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SamplerStateMaterialSlot", + "m_ObjectId": "25430c424d804824bd3531ba9880d62f", + "m_Id": 3, + "m_DisplayName": "Sampler", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Sampler", + "m_StageCapability": 3, + "m_BareResource": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "257091401f41417f890fcdb167c84b91", + "m_Id": 2, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "27837f86ddaf41618adf108cef8baa14", + "m_Id": 2, + "m_DisplayName": "Y", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Y", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [ + "Y" + ] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "2985a88ee0fd48b9a675673f8eea588e", + "m_Id": 0, + "m_DisplayName": "BaseColor", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Internal.Texture2DShaderProperty", + "m_ObjectId": "2a25272ab02641c5bf8885ef2790f1c1", + "m_Guid": { + "m_GuidSerialized": "d2495ca0-f5eb-484a-bd18-dca0589774e3" + }, + "m_Name": "BaseMap", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "BaseMap", + "m_DefaultReferenceName": "_BaseMap", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": { + "m_SerializedTexture": "", + "m_Guid": "" + }, + "isMainTexture": false, + "useTilingAndOffset": false, + "m_Modifiable": true, + "m_DefaultType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "2a8ff216f8fa407e992c0938ddd0e2c6", + "m_Id": 5, + "m_DisplayName": "G", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "G", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "2b0e00506cd94b85af274754e35c77df", + "m_Id": 0, + "m_DisplayName": "A", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.UVMaterialSlot", + "m_ObjectId": "2bdcfcd7d92349a79460b57f609ef989", + "m_Id": 2, + "m_DisplayName": "UV", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "UV", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0 + }, + "m_Labels": [], + "m_Channel": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "2c8e55ce73964f1bbdc9beb405a0093f", + "m_Id": 0, + "m_DisplayName": "In", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "In", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 3, + "m_Type": "UnityEditor.ShaderGraph.Internal.ColorShaderProperty", + "m_ObjectId": "32d95fb1210b417892ceabe88d06e605", + "m_Guid": { + "m_GuidSerialized": "916faab9-cc1c-4621-84b8-9c47171bf8e8" + }, + "m_Name": "ShadingColor", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "ShadingColor", + "m_DefaultReferenceName": "_ShadingColor", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": { + "r": 0.5849056243896484, + "g": 0.5849056243896484, + "b": 0.5849056243896484, + "a": 1.0 + }, + "isMainColor": false, + "m_ColorMode": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "34ff91286e18426e86c00bdbfdaae840", + "m_Id": 1, + "m_DisplayName": "X", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "X", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "38e3682de0fe4b7e834fc88a7fd54f4d", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": { + "e00": 2.0, + "e01": 2.0, + "e02": 2.0, + "e03": 2.0, + "e10": 2.0, + "e11": 2.0, + "e12": 2.0, + "e13": 2.0, + "e20": 2.0, + "e21": 2.0, + "e22": 2.0, + "e23": 2.0, + "e30": 2.0, + "e31": 2.0, + "e32": 2.0, + "e33": 2.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "3e165d96367e4901bc9876044554588c", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -241.3332977294922, + "y": -6.000007152557373, + "width": 148.66659545898438, + "height": 36.00001907348633 + } + }, + "m_Slots": [ + { + "m_Id": "5cf81e7272804f2f8cabbe976f0b1b13" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "32d95fb1210b417892ceabe88d06e605" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DotProductNode", + "m_ObjectId": "4157f6d98e8f4cff8948bb4a108c6c31", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Dot Product", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -214.00006103515626, + "y": 422.666748046875, + "width": 209.33331298828126, + "height": 303.9998779296875 + } + }, + "m_Slots": [ + { + "m_Id": "9d1c829c991d43528afa6acad4033478" + }, + { + "m_Id": "e07427594c9c4aebaf796277470ea1b9" + }, + { + "m_Id": "257091401f41417f890fcdb167c84b91" + } + ], + "synonyms": [ + "scalar product" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "44d75f87a8b5408ca38a1416cf418dd4", + "m_Id": 3, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SaturateNode", + "m_ObjectId": "45e0e6b45a3a4118a13934d39d0bbd83", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Saturate", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 38.66663360595703, + "y": 386.6667175292969, + "width": 129.3333740234375, + "height": 95.99996948242188 + } + }, + "m_Slots": [ + { + "m_Id": "b6d0fad5c1d84782b3e20bc6ac0bf2ef" + }, + { + "m_Id": "4b263288e74549868e19d6c900861097" + } + ], + "synonyms": [ + "clamp" + ], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "4aa44cb42d3b4c80ba8f1903b32f37b4", + "m_Id": 1, + "m_DisplayName": "b", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "b", + "m_StageCapability": 3, + "m_Value": 1.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "4b263288e74549868e19d6c900861097", + "m_Id": 1, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", + "m_ObjectId": "4ed7912197f44f93bf2584ee61c855c0", + "m_Id": 1, + "m_DisplayName": "Texture", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Texture", + "m_StageCapability": 3, + "m_BareResource": false, + "m_Texture": { + "m_SerializedTexture": "", + "m_Guid": "" + }, + "m_DefaultType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "4ee86880f28443d0b7b1ef7c79bc91b3", + "m_Id": 3, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector3Node", + "m_ObjectId": "4efbc3bbf016413e94e4c9ac65dd4789", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Vector 3", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 41.33331298828125, + "y": -774.6666870117188, + "width": 129.33340454101563, + "height": 126.66668701171875 + } + }, + "m_Slots": [ + { + "m_Id": "34ff91286e18426e86c00bdbfdaae840" + }, + { + "m_Id": "27837f86ddaf41618adf108cef8baa14" + }, + { + "m_Id": "0cb14acd223546c1a2eedd3a5fcebc2b" + }, + { + "m_Id": "244615cd3b5b44c7a2ac7c7da8a71dfc" + } + ], + "synonyms": [ + "3", + "v3", + "vec3", + "float3" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.CategoryData", + "m_ObjectId": "501036e1d6184113a2c38a110f6ca14b", + "m_Name": "", + "m_ChildObjectList": [ + { + "m_Id": "5fcf9b30d74446eea8cc0773e5f006a6" + }, + { + "m_Id": "2a25272ab02641c5bf8885ef2790f1c1" + }, + { + "m_Id": "32d95fb1210b417892ceabe88d06e605" + }, + { + "m_Id": "e6bca830ac7e48a9bbcdc9f0f8ee6967" + }, + { + "m_Id": "22a4bb49b85e452a8db5595bcbeb91c5" + } + ] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "5847cfaef25747b4a16efd37770506fa", + "m_Id": 0, + "m_DisplayName": "RGBA", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "RGBA", + "m_StageCapability": 2, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", + "m_ObjectId": "5b947c35e0f3453e887c550f2ec5bfdf", + "m_Id": 1, + "m_DisplayName": "BaseColor", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "BaseColor", + "m_StageCapability": 2, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "5cf81e7272804f2f8cabbe976f0b1b13", + "m_Id": 0, + "m_DisplayName": "ShadingColor", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 3, + "m_Type": "UnityEditor.ShaderGraph.Internal.ColorShaderProperty", + "m_ObjectId": "5fcf9b30d74446eea8cc0773e5f006a6", + "m_Guid": { + "m_GuidSerialized": "e0a3ade0-ddd9-4c69-b3b5-923901f7b2da" + }, + "m_Name": "BaseColor", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "BaseColor", + "m_DefaultReferenceName": "_BaseColor", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": { + "r": 1.0, + "g": 1.0, + "b": 1.0, + "a": 0.0 + }, + "isMainColor": false, + "m_ColorMode": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.UVMaterialSlot", + "m_ObjectId": "649eba81e261435c982f5e3d878ce491", + "m_Id": 2, + "m_DisplayName": "UV", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "UV", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0 + }, + "m_Labels": [], + "m_Channel": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "657b2df0b83647419b503f35d2e540fb", + "m_Id": 4, + "m_DisplayName": "R", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "R", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "6af38677f0a54e4b802818a37c1d6a25", + "m_Id": 7, + "m_DisplayName": "A", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.NormalVectorNode", + "m_ObjectId": "76c827b6d41f41adaa41a73858a18fb3", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Normal Vector", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -517.3333129882813, + "y": 478.0000915527344, + "width": 209.33334350585938, + "height": 318.6664733886719 + } + }, + "m_Slots": [ + { + "m_Id": "e938be3931ac46ffa7edddb940436026" + } + ], + "synonyms": [ + "surface direction" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 2, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Space": 2 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SampleTexture2DNode", + "m_ObjectId": "793b2df7f27d4151a34ffe48af207418", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Sample Texture 2D", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -30.666671752929689, + "y": -480.6666259765625, + "width": 184.66668701171876, + "height": 254.66665649414063 + } + }, + "m_Slots": [ + { + "m_Id": "0dae3d1d556d4097b65295fe64706c86" + }, + { + "m_Id": "de6d929ef0ec47878f4068f31fea7ae5" + }, + { + "m_Id": "2a8ff216f8fa407e992c0938ddd0e2c6" + }, + { + "m_Id": "97382d7cd5ce4cecbf2468b7f6d66a9a" + }, + { + "m_Id": "6af38677f0a54e4b802818a37c1d6a25" + }, + { + "m_Id": "4ed7912197f44f93bf2584ee61c855c0" + }, + { + "m_Id": "2bdcfcd7d92349a79460b57f609ef989" + }, + { + "m_Id": "daf420841b3c40889d2c501d86575475" + } + ], + "synonyms": [ + "tex2d" + ], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_TextureType": 0, + "m_NormalMapSpace": 1, + "m_EnableGlobalMipBias": true, + "m_MipSamplingMode": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "7987a14649d0436fbb2b63bd33dc08d5", + "m_Id": 0, + "m_DisplayName": "a", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "a", + "m_StageCapability": 3, + "m_Value": -1.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "7da0169054194d1ca00d240bd0af65b4", + "m_Id": 0, + "m_DisplayName": "ShadingToonyFactor", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.MultiplyNode", + "m_ObjectId": "81b78da7e4f34f108683a1b7f4c3ae4f", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Multiply", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 191.83334350585938, + "y": -719.625, + "width": 209.33334350585938, + "height": 304.0 + } + }, + "m_Slots": [ + { + "m_Id": "ca76bcc7cea846269e39d74f97a0ead4" + }, + { + "m_Id": "8d7a61e8c61841e58a3286448d5ea2b2" + }, + { + "m_Id": "b7080a7c10fd4b93b68b164b9ea70568" + } + ], + "synonyms": [ + "multiplication", + "times", + "x" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "8372fcb866dc4d37847d61202dc300e1", + "m_Id": 0, + "m_DisplayName": "A", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": { + "e00": 0.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 0.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 0.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 0.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "876172de5f624593ad014c6084923ec0", + "m_Id": 6, + "m_DisplayName": "B", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "8d7a61e8c61841e58a3286448d5ea2b2", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": { + "e00": 2.0, + "e01": 2.0, + "e02": 2.0, + "e03": 2.0, + "e10": 2.0, + "e11": 2.0, + "e12": 2.0, + "e13": 2.0, + "e20": 2.0, + "e21": 2.0, + "e22": 2.0, + "e23": 2.0, + "e30": 2.0, + "e31": 2.0, + "e32": 2.0, + "e33": 2.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DMaterialSlot", + "m_ObjectId": "93ab07151d1b4240ab5d847b40bf0a80", + "m_Id": 0, + "m_DisplayName": "ShadingColorMap", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_BareResource": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "97382d7cd5ce4cecbf2468b7f6d66a9a", + "m_Id": 6, + "m_DisplayName": "B", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "9cb9ef053c164969a9aab726b690190a", + "m_Id": 7, + "m_DisplayName": "A", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "9d1c829c991d43528afa6acad4033478", + "m_Id": 0, + "m_DisplayName": "A", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.ShaderGraph.CustomFunctionNode", + "m_ObjectId": "9e8ee3e30f75499087e513eaac81b463", + "m_Group": { + "m_Id": "" + }, + "m_Name": "linearstep (Custom Function)", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 189.33331298828126, + "y": 242.66673278808595, + "width": 211.99993896484376, + "height": 143.99998474121095 + } + }, + "m_Slots": [ + { + "m_Id": "7987a14649d0436fbb2b63bd33dc08d5" + }, + { + "m_Id": "4aa44cb42d3b4c80ba8f1903b32f37b4" + }, + { + "m_Id": "cfc8a677eace44708d05b23cb2b55d44" + }, + { + "m_Id": "44d75f87a8b5408ca38a1416cf418dd4" + } + ], + "synonyms": [ + "code", + "HLSL" + ], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SourceType": 1, + "m_FunctionName": "linearstep", + "m_FunctionSource": "", + "m_FunctionBody": "Out = saturate( ( t - a ) / ( b - a ) );" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SampleTexture2DNode", + "m_ObjectId": "a42e09269a6848a7b3adddfc9edfcce2", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Sample Texture 2D", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -16.666717529296876, + "y": -131.99996948242188, + "width": 184.66671752929688, + "height": 254.6666717529297 + } + }, + "m_Slots": [ + { + "m_Id": "5847cfaef25747b4a16efd37770506fa" + }, + { + "m_Id": "657b2df0b83647419b503f35d2e540fb" + }, + { + "m_Id": "f91901c910614437a72ff48aa2a3115c" + }, + { + "m_Id": "876172de5f624593ad014c6084923ec0" + }, + { + "m_Id": "9cb9ef053c164969a9aab726b690190a" + }, + { + "m_Id": "b57dd1d5bdd843d183a52cd79f346950" + }, + { + "m_Id": "649eba81e261435c982f5e3d878ce491" + }, + { + "m_Id": "25430c424d804824bd3531ba9880d62f" + } + ], + "synonyms": [ + "tex2d" + ], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_TextureType": 0, + "m_NormalMapSpace": 1, + "m_EnableGlobalMipBias": true, + "m_MipSamplingMode": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DMaterialSlot", + "m_ObjectId": "a838792aa13d4541818368f65bb82d7a", + "m_Id": 0, + "m_DisplayName": "BaseMap", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_BareResource": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.NegateNode", + "m_ObjectId": "ac0d7130cca947dfa64b9b4e4869b270", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Negate", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 38.66663360595703, + "y": 242.66673278808595, + "width": 129.3333740234375, + "height": 95.99998474121094 + } + }, + "m_Slots": [ + { + "m_Id": "cac2f02518114904803896b7968ba030" + }, + { + "m_Id": "d7dcd343de1f4610bd50183c7bbc027a" + } + ], + "synonyms": [ + "invert", + "opposite" + ], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.LerpNode", + "m_ObjectId": "b16e118211bd4fc9b39121a2725d715f", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Lerp", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 445.9999694824219, + "y": -225.99998474121095, + "width": 209.33328247070313, + "height": 328.0000305175781 + } + }, + "m_Slots": [ + { + "m_Id": "2b0e00506cd94b85af274754e35c77df" + }, + { + "m_Id": "edb0fcfb67d244fe80df1b46b01370e5" + }, + { + "m_Id": "d786e0e9365341c09aec46e04e10c1dc" + }, + { + "m_Id": "4ee86880f28443d0b7b1ef7c79bc91b3" + } + ], + "synonyms": [ + "mix", + "blend", + "linear interpolate" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", + "m_ObjectId": "b57dd1d5bdd843d183a52cd79f346950", + "m_Id": 1, + "m_DisplayName": "Texture", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Texture", + "m_StageCapability": 3, + "m_BareResource": false, + "m_Texture": { + "m_SerializedTexture": "", + "m_Guid": "" + }, + "m_DefaultType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "b6d0fad5c1d84782b3e20bc6ac0bf2ef", + "m_Id": 0, + "m_DisplayName": "In", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "In", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "b7080a7c10fd4b93b68b164b9ea70568", + "m_Id": 2, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "e00": 0.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 0.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 0.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 0.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.MultiplyNode", + "m_ObjectId": "bb4f64b76594481eabd5d02fd49e443a", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Multiply", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 189.33331298828126, + "y": -207.33331298828126, + "width": 209.33331298828126, + "height": 304.0 + } + }, + "m_Slots": [ + { + "m_Id": "df377d8b254448c3bb530d3b5fc8caf2" + }, + { + "m_Id": "bfdd6544b5774cadbe83892bdc8d4e43" + }, + { + "m_Id": "163b9d55f9ee44c2b2cb1436f7f8054c" + } + ], + "synonyms": [ + "multiplication", + "times", + "x" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "bfdd6544b5774cadbe83892bdc8d4e43", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": { + "e00": 2.0, + "e01": 2.0, + "e02": 2.0, + "e03": 2.0, + "e10": 2.0, + "e11": 2.0, + "e12": 2.0, + "e13": 2.0, + "e20": 2.0, + "e21": 2.0, + "e22": 2.0, + "e23": 2.0, + "e30": 2.0, + "e31": 2.0, + "e32": 2.0, + "e33": 2.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.MainLightDirectionNode", + "m_ObjectId": "c79574bf98cd4d1cb1029e884069a2ec", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Main Light Direction", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -469.3333435058594, + "y": 376.6667175292969, + "width": 161.3333740234375, + "height": 78.6666259765625 + } + }, + "m_Slots": [ + { + "m_Id": "1e5c3325236a458cb23473e61ab52258" + } + ], + "synonyms": [ + "sun" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "ca76bcc7cea846269e39d74f97a0ead4", + "m_Id": 0, + "m_DisplayName": "A", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": { + "e00": 0.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 0.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 0.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 0.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "cac2f02518114904803896b7968ba030", + "m_Id": 0, + "m_DisplayName": "In", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "In", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SplitNode", + "m_ObjectId": "cf9257d1f44646b7bb3f3e3b42ecc29e", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Split", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -113.33329010009766, + "y": -795.3333740234375, + "width": 120.66663360595703, + "height": 150.66668701171876 + } + }, + "m_Slots": [ + { + "m_Id": "2c8e55ce73964f1bbdc9beb405a0093f" + }, + { + "m_Id": "e89cf23170ba405e8d246dc5294c2b52" + }, + { + "m_Id": "0cb0ffabbdaf4fb3b425b2e9537bed5d" + }, + { + "m_Id": "1597fd3003474e4698f6d4adb9d4f390" + }, + { + "m_Id": "f22d8391c7d848bc98ea5de0e815a928" + } + ], + "synonyms": [ + "separate" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "cfc8a677eace44708d05b23cb2b55d44", + "m_Id": 2, + "m_DisplayName": "t", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "t", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "d00ad0a354f1442c89d28b756c8fdcc6", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -277.33331298828127, + "y": -756.0, + "width": 132.00001525878907, + "height": 36.0 + } + }, + "m_Slots": [ + { + "m_Id": "2985a88ee0fd48b9a675673f8eea588e" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "5fcf9b30d74446eea8cc0773e5f006a6" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "d786e0e9365341c09aec46e04e10c1dc", + "m_Id": 2, + "m_DisplayName": "T", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "T", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "d79d0ca1463f424899863b8c4e306f4b", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -241.3332977294922, + "y": 30.00001335144043, + "width": 177.99990844726563, + "height": 36.00001525878906 + } + }, + "m_Slots": [ + { + "m_Id": "93ab07151d1b4240ab5d847b40bf0a80" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "e6bca830ac7e48a9bbcdc9f0f8ee6967" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "d7dcd343de1f4610bd50183c7bbc027a", + "m_Id": 1, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SamplerStateMaterialSlot", + "m_ObjectId": "daf420841b3c40889d2c501d86575475", + "m_Id": 3, + "m_DisplayName": "Sampler", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Sampler", + "m_StageCapability": 3, + "m_BareResource": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "dcb2eb82aeda4f4781fa51c613f2f64c", + "m_Id": 2, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "e00": 0.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 0.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 0.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 0.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "de6d929ef0ec47878f4068f31fea7ae5", + "m_Id": 4, + "m_DisplayName": "R", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "R", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "df377d8b254448c3bb530d3b5fc8caf2", + "m_Id": 0, + "m_DisplayName": "A", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": { + "e00": 0.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 0.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 0.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 0.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "e07427594c9c4aebaf796277470ea1b9", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 1.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SubGraphOutputNode", + "m_ObjectId": "e14d05fc892148ad9baf9d7558e2cb5a", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Output", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 714.6666870117188, + "y": -428.6665954589844, + "width": 110.00006103515625, + "height": 102.6666259765625 + } + }, + "m_Slots": [ + { + "m_Id": "5b947c35e0f3453e887c550f2ec5bfdf" + }, + { + "m_Id": "eb34d529e298407aa3606f9cbcdc7819" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "IsFirstSlotValid": true +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Internal.Texture2DShaderProperty", + "m_ObjectId": "e6bca830ac7e48a9bbcdc9f0f8ee6967", + "m_Guid": { + "m_GuidSerialized": "ad5cc3fe-a5f8-4a48-9956-35d13519f07e" + }, + "m_Name": "ShadingColorMap", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "ShadingColorMap", + "m_DefaultReferenceName": "_ShadingColorMap", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": { + "m_SerializedTexture": "", + "m_Guid": "" + }, + "isMainTexture": false, + "useTilingAndOffset": false, + "m_Modifiable": true, + "m_DefaultType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "e89cf23170ba405e8d246dc5294c2b52", + "m_Id": 1, + "m_DisplayName": "R", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "R", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", + "m_ObjectId": "e938be3931ac46ffa7edddb940436026", + "m_Id": 0, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 1.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "ea269fbf6a224fecbba11cbfe8f687b3", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -278.6666259765625, + "y": -451.9999694824219, + "width": 133.33328247070313, + "height": 36.0 + } + }, + "m_Slots": [ + { + "m_Id": "a838792aa13d4541818368f65bb82d7a" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "2a25272ab02641c5bf8885ef2790f1c1" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "eb34d529e298407aa3606f9cbcdc7819", + "m_Id": 2, + "m_DisplayName": "Alpha", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Alpha", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.MultiplyNode", + "m_ObjectId": "ebb1c97eea8c4747ab5c2c8eb36fb25f", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Multiply", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 271.3333435058594, + "y": -402.6666259765625, + "width": 127.33328247070313, + "height": 120.00003051757813 + } + }, + "m_Slots": [ + { + "m_Id": "8372fcb866dc4d37847d61202dc300e1" + }, + { + "m_Id": "38e3682de0fe4b7e834fc88a7fd54f4d" + }, + { + "m_Id": "dcb2eb82aeda4f4781fa51c613f2f64c" + } + ], + "synonyms": [ + "multiplication", + "times", + "x" + ], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "edb0fcfb67d244fe80df1b46b01370e5", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": { + "x": 1.0, + "y": 1.0, + "z": 1.0, + "w": 1.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "f22d8391c7d848bc98ea5de0e815a928", + "m_Id": 4, + "m_DisplayName": "A", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "f91901c910614437a72ff48aa2a3115c", + "m_Id": 5, + "m_DisplayName": "G", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "G", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + diff --git a/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyMToon_SubGraph.shadersubgraph.meta b/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyMToon_SubGraph.shadersubgraph.meta new file mode 100644 index 000000000..812e9d425 --- /dev/null +++ b/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyMToon_SubGraph.shadersubgraph.meta @@ -0,0 +1,10 @@ +fileFormatVersion: 2 +guid: 45c6d2335bae988419dbc2ec65c33dae +ScriptedImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 2 + userData: + assetBundleName: + assetBundleVariant: + script: {fileID: 11500000, guid: 60072b568d64c40a485e0fc55012dc9f, type: 3} diff --git a/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyPbrSubGraph.shadersubgraph b/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyPbr_SubGraph.shadersubgraph similarity index 100% rename from Assets/VRM10_Samples/VRM10Viewer/Assets/TinyPbrSubGraph.shadersubgraph rename to Assets/VRM10_Samples/VRM10Viewer/Assets/TinyPbr_SubGraph.shadersubgraph diff --git a/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyPbrSubGraph.shadersubgraph.meta b/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyPbr_SubGraph.shadersubgraph.meta similarity index 100% rename from Assets/VRM10_Samples/VRM10Viewer/Assets/TinyPbrSubGraph.shadersubgraph.meta rename to Assets/VRM10_Samples/VRM10Viewer/Assets/TinyPbr_SubGraph.shadersubgraph.meta diff --git a/Assets/VRM10_Samples/VRM10Viewer/TinyMToonMaterialImporter.cs b/Assets/VRM10_Samples/VRM10Viewer/TinyMToonMaterialImporter.cs index 5801562d8..0232dad37 100644 --- a/Assets/VRM10_Samples/VRM10Viewer/TinyMToonMaterialImporter.cs +++ b/Assets/VRM10_Samples/VRM10Viewer/TinyMToonMaterialImporter.cs @@ -10,9 +10,11 @@ namespace UniVRM10.VRM10Viewer public class TinyMToonrMaterialImporter : IMaterialImporter { private Material m_opaque; - public TinyMToonrMaterialImporter(Material material) + private Material m_alphablend; + public TinyMToonrMaterialImporter(Material opaque, Material alphablend) { - m_opaque = material; + m_opaque = opaque; + m_alphablend = alphablend; } bool IMaterialImporter.TryCreateParam(GltfData data, int i, out MaterialDescriptor matDesc) @@ -33,7 +35,7 @@ namespace UniVRM10.VRM10Viewer matDesc = new MaterialDescriptor( GltfMaterialImportUtils.ImportMaterialName(i, src), - m_opaque.shader, + src.alphaMode == "BLEND" ? m_alphablend.shader : m_opaque.shader, null, new Dictionary(), new Dictionary(), diff --git a/Assets/VRM10_Samples/VRM10Viewer/VRM10Viewer.unity b/Assets/VRM10_Samples/VRM10Viewer/VRM10Viewer.unity index f380c4088..dc470aae5 100644 --- a/Assets/VRM10_Samples/VRM10Viewer/VRM10Viewer.unity +++ b/Assets/VRM10_Samples/VRM10Viewer/VRM10Viewer.unity @@ -30638,12 +30638,14 @@ MonoBehaviour: Root: {fileID: 124675793} m_version: {fileID: 1268276256} m_faceCamera: {fileID: 1150163685} - m_opaqueMaterial: {fileID: -876546973899608171, guid: ac58f8c11a130e04ba883a82ae4b78e4, + m_pbrOpaqueMaterial: {fileID: -876546973899608171, guid: ac58f8c11a130e04ba883a82ae4b78e4, type: 3} - m_alphaBlendMaterial: {fileID: -876546973899608171, guid: 868190a58757d6242bb3ca456402f82f, + m_pbrAlphaBlendMaterial: {fileID: -876546973899608171, guid: 868190a58757d6242bb3ca456402f82f, type: 3} m_mtoonMaterialOpaque: {fileID: -876546973899608171, guid: fd08e80eb7e04e849b8a6d534e48efea, type: 3} + m_mtoonMaterialAlphaBlend: {fileID: -876546973899608171, guid: 6b60fe85d745eda4281e3278fcb0657c, + type: 3} m_useCustomMaterial: {fileID: 731212246} m_openModel: {fileID: 2009818433} m_openMotion: {fileID: 168425996} diff --git a/Assets/VRM10_Samples/VRM10Viewer/VRM10ViewerUI.cs b/Assets/VRM10_Samples/VRM10Viewer/VRM10ViewerUI.cs index 39720314f..c6e7bd2f9 100644 --- a/Assets/VRM10_Samples/VRM10Viewer/VRM10ViewerUI.cs +++ b/Assets/VRM10_Samples/VRM10Viewer/VRM10ViewerUI.cs @@ -24,11 +24,13 @@ namespace UniVRM10.VRM10Viewer [Header("Material")] [SerializeField] - Material m_opaqueMaterial = default; + Material m_pbrOpaqueMaterial = default; [SerializeField] - Material m_alphaBlendMaterial = default; + Material m_pbrAlphaBlendMaterial = default; [SerializeField] Material m_mtoonMaterialOpaque = default; + [SerializeField] + Material m_mtoonMaterialAlphaBlend = default; [Header("UI")] [SerializeField] @@ -497,8 +499,8 @@ namespace UniVRM10.VRM10Viewer private void Start() { - m_mtoonImporter = new(m_mtoonMaterialOpaque); - m_pbrImporter = new(m_opaqueMaterial, m_alphaBlendMaterial); + m_mtoonImporter = new(m_mtoonMaterialOpaque, m_mtoonMaterialAlphaBlend); + m_pbrImporter = new(m_pbrOpaqueMaterial, m_pbrAlphaBlendMaterial); m_autoEmotion = gameObject.AddComponent(); m_autoBlink = gameObject.AddComponent(); @@ -518,7 +520,7 @@ namespace UniVRM10.VRM10Viewer Motion = BvhMotion.LoadBvhFromText(m_motion.text); if (m_useCustomMaterial.isOn) { - Motion.SetBoxManMaterial(Instantiate(m_opaqueMaterial)); + Motion.SetBoxManMaterial(Instantiate(m_pbrOpaqueMaterial)); } } From 854ab8763a732a96b2038f98ddc4f961d63ad80f Mon Sep 17 00:00:00 2001 From: ousttrue Date: Fri, 7 Feb 2025 14:57:36 +0900 Subject: [PATCH 14/56] TinyMToon cuttoff --- .../Assets/TinyMToonOpaque.shadergraph | 481 +++++++++++++++++- .../Assets/TinyPbrOpaque.shadergraph | 2 +- .../VRM10Viewer/TinyMToonMaterialImporter.cs | 21 +- 3 files changed, 497 insertions(+), 7 deletions(-) diff --git a/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyMToonOpaque.shadergraph b/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyMToonOpaque.shadergraph index 6c0af666a..6bcdfb896 100644 --- a/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyMToonOpaque.shadergraph +++ b/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyMToonOpaque.shadergraph @@ -17,6 +17,12 @@ }, { "m_Id": "025d73c9fe2e47b3853bf9a00d126af4" + }, + { + "m_Id": "4667227926a9450aa7fa8e58a1bf3866" + }, + { + "m_Id": "d39873e6759a47c2a923dde640e6f4f6" } ], "m_Keywords": [], @@ -56,6 +62,21 @@ }, { "m_Id": "0776e82cf5bc4372962108bf3847d1d0" + }, + { + "m_Id": "5f8ace17977d4222984886f84ada0bb7" + }, + { + "m_Id": "0320eacfafcc41858dfd5b6372050fc2" + }, + { + "m_Id": "c740dd36ebf2452394a2d44e668e38b0" + }, + { + "m_Id": "1728ea63931448eaa4ab79b764364e17" + }, + { + "m_Id": "9096c7ad43b94e54b6b3240398f1dab5" } ], "m_GroupDatas": [], @@ -89,6 +110,34 @@ "m_SlotId": 0 } }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "0776e82cf5bc4372962108bf3847d1d0" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "5f8ace17977d4222984886f84ada0bb7" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "1728ea63931448eaa4ab79b764364e17" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "9096c7ad43b94e54b6b3240398f1dab5" + }, + "m_SlotId": 0 + } + }, { "m_OutputSlot": { "m_Node": { @@ -103,6 +152,20 @@ "m_SlotId": -1559276299 } }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "9096c7ad43b94e54b6b3240398f1dab5" + }, + "m_SlotId": 3 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "0320eacfafcc41858dfd5b6372050fc2" + }, + "m_SlotId": 0 + } + }, { "m_OutputSlot": { "m_Node": { @@ -144,12 +207,26 @@ }, "m_SlotId": 1221667242 } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "c740dd36ebf2452394a2d44e668e38b0" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "9096c7ad43b94e54b6b3240398f1dab5" + }, + "m_SlotId": 1 + } } ], "m_VertexContext": { "m_Position": { - "x": 544.0000610351563, - "y": -131.33334350585938 + "x": 546.0000610351563, + "y": -219.33334350585938 }, "m_Blocks": [ { @@ -165,12 +242,18 @@ }, "m_FragmentContext": { "m_Position": { - "x": 544.0000610351563, - "y": 95.3333740234375 + "x": 546.0000610351563, + "y": 7.333324909210205 }, "m_Blocks": [ + { + "m_Id": "0320eacfafcc41858dfd5b6372050fc2" + }, { "m_Id": "e27b69744886424eb5f477011f04efd2" + }, + { + "m_Id": "5f8ace17977d4222984886f84ada0bb7" } ] }, @@ -308,6 +391,40 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "0320eacfafcc41858dfd5b6372050fc2", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.AlphaClipThreshold", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 558.6666870117188, + "y": 123.33332061767578, + "width": 200.00006103515626, + "height": 42.66667938232422 + } + }, + "m_Slots": [ + { + "m_Id": "f01783c2eb3e41f1aa4a8da53d9a3418" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.AlphaClipThreshold" +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.SubGraphNode", @@ -376,6 +493,56 @@ "m_DropdownSelectedEntries": [] } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "1728ea63931448eaa4ab79b764364e17", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 27.33334732055664, + "y": -64.66671752929688, + "width": 153.33331298828126, + "height": 36.000022888183597 + } + }, + "m_Slots": [ + { + "m_Id": "1c86e26ba56e4bd69ca061135f228cab" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "d39873e6759a47c2a923dde640e6f4f6" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BooleanMaterialSlot", + "m_ObjectId": "1c86e26ba56e4bd69ca061135f228cab", + "m_Id": 0, + "m_DisplayName": "CutoffEnabled", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": false, + "m_DefaultValue": false +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.PropertyNode", @@ -487,6 +654,48 @@ "m_ColorMode": 0 } +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty", + "m_ObjectId": "4667227926a9450aa7fa8e58a1bf3866", + "m_Guid": { + "m_GuidSerialized": "ee764527-b699-4375-a90e-704da739a647" + }, + "m_Name": "Cuttoff", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "Cuttoff", + "m_DefaultReferenceName": "_Cuttoff", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": 0.5, + "m_FloatType": 0, + "m_RangeValues": { + "x": 0.0, + "y": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BooleanMaterialSlot", + "m_ObjectId": "4730d3a27f9a460a94cba10d4c7af258", + "m_Id": 0, + "m_DisplayName": "Predicate", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Predicate", + "m_StageCapability": 3, + "m_Value": false, + "m_DefaultValue": false +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.BlockNode", @@ -594,6 +803,55 @@ "m_DefaultType": 0 } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "5c8d36b44e8a48f7b4c1ad2c746e8f81", + "m_Id": 0, + "m_DisplayName": "Alpha", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Alpha", + "m_StageCapability": 2, + "m_Value": 1.0, + "m_DefaultValue": 1.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "5f8ace17977d4222984886f84ada0bb7", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.Alpha", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 0.0, + "y": 0.0, + "width": 0.0, + "height": 0.0 + } + }, + "m_Slots": [ + { + "m_Id": "5c8d36b44e8a48f7b4c1ad2c746e8f81" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.Alpha" +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", @@ -689,6 +947,12 @@ }, { "m_Id": "025d73c9fe2e47b3853bf9a00d126af4" + }, + { + "m_Id": "4667227926a9450aa7fa8e58a1bf3866" + }, + { + "m_Id": "d39873e6759a47c2a923dde640e6f4f6" } ] } @@ -755,6 +1019,52 @@ "m_SerializedDescriptor": "VertexDescription.Position" } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BranchNode", + "m_ObjectId": "9096c7ad43b94e54b6b3240398f1dab5", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Branch", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 263.3333435058594, + "y": -89.33332061767578, + "width": 172.0, + "height": 143.99998474121095 + } + }, + "m_Slots": [ + { + "m_Id": "4730d3a27f9a460a94cba10d4c7af258" + }, + { + "m_Id": "db4f33ae2bdb474ea3319bd12b4039e3" + }, + { + "m_Id": "e4d1e079907b45f9a2464807787aa1e7" + }, + { + "m_Id": "b15c2b9e8aea45a49fb87bd57213690e" + } + ], + "synonyms": [ + "switch", + "if", + "else" + ], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", @@ -834,6 +1144,30 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "b15c2b9e8aea45a49fb87bd57213690e", + "m_Id": 3, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.PropertyNode", @@ -930,6 +1264,21 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "c16b87dc9c1f410aa309adc94136d2ea", + "m_Id": 0, + "m_DisplayName": "Cuttoff", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + { "m_SGVersion": 3, "m_Type": "UnityEditor.ShaderGraph.Internal.ColorShaderProperty", @@ -960,6 +1309,42 @@ "m_ColorMode": 0 } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "c740dd36ebf2452394a2d44e668e38b0", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 67.33332061767578, + "y": -28.66669273376465, + "width": 113.33333587646485, + "height": 35.99998474121094 + } + }, + "m_Slots": [ + { + "m_Id": "c16b87dc9c1f410aa309adc94136d2ea" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "4667227926a9450aa7fa8e58a1bf3866" + } +} + { "m_SGVersion": 1, "m_Type": "UnityEditor.Rendering.Universal.ShaderGraph.UniversalTarget", @@ -974,7 +1359,7 @@ "m_ZWriteControl": 0, "m_AlphaMode": 0, "m_RenderFace": 2, - "m_AlphaClip": false, + "m_AlphaClip": true, "m_CastShadows": true, "m_ReceiveShadows": true, "m_SupportsLODCrossFade": false, @@ -1013,6 +1398,53 @@ "m_Labels": [] } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Internal.BooleanShaderProperty", + "m_ObjectId": "d39873e6759a47c2a923dde640e6f4f6", + "m_Guid": { + "m_GuidSerialized": "adf6f980-4b4f-499b-9801-3cd83d49a2df" + }, + "m_Name": "CutoffEnabled", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "CutoffEnabled", + "m_DefaultReferenceName": "_CutoffEnabled", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "db4f33ae2bdb474ea3319bd12b4039e3", + "m_Id": 1, + "m_DisplayName": "True", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "True", + "m_StageCapability": 3, + "m_Value": { + "x": 1.0, + "y": 1.0, + "z": 1.0, + "w": 1.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.BlockNode", @@ -1047,6 +1479,30 @@ "m_SerializedDescriptor": "SurfaceDescription.BaseColor" } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "e4d1e079907b45f9a2464807787aa1e7", + "m_Id": 2, + "m_DisplayName": "False", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "False", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", @@ -1062,6 +1518,21 @@ "m_Labels": [] } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "f01783c2eb3e41f1aa4a8da53d9a3418", + "m_Id": 0, + "m_DisplayName": "Alpha Clip Threshold", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "AlphaClipThreshold", + "m_StageCapability": 2, + "m_Value": 0.5, + "m_DefaultValue": 0.5, + "m_Labels": [] +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.PositionMaterialSlot", diff --git a/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyPbrOpaque.shadergraph b/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyPbrOpaque.shadergraph index 80631d754..a4bf22ab9 100644 --- a/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyPbrOpaque.shadergraph +++ b/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyPbrOpaque.shadergraph @@ -796,7 +796,7 @@ "m_Group": { "m_Id": "" }, - "m_Name": "TinyPbr", + "m_Name": "TinyPbr_SubGraph", "m_DrawState": { "m_Expanded": true, "m_Position": { diff --git a/Assets/VRM10_Samples/VRM10Viewer/TinyMToonMaterialImporter.cs b/Assets/VRM10_Samples/VRM10Viewer/TinyMToonMaterialImporter.cs index 0232dad37..bd467cd5d 100644 --- a/Assets/VRM10_Samples/VRM10Viewer/TinyMToonMaterialImporter.cs +++ b/Assets/VRM10_Samples/VRM10Viewer/TinyMToonMaterialImporter.cs @@ -53,7 +53,7 @@ namespace UniVRM10.VRM10Viewer { var context = new TinyMToonMaterialContext(dst); - // ImportSurfaceSettings(src, context); + ImportSurfaceSettings(src, context); await ImportBaseShadeColorAsync(data, src, mtoon, context, getTextureAsync, awaitCaller); // await ImportMetallicRoughnessAsync(data, src, context, getTextureAsync, awaitCaller); // await ImportOcclusionAsync(data, src, context, getTextureAsync, awaitCaller); @@ -63,6 +63,25 @@ namespace UniVRM10.VRM10Viewer // context.Validate(); } + public static void ImportSurfaceSettings(glTFMaterial src, TinyMToonMaterialContext context) + { + // context.SurfaceType = src.alphaMode switch + // { + // "OPAQUE" => UrpLitSurfaceType.Opaque, + // "MASK" => UrpLitSurfaceType.Transparent, + // "BLEND" => UrpLitSurfaceType.Transparent, + // _ => UrpLitSurfaceType.Opaque, + // }; + // context.BlendMode = context.SurfaceType switch + // { + // UrpLitSurfaceType.Transparent => UrpLitBlendMode.Alpha, + // _ => UrpLitBlendMode.Alpha, + // }; + context.CutoffEnabled = src.alphaMode == "MASK"; + context.Cutoff = src.alphaCutoff; + // context.CullMode = src.doubleSided ? CullMode.Off : CullMode.Back; + } + public static async Task ImportBaseShadeColorAsync(GltfData data, glTFMaterial src, VRMC_materials_mtoon mtoon, TinyMToonMaterialContext context, GetTextureAsyncFunc getTextureAsync, IAwaitCaller awaitCaller) { var baseColorFactor = GltfMaterialImportUtils.ImportLinearBaseColorFactor(data, src); From 1341a46138bb2e3243835351b66dcc3a18e760c0 Mon Sep 17 00:00:00 2001 From: ousttrue Date: Wed, 12 Feb 2025 14:18:01 +0900 Subject: [PATCH 15/56] call HumanPoseHandler --- .../Runtime/UniHumanoid/HumanPoseTransfer.cs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Assets/UniGLTF/Runtime/UniHumanoid/HumanPoseTransfer.cs b/Assets/UniGLTF/Runtime/UniHumanoid/HumanPoseTransfer.cs index d9ee1a829..ea7f7a94d 100644 --- a/Assets/UniGLTF/Runtime/UniHumanoid/HumanPoseTransfer.cs +++ b/Assets/UniGLTF/Runtime/UniHumanoid/HumanPoseTransfer.cs @@ -65,6 +65,15 @@ namespace UniHumanoid } HumanPoseHandler m_handler; + public void Dispose() + { + if (m_handler != null) + { + m_handler.Dispose(); + m_handler = null; + } + } + public void OnEnable() { if (TryGetComponent(out var animator)) @@ -75,12 +84,18 @@ namespace UniHumanoid Setup(); } + void OnDisable() + { + Dispose(); + } + public void Setup() { if (Avatar == null) { return; } + Dispose(); m_handler = new HumanPoseHandler(Avatar, transform); } From c27c4b6153dd561a9491e4f315db2d560e8ea8be Mon Sep 17 00:00:00 2001 From: ousttrue Date: Wed, 12 Feb 2025 14:56:20 +0900 Subject: [PATCH 16/56] ForceUniqueName before create AvatarDescription --- .../Runtime/UniHumanoid/AvatarDescription.cs | 2 +- .../Runtime/UniHumanoid/HumanoidLoader.cs | 2 +- .../{UniHumanoid => Utils}/ForceUniqueName.cs | 23 ++++++++++++++++--- .../ForceUniqueName.cs.meta | 0 4 files changed, 22 insertions(+), 5 deletions(-) rename Assets/UniGLTF/Runtime/{UniHumanoid => Utils}/ForceUniqueName.cs (79%) rename Assets/UniGLTF/Runtime/{UniHumanoid => Utils}/ForceUniqueName.cs.meta (100%) diff --git a/Assets/UniGLTF/Runtime/UniHumanoid/AvatarDescription.cs b/Assets/UniGLTF/Runtime/UniHumanoid/AvatarDescription.cs index 3327947f3..d54dded13 100644 --- a/Assets/UniGLTF/Runtime/UniHumanoid/AvatarDescription.cs +++ b/Assets/UniGLTF/Runtime/UniHumanoid/AvatarDescription.cs @@ -129,7 +129,7 @@ namespace UniHumanoid public Avatar CreateAvatar(Transform root) { // force unique name - ForceUniqueName.Process(root); + ForceUniqueName.Validate(root); return AvatarBuilder.BuildHumanAvatar(root.gameObject, ToHumanDescription(root)); } diff --git a/Assets/UniGLTF/Runtime/UniHumanoid/HumanoidLoader.cs b/Assets/UniGLTF/Runtime/UniHumanoid/HumanoidLoader.cs index 45f0ec806..ea1eea1ee 100644 --- a/Assets/UniGLTF/Runtime/UniHumanoid/HumanoidLoader.cs +++ b/Assets/UniGLTF/Runtime/UniHumanoid/HumanoidLoader.cs @@ -9,7 +9,7 @@ namespace UniHumanoid { public static Avatar LoadHumanoidAvatar(Transform root, IEnumerable<(Transform, HumanBodyBones)> boneMap) { - ForceUniqueName.Process(root); + UniGLTF.Utils.ForceUniqueName.Process(root); var description = new HumanDescription { diff --git a/Assets/UniGLTF/Runtime/UniHumanoid/ForceUniqueName.cs b/Assets/UniGLTF/Runtime/Utils/ForceUniqueName.cs similarity index 79% rename from Assets/UniGLTF/Runtime/UniHumanoid/ForceUniqueName.cs rename to Assets/UniGLTF/Runtime/Utils/ForceUniqueName.cs index 14625a9c3..51b530631 100644 --- a/Assets/UniGLTF/Runtime/UniHumanoid/ForceUniqueName.cs +++ b/Assets/UniGLTF/Runtime/Utils/ForceUniqueName.cs @@ -1,15 +1,32 @@ using System; using System.Collections.Generic; -using UniGLTF; using UnityEngine; -namespace UniHumanoid +namespace UniGLTF.Utils { - class ForceUniqueName + public class ForceUniqueName { HashSet m_uniqueNameSet = new HashSet(); int m_counter = 1; + public static bool Validate(Transform root) + { + HashSet uniqueNameSet = new HashSet(); + var transforms = root.GetComponentsInChildren(); + foreach (var t in transforms) + { + if (uniqueNameSet.Contains(t.name)) + { + UniGLTFLogger.Warning($"duplicate name: {t.name}"); + } + else + { + uniqueNameSet.Add(t.name); + } + } + return uniqueNameSet.Count == transforms.Length; + } + public static void Process(Transform root) { var uniqueName = new ForceUniqueName(); diff --git a/Assets/UniGLTF/Runtime/UniHumanoid/ForceUniqueName.cs.meta b/Assets/UniGLTF/Runtime/Utils/ForceUniqueName.cs.meta similarity index 100% rename from Assets/UniGLTF/Runtime/UniHumanoid/ForceUniqueName.cs.meta rename to Assets/UniGLTF/Runtime/Utils/ForceUniqueName.cs.meta From f9f5f37dfa7a4844acebefca902bcca26ff3ebcf Mon Sep 17 00:00:00 2001 From: ousttrue Date: Wed, 12 Feb 2025 15:08:52 +0900 Subject: [PATCH 17/56] rename ForceUniqueName to ForceTransformUniqueName --- Assets/UniGLTF/Runtime/UniHumanoid/AvatarDescription.cs | 2 +- Assets/UniGLTF/Runtime/UniHumanoid/HumanoidLoader.cs | 2 +- .../Utils/{ForceUniqueName.cs => ForceTransformUniqueName.cs} | 4 ++-- ...rceUniqueName.cs.meta => ForceTransformUniqueName.cs.meta} | 0 4 files changed, 4 insertions(+), 4 deletions(-) rename Assets/UniGLTF/Runtime/Utils/{ForceUniqueName.cs => ForceTransformUniqueName.cs} (96%) rename Assets/UniGLTF/Runtime/Utils/{ForceUniqueName.cs.meta => ForceTransformUniqueName.cs.meta} (100%) diff --git a/Assets/UniGLTF/Runtime/UniHumanoid/AvatarDescription.cs b/Assets/UniGLTF/Runtime/UniHumanoid/AvatarDescription.cs index d54dded13..bc0078197 100644 --- a/Assets/UniGLTF/Runtime/UniHumanoid/AvatarDescription.cs +++ b/Assets/UniGLTF/Runtime/UniHumanoid/AvatarDescription.cs @@ -129,7 +129,7 @@ namespace UniHumanoid public Avatar CreateAvatar(Transform root) { // force unique name - ForceUniqueName.Validate(root); + ForceTransformUniqueName.Validate(root); return AvatarBuilder.BuildHumanAvatar(root.gameObject, ToHumanDescription(root)); } diff --git a/Assets/UniGLTF/Runtime/UniHumanoid/HumanoidLoader.cs b/Assets/UniGLTF/Runtime/UniHumanoid/HumanoidLoader.cs index ea1eea1ee..f86f2a844 100644 --- a/Assets/UniGLTF/Runtime/UniHumanoid/HumanoidLoader.cs +++ b/Assets/UniGLTF/Runtime/UniHumanoid/HumanoidLoader.cs @@ -9,7 +9,7 @@ namespace UniHumanoid { public static Avatar LoadHumanoidAvatar(Transform root, IEnumerable<(Transform, HumanBodyBones)> boneMap) { - UniGLTF.Utils.ForceUniqueName.Process(root); + UniGLTF.Utils.ForceTransformUniqueName.Process(root); var description = new HumanDescription { diff --git a/Assets/UniGLTF/Runtime/Utils/ForceUniqueName.cs b/Assets/UniGLTF/Runtime/Utils/ForceTransformUniqueName.cs similarity index 96% rename from Assets/UniGLTF/Runtime/Utils/ForceUniqueName.cs rename to Assets/UniGLTF/Runtime/Utils/ForceTransformUniqueName.cs index 51b530631..31e184f58 100644 --- a/Assets/UniGLTF/Runtime/Utils/ForceUniqueName.cs +++ b/Assets/UniGLTF/Runtime/Utils/ForceTransformUniqueName.cs @@ -4,7 +4,7 @@ using UnityEngine; namespace UniGLTF.Utils { - public class ForceUniqueName + public class ForceTransformUniqueName { HashSet m_uniqueNameSet = new HashSet(); int m_counter = 1; @@ -29,7 +29,7 @@ namespace UniGLTF.Utils public static void Process(Transform root) { - var uniqueName = new ForceUniqueName(); + var uniqueName = new ForceTransformUniqueName(); var transforms = root.GetComponentsInChildren(); foreach (var t in transforms) { diff --git a/Assets/UniGLTF/Runtime/Utils/ForceUniqueName.cs.meta b/Assets/UniGLTF/Runtime/Utils/ForceTransformUniqueName.cs.meta similarity index 100% rename from Assets/UniGLTF/Runtime/Utils/ForceUniqueName.cs.meta rename to Assets/UniGLTF/Runtime/Utils/ForceTransformUniqueName.cs.meta From 24ff14e36782c2ab873217497928c9549e804a45 Mon Sep 17 00:00:00 2001 From: ousttrue Date: Thu, 13 Feb 2025 15:24:11 +0900 Subject: [PATCH 18/56] UniVRM-0.128.2 --- .../UniGLTF/Runtime/UniGLTF/PackageVersion.cs | 4 +- .../UniGLTF/Runtime/UniGLTF/UniGLTFVersion.cs | 4 +- Assets/UniGLTF/package.json | 2 +- Assets/VRM/Editor/Format/VRMVersionMenu.cs | 327 +- Assets/VRM/package.json | 4 +- .../Components/Expression/ExpressionMerger.cs | 5 + .../Assets/TinyMToonAlphaBlend.shadergraph | 1182 +++++ .../TinyMToonAlphaBlend.shadergraph.meta | 10 + .../Assets/TinyMToonOpaque.shadergraph | 1584 ++++++ .../Assets/TinyMToonOpaque.shadergraph.meta | 10 + .../Assets/TinyMToon_SubGraph.shadersubgraph | 2836 +++++++++++ .../TinyMToon_SubGraph.shadersubgraph.meta | 10 + .../VRM10Viewer/Assets/TinyPbr.shadergraph | 975 ---- .../Assets/TinyPbrAlphaBlend.shadergraph | 2402 ++++++++++ .../Assets/TinyPbrAlphaBlend.shadergraph.meta | 10 + .../Assets/TinyPbrOpaque.shadergraph | 2814 +++++++++++ ...ph.meta => TinyPbrOpaque.shadergraph.meta} | 0 .../Assets/TinyPbr_SubGraph.shadersubgraph | 4248 +++++++++++++++++ .../TinyPbr_SubGraph.shadersubgraph.meta | 10 + .../Samples~/VRM10Viewer/Assets/black.png | Bin 0 -> 68 bytes .../VRM10Viewer/Assets/black.png.meta | 127 + .../Samples~/VRM10Viewer/Assets/blue.png | Bin 0 -> 79 bytes .../Samples~/VRM10Viewer/Assets/blue.png.meta | 127 + .../VRM10/Samples~/VRM10Viewer/Assets/red.png | Bin 0 -> 79 bytes .../Samples~/VRM10Viewer/Assets/red.png.meta | 127 + .../Samples~/VRM10Viewer/Assets/white.png | Bin 0 -> 79 bytes .../VRM10Viewer/Assets/white.png.meta | 127 + .../Samples~/VRM10Viewer/Assets/white_hdr.hdr | 6 + .../VRM10Viewer/Assets/white_hdr.hdr.meta | 127 + .../Samples~/VRM10Viewer/IMaterialImporter.cs | 9 + .../VRM10Viewer/IMaterialImporter.cs.meta | 11 + .../OrderedMaterialDescriptorGenerator.cs | 41 + ...rderedMaterialDescriptorGenerator.cs.meta} | 0 .../VRM10Viewer/TinyMToonMaterialContext.cs | 133 + .../TinyMToonMaterialContext.cs.meta | 11 + .../VRM10Viewer/TinyMToonMaterialImporter.cs | 115 + .../TinyMToonMaterialImporter.cs.meta | 11 + .../Samples~/VRM10Viewer/TinyPbrContext.cs | 33 - .../VRM10Viewer/TinyPbrDescriptorGenerator.cs | 84 - .../VRM10Viewer/TinyPbrMaterialContext.cs | 154 + ...cs.meta => TinyPbrMaterialContext.cs.meta} | 0 .../VRM10Viewer/TinyPbrMaterialImporter.cs | 163 + .../TinyPbrMaterialImporter.cs.meta | 11 + .../VRM10/Samples~/VRM10Viewer/VRM10Loaded.cs | 2 +- .../Samples~/VRM10Viewer/VRM10Viewer.unity | 10 +- .../Samples~/VRM10Viewer/VRM10ViewerUI.cs | 290 +- Assets/VRM10/package.json | 4 +- 47 files changed, 16761 insertions(+), 1399 deletions(-) create mode 100644 Assets/VRM10/Samples~/VRM10Viewer/Assets/TinyMToonAlphaBlend.shadergraph create mode 100644 Assets/VRM10/Samples~/VRM10Viewer/Assets/TinyMToonAlphaBlend.shadergraph.meta create mode 100644 Assets/VRM10/Samples~/VRM10Viewer/Assets/TinyMToonOpaque.shadergraph create mode 100644 Assets/VRM10/Samples~/VRM10Viewer/Assets/TinyMToonOpaque.shadergraph.meta create mode 100644 Assets/VRM10/Samples~/VRM10Viewer/Assets/TinyMToon_SubGraph.shadersubgraph create mode 100644 Assets/VRM10/Samples~/VRM10Viewer/Assets/TinyMToon_SubGraph.shadersubgraph.meta delete mode 100644 Assets/VRM10/Samples~/VRM10Viewer/Assets/TinyPbr.shadergraph create mode 100644 Assets/VRM10/Samples~/VRM10Viewer/Assets/TinyPbrAlphaBlend.shadergraph create mode 100644 Assets/VRM10/Samples~/VRM10Viewer/Assets/TinyPbrAlphaBlend.shadergraph.meta create mode 100644 Assets/VRM10/Samples~/VRM10Viewer/Assets/TinyPbrOpaque.shadergraph rename Assets/VRM10/Samples~/VRM10Viewer/Assets/{TinyPbr.shadergraph.meta => TinyPbrOpaque.shadergraph.meta} (100%) create mode 100644 Assets/VRM10/Samples~/VRM10Viewer/Assets/TinyPbr_SubGraph.shadersubgraph create mode 100644 Assets/VRM10/Samples~/VRM10Viewer/Assets/TinyPbr_SubGraph.shadersubgraph.meta create mode 100644 Assets/VRM10/Samples~/VRM10Viewer/Assets/black.png create mode 100644 Assets/VRM10/Samples~/VRM10Viewer/Assets/black.png.meta create mode 100644 Assets/VRM10/Samples~/VRM10Viewer/Assets/blue.png create mode 100644 Assets/VRM10/Samples~/VRM10Viewer/Assets/blue.png.meta create mode 100644 Assets/VRM10/Samples~/VRM10Viewer/Assets/red.png create mode 100644 Assets/VRM10/Samples~/VRM10Viewer/Assets/red.png.meta create mode 100644 Assets/VRM10/Samples~/VRM10Viewer/Assets/white.png create mode 100644 Assets/VRM10/Samples~/VRM10Viewer/Assets/white.png.meta create mode 100644 Assets/VRM10/Samples~/VRM10Viewer/Assets/white_hdr.hdr create mode 100644 Assets/VRM10/Samples~/VRM10Viewer/Assets/white_hdr.hdr.meta create mode 100644 Assets/VRM10/Samples~/VRM10Viewer/IMaterialImporter.cs create mode 100644 Assets/VRM10/Samples~/VRM10Viewer/IMaterialImporter.cs.meta create mode 100644 Assets/VRM10/Samples~/VRM10Viewer/OrderedMaterialDescriptorGenerator.cs rename Assets/VRM10/Samples~/VRM10Viewer/{TinyPbrDescriptorGenerator.cs.meta => OrderedMaterialDescriptorGenerator.cs.meta} (100%) create mode 100644 Assets/VRM10/Samples~/VRM10Viewer/TinyMToonMaterialContext.cs create mode 100644 Assets/VRM10/Samples~/VRM10Viewer/TinyMToonMaterialContext.cs.meta create mode 100644 Assets/VRM10/Samples~/VRM10Viewer/TinyMToonMaterialImporter.cs create mode 100644 Assets/VRM10/Samples~/VRM10Viewer/TinyMToonMaterialImporter.cs.meta delete mode 100644 Assets/VRM10/Samples~/VRM10Viewer/TinyPbrContext.cs delete mode 100644 Assets/VRM10/Samples~/VRM10Viewer/TinyPbrDescriptorGenerator.cs create mode 100644 Assets/VRM10/Samples~/VRM10Viewer/TinyPbrMaterialContext.cs rename Assets/VRM10/Samples~/VRM10Viewer/{TinyPbrContext.cs.meta => TinyPbrMaterialContext.cs.meta} (100%) create mode 100644 Assets/VRM10/Samples~/VRM10Viewer/TinyPbrMaterialImporter.cs create mode 100644 Assets/VRM10/Samples~/VRM10Viewer/TinyPbrMaterialImporter.cs.meta diff --git a/Assets/UniGLTF/Runtime/UniGLTF/PackageVersion.cs b/Assets/UniGLTF/Runtime/UniGLTF/PackageVersion.cs index d8cf7a71f..b3901a3fe 100644 --- a/Assets/UniGLTF/Runtime/UniGLTF/PackageVersion.cs +++ b/Assets/UniGLTF/Runtime/UniGLTF/PackageVersion.cs @@ -5,7 +5,7 @@ namespace UniGLTF { public const int MAJOR = 0; public const int MINOR = 128; - public const int PATCH = 1; - public const string VERSION = "0.128.1"; + public const int PATCH = 2; + public const string VERSION = "0.128.2"; } } diff --git a/Assets/UniGLTF/Runtime/UniGLTF/UniGLTFVersion.cs b/Assets/UniGLTF/Runtime/UniGLTF/UniGLTFVersion.cs index 7ed063fc2..d29b6b80e 100644 --- a/Assets/UniGLTF/Runtime/UniGLTF/UniGLTFVersion.cs +++ b/Assets/UniGLTF/Runtime/UniGLTF/UniGLTFVersion.cs @@ -5,7 +5,7 @@ namespace UniGLTF { public const int MAJOR = 2; public const int MINOR = 64; - public const int PATCH = 1; - public const string VERSION = "2.64.1"; + public const int PATCH = 2; + public const string VERSION = "2.64.2"; } } diff --git a/Assets/UniGLTF/package.json b/Assets/UniGLTF/package.json index 758fbadd0..4c24033e7 100644 --- a/Assets/UniGLTF/package.json +++ b/Assets/UniGLTF/package.json @@ -1,6 +1,6 @@ { "name": "com.vrmc.gltf", - "version": "0.128.1", + "version": "0.128.2", "displayName": "UniGLTF", "description": "GLTF importer and exporter", "unity": "2021.3", diff --git a/Assets/VRM/Editor/Format/VRMVersionMenu.cs b/Assets/VRM/Editor/Format/VRMVersionMenu.cs index 6875a519f..9b36b45a4 100644 --- a/Assets/VRM/Editor/Format/VRMVersionMenu.cs +++ b/Assets/VRM/Editor/Format/VRMVersionMenu.cs @@ -7,24 +7,24 @@ using System; namespace VRM { + /// + /// VersionDialog + /// + /// v0.81.0: com.vrmc.unigltf to com.vrmc.gltf and same version with univrm. + /// + /// Major = 2 + /// Minor = VRMVersion.MINOR - 64 + /// Patch = VRMVersion.PATCH + /// + /// + public class VRMVersionMenu : EditorWindow + { /// - /// VersionDialog - /// - /// v0.81.0: com.vrmc.unigltf to com.vrmc.gltf and same version with univrm. - /// - /// Major = 2 - /// Minor = VRMVersion.MINOR - 64 - /// Patch = VRMVersion.PATCH - /// + /// UNIGLTF /// - public class VRMVersionMenu : EditorWindow - { - /// - /// UNIGLTF - /// - static string UniGltfVersionPath = "Assets/UniGLTF/Runtime/UniGLTF/UniGLTFVersion.cs"; + static string UniGltfVersionPath = "Assets/UniGLTF/Runtime/UniGLTF/UniGLTFVersion.cs"; - const string UniGltfVersionTemplate = @" + const string UniGltfVersionTemplate = @" namespace UniGLTF {{ public static partial class UniGLTFVersion @@ -37,11 +37,11 @@ namespace UniGLTF }} "; - /// - /// VRM - /// - const string VrmVersionPath = "Assets/UniGLTF/Runtime/UniGLTF/PackageVersion.cs"; - const string VrmVersionTemplate = @" + /// + /// VRM + /// + const string VrmVersionPath = "Assets/UniGLTF/Runtime/UniGLTF/PackageVersion.cs"; + const string VrmVersionTemplate = @" namespace UniGLTF {{ public static partial class PackageVersion @@ -54,20 +54,20 @@ namespace UniGLTF }} "; - struct UpmPackage - { - public readonly string Path; - public readonly string Template; + struct UpmPackage + { + public readonly string Path; + public readonly string Template; - public UpmPackage(string path, string template) - { - Path = path; - Template = template; - } - } + public UpmPackage(string path, string template) + { + Path = path; + Template = template; + } + } - UpmPackage[] Packages = new UpmPackage[] - { + UpmPackage[] Packages = new UpmPackage[] + { new UpmPackage("Assets/VRM/package.json", @"{{ ""name"": ""com.vrmc.univrm"", @@ -142,14 +142,19 @@ namespace UniGLTF ""displayName"": ""VRM10FirstPersonSample"", ""description"": ""First Person layer sample with multi camera"", ""path"": ""Samples~/VRM10FirstPersonSample"" + }}, + {{ + ""displayName"": ""ClothSample"", + ""description"": ""Experimental cloth implementation"", + ""path"": ""Samples~/ClothSample"" }} ] }} "), - }; + }; - UpmPackage UniGLTFPackage = new UpmPackage("Assets/UniGLTF/package.json", + UpmPackage UniGLTFPackage = new UpmPackage("Assets/UniGLTF/package.json", @"{{ ""name"": ""com.vrmc.gltf"", ""version"": ""{0}"", @@ -174,137 +179,137 @@ namespace UniGLTF ] }}"); - [SerializeField] - string m_vrmVersion; + [SerializeField] + string m_vrmVersion; - (int, int, int) m_uniGltfVersion + (int, int, int) m_uniGltfVersion + { + get + { + if (TryGetVersion(m_vrmVersion, out (int, int, int) vrmVersion)) { - get - { - if (TryGetVersion(m_vrmVersion, out (int, int, int) vrmVersion)) - { - return (2, vrmVersion.Item2 - 64, vrmVersion.Item3); - } - else - { - return (0, 0, 0); - } - } + return (2, vrmVersion.Item2 - 64, vrmVersion.Item3); } - - static bool TryGetVersion(string src, out (int, int, int) version) + else { - try - { - if (string.IsNullOrEmpty(src)) - { - version = default; - return false; - } - - var splitted = src.Split('.'); - if (splitted.Length != 3) - { - version = default; - return false; - } - - version = ( - int.Parse(splitted[0]), - int.Parse(splitted[1]), - int.Parse(splitted[2]) - ); - return true; - } - catch (Exception) - { - version = default; - return false; - } - } - - /// - /// バージョン管理ダイアログ - /// - void OnGUI() - { - GUILayout.Label("VRM"); - GUILayout.Label($"Current version: {PackageVersion.VERSION}"); - m_vrmVersion = EditorGUILayout.TextField("Major.Minor.Patch", m_vrmVersion); - GUILayout.Space(30); - - GUILayout.Label("UniGLTF"); - GUILayout.Label($"Current version: {UniGLTFVersion.VERSION}"); - { - var enabled = GUI.enabled; - GUI.enabled = false; - EditorGUILayout.TextField("Major.Minor.Patch", $"{m_uniGltfVersion}"); - GUI.enabled = enabled; - } - GUILayout.Space(30); - - if (GUILayout.Button("Apply")) - { - if (TryGetVersion(m_vrmVersion, out (int, int, int) vrmVersion)) - { - UpdateVrmVersion(vrmVersion); - UpdateUniGLTFVersion(m_uniGltfVersion, vrmVersion); - AssetDatabase.Refresh(); - UniGLTFLogger.Log($"{m_uniGltfVersion}, {vrmVersion}"); - } - else - { - UniGLTFLogger.Warning($"InvalidFormat: {m_vrmVersion}"); - } - - // COPY - VRMSampleCopy.Execute(); - } - - if (GUILayout.Button("Close")) - { - Close(); - } - } - - void UpdateUniGLTFVersion((int, int, int) uniGltf, (int, int, int) vrm) - { - var utf8 = new UTF8Encoding(false); - File.WriteAllText(UniGltfVersionPath, string.Format(UniGltfVersionTemplate, - uniGltf.Item1, - uniGltf.Item2, - uniGltf.Item3), utf8); - - File.WriteAllText(UniGLTFPackage.Path, string.Format(UniGLTFPackage.Template, - $"{vrm.Item1}.{vrm.Item2}.{vrm.Item3}", - $"{vrm.Item1}.{vrm.Item2}.{vrm.Item3}" - ), utf8); - } - - void UpdateVrmVersion((int, int, int) vrm) - { - // generate - var utf8 = new UTF8Encoding(false); - File.WriteAllText(VrmVersionPath, string.Format(VrmVersionTemplate, - vrm.Item1, - vrm.Item2, - vrm.Item3), utf8); - // UPM - foreach (var upm in Packages) - { - File.WriteAllText(upm.Path, string.Format(upm.Template, - $"{vrm.Item1}.{vrm.Item2}.{vrm.Item3}", - $"{vrm.Item1}.{vrm.Item2}.{vrm.Item3}" - ), utf8); - } - } - - public static void ShowVersionDialog() - { - var window = ScriptableObject.CreateInstance(); - window.m_vrmVersion = PackageVersion.VERSION; - // window.m_uniGltfVersion = UniGLTFVersion.VERSION; - window.ShowUtility(); + return (0, 0, 0); } + } } + + static bool TryGetVersion(string src, out (int, int, int) version) + { + try + { + if (string.IsNullOrEmpty(src)) + { + version = default; + return false; + } + + var splitted = src.Split('.'); + if (splitted.Length != 3) + { + version = default; + return false; + } + + version = ( + int.Parse(splitted[0]), + int.Parse(splitted[1]), + int.Parse(splitted[2]) + ); + return true; + } + catch (Exception) + { + version = default; + return false; + } + } + + /// + /// バージョン管理ダイアログ + /// + void OnGUI() + { + GUILayout.Label("VRM"); + GUILayout.Label($"Current version: {PackageVersion.VERSION}"); + m_vrmVersion = EditorGUILayout.TextField("Major.Minor.Patch", m_vrmVersion); + GUILayout.Space(30); + + GUILayout.Label("UniGLTF"); + GUILayout.Label($"Current version: {UniGLTFVersion.VERSION}"); + { + var enabled = GUI.enabled; + GUI.enabled = false; + EditorGUILayout.TextField("Major.Minor.Patch", $"{m_uniGltfVersion}"); + GUI.enabled = enabled; + } + GUILayout.Space(30); + + if (GUILayout.Button("Apply")) + { + if (TryGetVersion(m_vrmVersion, out (int, int, int) vrmVersion)) + { + UpdateVrmVersion(vrmVersion); + UpdateUniGLTFVersion(m_uniGltfVersion, vrmVersion); + AssetDatabase.Refresh(); + UniGLTFLogger.Log($"{m_uniGltfVersion}, {vrmVersion}"); + } + else + { + UniGLTFLogger.Warning($"InvalidFormat: {m_vrmVersion}"); + } + + // COPY + VRMSampleCopy.Execute(); + } + + if (GUILayout.Button("Close")) + { + Close(); + } + } + + void UpdateUniGLTFVersion((int, int, int) uniGltf, (int, int, int) vrm) + { + var utf8 = new UTF8Encoding(false); + File.WriteAllText(UniGltfVersionPath, string.Format(UniGltfVersionTemplate, + uniGltf.Item1, + uniGltf.Item2, + uniGltf.Item3), utf8); + + File.WriteAllText(UniGLTFPackage.Path, string.Format(UniGLTFPackage.Template, + $"{vrm.Item1}.{vrm.Item2}.{vrm.Item3}", + $"{vrm.Item1}.{vrm.Item2}.{vrm.Item3}" + ), utf8); + } + + void UpdateVrmVersion((int, int, int) vrm) + { + // generate + var utf8 = new UTF8Encoding(false); + File.WriteAllText(VrmVersionPath, string.Format(VrmVersionTemplate, + vrm.Item1, + vrm.Item2, + vrm.Item3), utf8); + // UPM + foreach (var upm in Packages) + { + File.WriteAllText(upm.Path, string.Format(upm.Template, + $"{vrm.Item1}.{vrm.Item2}.{vrm.Item3}", + $"{vrm.Item1}.{vrm.Item2}.{vrm.Item3}" + ), utf8); + } + } + + public static void ShowVersionDialog() + { + var window = ScriptableObject.CreateInstance(); + window.m_vrmVersion = PackageVersion.VERSION; + // window.m_uniGltfVersion = UniGLTFVersion.VERSION; + window.ShowUtility(); + } + } } diff --git a/Assets/VRM/package.json b/Assets/VRM/package.json index 3cce4e73b..49b2d9548 100644 --- a/Assets/VRM/package.json +++ b/Assets/VRM/package.json @@ -1,6 +1,6 @@ { "name": "com.vrmc.univrm", - "version": "0.128.1", + "version": "0.128.2", "displayName": "VRM", "description": "VRM importer", "unity": "2021.3", @@ -14,7 +14,7 @@ "name": "VRM Consortium" }, "dependencies": { - "com.vrmc.gltf": "0.128.1", + "com.vrmc.gltf": "0.128.2", "com.unity.ugui": "1.0.0" }, "samples": [ diff --git a/Assets/VRM10/Runtime/Components/Expression/ExpressionMerger.cs b/Assets/VRM10/Runtime/Components/Expression/ExpressionMerger.cs index c67515913..61cded5fc 100644 --- a/Assets/VRM10/Runtime/Components/Expression/ExpressionMerger.cs +++ b/Assets/VRM10/Runtime/Components/Expression/ExpressionMerger.cs @@ -61,6 +61,11 @@ namespace UniVRM10 return; } + if (clip.IsBinary) + { + value = value > 0 ? 1 : 0; + } + m_morphTargetBindingMerger.AccumulateValue(key, value); m_materialValueBindingMerger.AccumulateValue(clip, value); } diff --git a/Assets/VRM10/Samples~/VRM10Viewer/Assets/TinyMToonAlphaBlend.shadergraph b/Assets/VRM10/Samples~/VRM10Viewer/Assets/TinyMToonAlphaBlend.shadergraph new file mode 100644 index 000000000..146731b20 --- /dev/null +++ b/Assets/VRM10/Samples~/VRM10Viewer/Assets/TinyMToonAlphaBlend.shadergraph @@ -0,0 +1,1182 @@ +{ + "m_SGVersion": 3, + "m_Type": "UnityEditor.ShaderGraph.GraphData", + "m_ObjectId": "5e8062d7742046c5a0cbef2f61ceca95", + "m_Properties": [ + { + "m_Id": "4e79611254fb4f7ebaa9dc55ea52a427" + }, + { + "m_Id": "41bfcf3cf6f24e0098346d3a59224d97" + }, + { + "m_Id": "5c4080b43fa645598a638526be476d15" + }, + { + "m_Id": "c6ae1333e8494c6292d560a6a0c1126e" + }, + { + "m_Id": "025d73c9fe2e47b3853bf9a00d126af4" + } + ], + "m_Keywords": [], + "m_Dropdowns": [], + "m_CategoryData": [ + { + "m_Id": "867e133e4da04154ac66a450c056f228" + } + ], + "m_Nodes": [ + { + "m_Id": "8e6b987b3d2e4b438d4618bd99e12be6" + }, + { + "m_Id": "7e3c0b97666e47ffa0460010d1a64071" + }, + { + "m_Id": "4ad89151ecf0451d9f92f4db3f59ca3d" + }, + { + "m_Id": "e27b69744886424eb5f477011f04efd2" + }, + { + "m_Id": "001956a26193431db776814a0429e033" + }, + { + "m_Id": "9e9053ae73f94d2f99ce33a60274938f" + }, + { + "m_Id": "c0677ef2e2bf4d488e08da8a6f0fd932" + }, + { + "m_Id": "b81474aeedbf4efa8c1bc90bb75c99a9" + }, + { + "m_Id": "2367bc93d6e7445391b808a16728f2b9" + }, + { + "m_Id": "0776e82cf5bc4372962108bf3847d1d0" + }, + { + "m_Id": "df96d56bdf664324a1b96c21e76b4a17" + } + ], + "m_GroupDatas": [], + "m_StickyNoteDatas": [], + "m_Edges": [ + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "001956a26193431db776814a0429e033" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "0776e82cf5bc4372962108bf3847d1d0" + }, + "m_SlotId": -643094866 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "0776e82cf5bc4372962108bf3847d1d0" + }, + "m_SlotId": 1 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "e27b69744886424eb5f477011f04efd2" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "0776e82cf5bc4372962108bf3847d1d0" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "df96d56bdf664324a1b96c21e76b4a17" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "2367bc93d6e7445391b808a16728f2b9" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "0776e82cf5bc4372962108bf3847d1d0" + }, + "m_SlotId": -1559276299 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "9e9053ae73f94d2f99ce33a60274938f" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "0776e82cf5bc4372962108bf3847d1d0" + }, + "m_SlotId": 2016068918 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "b81474aeedbf4efa8c1bc90bb75c99a9" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "0776e82cf5bc4372962108bf3847d1d0" + }, + "m_SlotId": 1340748427 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "c0677ef2e2bf4d488e08da8a6f0fd932" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "0776e82cf5bc4372962108bf3847d1d0" + }, + "m_SlotId": 1221667242 + } + } + ], + "m_VertexContext": { + "m_Position": { + "x": 544.0000610351563, + "y": -131.33334350585938 + }, + "m_Blocks": [ + { + "m_Id": "8e6b987b3d2e4b438d4618bd99e12be6" + }, + { + "m_Id": "7e3c0b97666e47ffa0460010d1a64071" + }, + { + "m_Id": "4ad89151ecf0451d9f92f4db3f59ca3d" + } + ] + }, + "m_FragmentContext": { + "m_Position": { + "x": 544.0000610351563, + "y": 95.33334350585938 + }, + "m_Blocks": [ + { + "m_Id": "e27b69744886424eb5f477011f04efd2" + }, + { + "m_Id": "df96d56bdf664324a1b96c21e76b4a17" + } + ] + }, + "m_PreviewData": { + "serializedMesh": { + "m_SerializedMesh": "{\"mesh\":{\"instanceID\":0}}", + "m_Guid": "" + }, + "preventRotation": false + }, + "m_Path": "Shader Graphs", + "m_GraphPrecision": 1, + "m_PreviewMode": 2, + "m_OutputNode": { + "m_Id": "" + }, + "m_SubDatas": [], + "m_ActiveTargets": [ + { + "m_Id": "cd04b2ec603c4ce98f51d924e2a512c2" + } + ] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "001956a26193431db776814a0429e033", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 27.333396911621095, + "y": 113.33332824707031, + "width": 133.33331298828126, + "height": 35.999969482421878 + } + }, + "m_Slots": [ + { + "m_Id": "896378e2743d4645bbfd8533cf1826e5" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "4e79611254fb4f7ebaa9dc55ea52a427" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "018b3bf4033e49fc9f98b77e0886c132", + "m_Id": 1340748427, + "m_DisplayName": "BaseColor", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "_BaseColor", + "m_StageCapability": 2, + "m_Value": { + "x": 1.0, + "y": 1.0, + "z": 1.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.NormalMaterialSlot", + "m_ObjectId": "01c54a54e6cb42a290e72e354571cec5", + "m_Id": 0, + "m_DisplayName": "Normal", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Normal", + "m_StageCapability": 1, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_Space": 0 +} + +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty", + "m_ObjectId": "025d73c9fe2e47b3853bf9a00d126af4", + "m_Guid": { + "m_GuidSerialized": "faf3291f-b550-41b3-b53d-2a983b8f3183" + }, + "m_Name": "ShadingToonyFactor", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "ShadingToonyFactor", + "m_DefaultReferenceName": "_ShadingToonyFactor", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": 0.0, + "m_FloatType": 0, + "m_RangeValues": { + "x": 0.0, + "y": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SubGraphNode", + "m_ObjectId": "0776e82cf5bc4372962108bf3847d1d0", + "m_Group": { + "m_Id": "" + }, + "m_Name": "TinyMToon_SubGraph", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 240.66665649414063, + "y": 95.33334350585938, + "width": 265.3334045410156, + "height": 377.3332824707031 + } + }, + "m_Slots": [ + { + "m_Id": "018b3bf4033e49fc9f98b77e0886c132" + }, + { + "m_Id": "7e0c1e8c83e24c23985adb526ecaef3f" + }, + { + "m_Id": "d38dd7e5f50e4fa09df0f606f2e323be" + }, + { + "m_Id": "9a2d5569fa30469981f78f76b4b050f0" + }, + { + "m_Id": "ead31769aa464a4e8aae7a3cfa026b2c" + }, + { + "m_Id": "e6c1845b1ff7420192f4e36917f71689" + }, + { + "m_Id": "5411d859ca084103badb8b7863988cb2" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedSubGraph": "{\n \"subGraph\": {\n \"fileID\": -5475051401550479605,\n \"guid\": \"45c6d2335bae988419dbc2ec65c33dae\",\n \"type\": 3\n }\n}", + "m_PropertyGuids": [ + "e0a3ade0-ddd9-4c69-b3b5-923901f7b2da", + "d2495ca0-f5eb-484a-bd18-dca0589774e3", + "916faab9-cc1c-4621-84b8-9c47171bf8e8", + "ad5cc3fe-a5f8-4a48-9956-35d13519f07e", + "fa354438-5a66-4424-a53f-da950e75c488" + ], + "m_PropertyIds": [ + 1340748427, + -643094866, + 2016068918, + 1221667242, + -1559276299 + ], + "m_Dropdowns": [], + "m_DropdownSelectedEntries": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "2367bc93d6e7445391b808a16728f2b9", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -24.666656494140626, + "y": 222.0, + "width": 185.3333740234375, + "height": 35.999969482421878 + } + }, + "m_Slots": [ + { + "m_Id": "2c364dcc6c61442cbf11e8ab6a564d48" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "025d73c9fe2e47b3853bf9a00d126af4" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "2c364dcc6c61442cbf11e8ab6a564d48", + "m_Id": 0, + "m_DisplayName": "ShadingToonyFactor", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.ColorRGBMaterialSlot", + "m_ObjectId": "3b076e005942425f99ce3907ec24fe79", + "m_Id": 0, + "m_DisplayName": "Base Color", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "BaseColor", + "m_StageCapability": 2, + "m_Value": { + "x": 0.5, + "y": 0.5, + "z": 0.5 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_ColorMode": 0, + "m_DefaultColor": { + "r": 0.5, + "g": 0.5, + "b": 0.5, + "a": 1.0 + } +} + +{ + "m_SGVersion": 3, + "m_Type": "UnityEditor.ShaderGraph.Internal.ColorShaderProperty", + "m_ObjectId": "41bfcf3cf6f24e0098346d3a59224d97", + "m_Guid": { + "m_GuidSerialized": "f42a4d4f-6d88-4897-addd-f0cb1e430ab8" + }, + "m_Name": "ShadingColor", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "ShadingColor", + "m_DefaultReferenceName": "_ShadingColor", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": { + "r": 0.5849056243896484, + "g": 0.5849056243896484, + "b": 0.5849056243896484, + "a": 1.0 + }, + "isMainColor": false, + "m_ColorMode": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "4ad89151ecf0451d9f92f4db3f59ca3d", + "m_Group": { + "m_Id": "" + }, + "m_Name": "VertexDescription.Tangent", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 0.0, + "y": 0.0, + "width": 0.0, + "height": 0.0 + } + }, + "m_Slots": [ + { + "m_Id": "b977eab87a834a02956948283a300909" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "VertexDescription.Tangent" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DMaterialSlot", + "m_ObjectId": "4bd73107ed5043a6a98b42284d491e6d", + "m_Id": 0, + "m_DisplayName": "ShadingMap", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_BareResource": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Internal.Texture2DShaderProperty", + "m_ObjectId": "4e79611254fb4f7ebaa9dc55ea52a427", + "m_Guid": { + "m_GuidSerialized": "8ba0f7ac-16b0-4874-83a9-5f7ed0c10efa" + }, + "m_Name": "BaseMap", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "BaseMap", + "m_DefaultReferenceName": "_BaseMap", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": { + "m_SerializedTexture": "", + "m_Guid": "" + }, + "isMainTexture": true, + "useTilingAndOffset": true, + "m_Modifiable": true, + "m_DefaultType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "5411d859ca084103badb8b7863988cb2", + "m_Id": 2, + "m_DisplayName": "Alpha", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Alpha", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Internal.Texture2DShaderProperty", + "m_ObjectId": "5c4080b43fa645598a638526be476d15", + "m_Guid": { + "m_GuidSerialized": "32cac61f-148f-4535-a0a3-1b35df0ee783" + }, + "m_Name": "ShadingMap", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "ShadingMap", + "m_DefaultReferenceName": "_ShadingMap", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": { + "m_SerializedTexture": "", + "m_Guid": "" + }, + "isMainTexture": false, + "useTilingAndOffset": false, + "m_Modifiable": true, + "m_DefaultType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "6362e795c9f74fd88710a3e8fd53744c", + "m_Id": 0, + "m_DisplayName": "Alpha", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Alpha", + "m_StageCapability": 2, + "m_Value": 1.0, + "m_DefaultValue": 1.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", + "m_ObjectId": "7e0c1e8c83e24c23985adb526ecaef3f", + "m_Id": -643094866, + "m_DisplayName": "BaseMap", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "_BaseMap", + "m_StageCapability": 2, + "m_BareResource": false, + "m_Texture": { + "m_SerializedTexture": "", + "m_Guid": "" + }, + "m_DefaultType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "7e3c0b97666e47ffa0460010d1a64071", + "m_Group": { + "m_Id": "" + }, + "m_Name": "VertexDescription.Normal", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 0.0, + "y": 0.0, + "width": 0.0, + "height": 0.0 + } + }, + "m_Slots": [ + { + "m_Id": "01c54a54e6cb42a290e72e354571cec5" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "VertexDescription.Normal" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.CategoryData", + "m_ObjectId": "867e133e4da04154ac66a450c056f228", + "m_Name": "", + "m_ChildObjectList": [ + { + "m_Id": "c6ae1333e8494c6292d560a6a0c1126e" + }, + { + "m_Id": "4e79611254fb4f7ebaa9dc55ea52a427" + }, + { + "m_Id": "41bfcf3cf6f24e0098346d3a59224d97" + }, + { + "m_Id": "5c4080b43fa645598a638526be476d15" + }, + { + "m_Id": "025d73c9fe2e47b3853bf9a00d126af4" + } + ] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DMaterialSlot", + "m_ObjectId": "896378e2743d4645bbfd8533cf1826e5", + "m_Id": 0, + "m_DisplayName": "BaseMap", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_BareResource": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "8e6b987b3d2e4b438d4618bd99e12be6", + "m_Group": { + "m_Id": "" + }, + "m_Name": "VertexDescription.Position", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 0.0, + "y": 0.0, + "width": 0.0, + "height": 0.0 + } + }, + "m_Slots": [ + { + "m_Id": "f3a2f016faaf422f9c936817f13cb82d" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "VertexDescription.Position" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "9588546692ca4354acbdb16148b88365", + "m_Id": 0, + "m_DisplayName": "ShadingColor", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", + "m_ObjectId": "9a2d5569fa30469981f78f76b4b050f0", + "m_Id": 1221667242, + "m_DisplayName": "ShadingColorMap", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "_ShadingColorMap", + "m_StageCapability": 2, + "m_BareResource": false, + "m_Texture": { + "m_SerializedTexture": "", + "m_Guid": "" + }, + "m_DefaultType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "9e9053ae73f94d2f99ce33a60274938f", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 12.000022888183594, + "y": 149.3332977294922, + "width": 148.66668701171876, + "height": 36.00001525878906 + } + }, + "m_Slots": [ + { + "m_Id": "9588546692ca4354acbdb16148b88365" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "41bfcf3cf6f24e0098346d3a59224d97" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "b81474aeedbf4efa8c1bc90bb75c99a9", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 28.666715621948243, + "y": 77.33330535888672, + "width": 132.0, + "height": 36.000022888183597 + } + }, + "m_Slots": [ + { + "m_Id": "fb9fb639830c4cf69bfd994cb2ed4c29" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "c6ae1333e8494c6292d560a6a0c1126e" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.TangentMaterialSlot", + "m_ObjectId": "b977eab87a834a02956948283a300909", + "m_Id": 0, + "m_DisplayName": "Tangent", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Tangent", + "m_StageCapability": 1, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_Space": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "c0677ef2e2bf4d488e08da8a6f0fd932", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 10.000045776367188, + "y": 185.99996948242188, + "width": 150.6666717529297, + "height": 36.000030517578128 + } + }, + "m_Slots": [ + { + "m_Id": "4bd73107ed5043a6a98b42284d491e6d" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "5c4080b43fa645598a638526be476d15" + } +} + +{ + "m_SGVersion": 3, + "m_Type": "UnityEditor.ShaderGraph.Internal.ColorShaderProperty", + "m_ObjectId": "c6ae1333e8494c6292d560a6a0c1126e", + "m_Guid": { + "m_GuidSerialized": "e4a91be8-41b1-46a6-8fb3-cee571683ce1" + }, + "m_Name": "BaseColor", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "BaseColor", + "m_DefaultReferenceName": "_BaseColor", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": { + "r": 1.0, + "g": 1.0, + "b": 1.0, + "a": 0.0 + }, + "isMainColor": true, + "m_ColorMode": 0 +} + +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.Rendering.Universal.ShaderGraph.UniversalTarget", + "m_ObjectId": "cd04b2ec603c4ce98f51d924e2a512c2", + "m_Datas": [], + "m_ActiveSubTarget": { + "m_Id": "cd81c525151142c89a6af7f574fd628b" + }, + "m_AllowMaterialOverride": false, + "m_SurfaceType": 1, + "m_ZTestMode": 4, + "m_ZWriteControl": 0, + "m_AlphaMode": 0, + "m_RenderFace": 2, + "m_AlphaClip": false, + "m_CastShadows": true, + "m_ReceiveShadows": true, + "m_SupportsLODCrossFade": false, + "m_CustomEditorGUI": "", + "m_SupportVFX": false +} + +{ + "m_SGVersion": 2, + "m_Type": "UnityEditor.Rendering.Universal.ShaderGraph.UniversalUnlitSubTarget", + "m_ObjectId": "cd81c525151142c89a6af7f574fd628b" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "d38dd7e5f50e4fa09df0f606f2e323be", + "m_Id": 2016068918, + "m_DisplayName": "ShadingColor", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "_ShadingColor", + "m_StageCapability": 2, + "m_Value": { + "x": 0.5849056243896484, + "y": 0.5849056243896484, + "z": 0.5849056243896484, + "w": 1.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "df96d56bdf664324a1b96c21e76b4a17", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.Alpha", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 0.0, + "y": 0.0, + "width": 0.0, + "height": 0.0 + } + }, + "m_Slots": [ + { + "m_Id": "6362e795c9f74fd88710a3e8fd53744c" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.Alpha" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "e27b69744886424eb5f477011f04efd2", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.BaseColor", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 0.0, + "y": 0.0, + "width": 0.0, + "height": 0.0 + } + }, + "m_Slots": [ + { + "m_Id": "3b076e005942425f99ce3907ec24fe79" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.BaseColor" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", + "m_ObjectId": "e6c1845b1ff7420192f4e36917f71689", + "m_Id": 1, + "m_DisplayName": "BaseColor", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "BaseColor", + "m_StageCapability": 2, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "ead31769aa464a4e8aae7a3cfa026b2c", + "m_Id": -1559276299, + "m_DisplayName": "ShadingToonyFactor", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "_ShadingToonyFactor", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PositionMaterialSlot", + "m_ObjectId": "f3a2f016faaf422f9c936817f13cb82d", + "m_Id": 0, + "m_DisplayName": "Position", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Position", + "m_StageCapability": 1, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_Space": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "fb9fb639830c4cf69bfd994cb2ed4c29", + "m_Id": 0, + "m_DisplayName": "BaseColor", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_Labels": [] +} + diff --git a/Assets/VRM10/Samples~/VRM10Viewer/Assets/TinyMToonAlphaBlend.shadergraph.meta b/Assets/VRM10/Samples~/VRM10Viewer/Assets/TinyMToonAlphaBlend.shadergraph.meta new file mode 100644 index 000000000..a5833ea06 --- /dev/null +++ b/Assets/VRM10/Samples~/VRM10Viewer/Assets/TinyMToonAlphaBlend.shadergraph.meta @@ -0,0 +1,10 @@ +fileFormatVersion: 2 +guid: 6b60fe85d745eda4281e3278fcb0657c +ScriptedImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 2 + userData: + assetBundleName: + assetBundleVariant: + script: {fileID: 11500000, guid: 625f186215c104763be7675aa2d941aa, type: 3} diff --git a/Assets/VRM10/Samples~/VRM10Viewer/Assets/TinyMToonOpaque.shadergraph b/Assets/VRM10/Samples~/VRM10Viewer/Assets/TinyMToonOpaque.shadergraph new file mode 100644 index 000000000..6bcdfb896 --- /dev/null +++ b/Assets/VRM10/Samples~/VRM10Viewer/Assets/TinyMToonOpaque.shadergraph @@ -0,0 +1,1584 @@ +{ + "m_SGVersion": 3, + "m_Type": "UnityEditor.ShaderGraph.GraphData", + "m_ObjectId": "5e8062d7742046c5a0cbef2f61ceca95", + "m_Properties": [ + { + "m_Id": "4e79611254fb4f7ebaa9dc55ea52a427" + }, + { + "m_Id": "41bfcf3cf6f24e0098346d3a59224d97" + }, + { + "m_Id": "5c4080b43fa645598a638526be476d15" + }, + { + "m_Id": "c6ae1333e8494c6292d560a6a0c1126e" + }, + { + "m_Id": "025d73c9fe2e47b3853bf9a00d126af4" + }, + { + "m_Id": "4667227926a9450aa7fa8e58a1bf3866" + }, + { + "m_Id": "d39873e6759a47c2a923dde640e6f4f6" + } + ], + "m_Keywords": [], + "m_Dropdowns": [], + "m_CategoryData": [ + { + "m_Id": "867e133e4da04154ac66a450c056f228" + } + ], + "m_Nodes": [ + { + "m_Id": "8e6b987b3d2e4b438d4618bd99e12be6" + }, + { + "m_Id": "7e3c0b97666e47ffa0460010d1a64071" + }, + { + "m_Id": "4ad89151ecf0451d9f92f4db3f59ca3d" + }, + { + "m_Id": "e27b69744886424eb5f477011f04efd2" + }, + { + "m_Id": "001956a26193431db776814a0429e033" + }, + { + "m_Id": "9e9053ae73f94d2f99ce33a60274938f" + }, + { + "m_Id": "c0677ef2e2bf4d488e08da8a6f0fd932" + }, + { + "m_Id": "b81474aeedbf4efa8c1bc90bb75c99a9" + }, + { + "m_Id": "2367bc93d6e7445391b808a16728f2b9" + }, + { + "m_Id": "0776e82cf5bc4372962108bf3847d1d0" + }, + { + "m_Id": "5f8ace17977d4222984886f84ada0bb7" + }, + { + "m_Id": "0320eacfafcc41858dfd5b6372050fc2" + }, + { + "m_Id": "c740dd36ebf2452394a2d44e668e38b0" + }, + { + "m_Id": "1728ea63931448eaa4ab79b764364e17" + }, + { + "m_Id": "9096c7ad43b94e54b6b3240398f1dab5" + } + ], + "m_GroupDatas": [], + "m_StickyNoteDatas": [], + "m_Edges": [ + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "001956a26193431db776814a0429e033" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "0776e82cf5bc4372962108bf3847d1d0" + }, + "m_SlotId": -643094866 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "0776e82cf5bc4372962108bf3847d1d0" + }, + "m_SlotId": 1 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "e27b69744886424eb5f477011f04efd2" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "0776e82cf5bc4372962108bf3847d1d0" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "5f8ace17977d4222984886f84ada0bb7" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "1728ea63931448eaa4ab79b764364e17" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "9096c7ad43b94e54b6b3240398f1dab5" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "2367bc93d6e7445391b808a16728f2b9" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "0776e82cf5bc4372962108bf3847d1d0" + }, + "m_SlotId": -1559276299 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "9096c7ad43b94e54b6b3240398f1dab5" + }, + "m_SlotId": 3 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "0320eacfafcc41858dfd5b6372050fc2" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "9e9053ae73f94d2f99ce33a60274938f" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "0776e82cf5bc4372962108bf3847d1d0" + }, + "m_SlotId": 2016068918 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "b81474aeedbf4efa8c1bc90bb75c99a9" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "0776e82cf5bc4372962108bf3847d1d0" + }, + "m_SlotId": 1340748427 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "c0677ef2e2bf4d488e08da8a6f0fd932" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "0776e82cf5bc4372962108bf3847d1d0" + }, + "m_SlotId": 1221667242 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "c740dd36ebf2452394a2d44e668e38b0" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "9096c7ad43b94e54b6b3240398f1dab5" + }, + "m_SlotId": 1 + } + } + ], + "m_VertexContext": { + "m_Position": { + "x": 546.0000610351563, + "y": -219.33334350585938 + }, + "m_Blocks": [ + { + "m_Id": "8e6b987b3d2e4b438d4618bd99e12be6" + }, + { + "m_Id": "7e3c0b97666e47ffa0460010d1a64071" + }, + { + "m_Id": "4ad89151ecf0451d9f92f4db3f59ca3d" + } + ] + }, + "m_FragmentContext": { + "m_Position": { + "x": 546.0000610351563, + "y": 7.333324909210205 + }, + "m_Blocks": [ + { + "m_Id": "0320eacfafcc41858dfd5b6372050fc2" + }, + { + "m_Id": "e27b69744886424eb5f477011f04efd2" + }, + { + "m_Id": "5f8ace17977d4222984886f84ada0bb7" + } + ] + }, + "m_PreviewData": { + "serializedMesh": { + "m_SerializedMesh": "{\"mesh\":{\"instanceID\":0}}", + "m_Guid": "" + }, + "preventRotation": false + }, + "m_Path": "Shader Graphs", + "m_GraphPrecision": 1, + "m_PreviewMode": 2, + "m_OutputNode": { + "m_Id": "" + }, + "m_SubDatas": [], + "m_ActiveTargets": [ + { + "m_Id": "cd04b2ec603c4ce98f51d924e2a512c2" + } + ] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "001956a26193431db776814a0429e033", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 27.333396911621095, + "y": 113.33332824707031, + "width": 133.33331298828126, + "height": 35.999969482421878 + } + }, + "m_Slots": [ + { + "m_Id": "896378e2743d4645bbfd8533cf1826e5" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "4e79611254fb4f7ebaa9dc55ea52a427" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "018b3bf4033e49fc9f98b77e0886c132", + "m_Id": 1340748427, + "m_DisplayName": "BaseColor", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "_BaseColor", + "m_StageCapability": 2, + "m_Value": { + "x": 1.0, + "y": 1.0, + "z": 1.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.NormalMaterialSlot", + "m_ObjectId": "01c54a54e6cb42a290e72e354571cec5", + "m_Id": 0, + "m_DisplayName": "Normal", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Normal", + "m_StageCapability": 1, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_Space": 0 +} + +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty", + "m_ObjectId": "025d73c9fe2e47b3853bf9a00d126af4", + "m_Guid": { + "m_GuidSerialized": "faf3291f-b550-41b3-b53d-2a983b8f3183" + }, + "m_Name": "ShadingToonyFactor", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "ShadingToonyFactor", + "m_DefaultReferenceName": "_ShadingToonyFactor", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": 0.0, + "m_FloatType": 0, + "m_RangeValues": { + "x": 0.0, + "y": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "0320eacfafcc41858dfd5b6372050fc2", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.AlphaClipThreshold", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 558.6666870117188, + "y": 123.33332061767578, + "width": 200.00006103515626, + "height": 42.66667938232422 + } + }, + "m_Slots": [ + { + "m_Id": "f01783c2eb3e41f1aa4a8da53d9a3418" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.AlphaClipThreshold" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SubGraphNode", + "m_ObjectId": "0776e82cf5bc4372962108bf3847d1d0", + "m_Group": { + "m_Id": "" + }, + "m_Name": "TinyMToon_SubGraph", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 240.66665649414063, + "y": 95.33334350585938, + "width": 265.3334045410156, + "height": 377.3332824707031 + } + }, + "m_Slots": [ + { + "m_Id": "018b3bf4033e49fc9f98b77e0886c132" + }, + { + "m_Id": "7e0c1e8c83e24c23985adb526ecaef3f" + }, + { + "m_Id": "d38dd7e5f50e4fa09df0f606f2e323be" + }, + { + "m_Id": "9a2d5569fa30469981f78f76b4b050f0" + }, + { + "m_Id": "ead31769aa464a4e8aae7a3cfa026b2c" + }, + { + "m_Id": "7207d851d0d54d9dbec558d8350cbcf5" + }, + { + "m_Id": "8dee648ae25449838a2cc7261ec55970" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedSubGraph": "{\n \"subGraph\": {\n \"fileID\": -5475051401550479605,\n \"guid\": \"45c6d2335bae988419dbc2ec65c33dae\",\n \"type\": 3\n }\n}", + "m_PropertyGuids": [ + "e0a3ade0-ddd9-4c69-b3b5-923901f7b2da", + "d2495ca0-f5eb-484a-bd18-dca0589774e3", + "916faab9-cc1c-4621-84b8-9c47171bf8e8", + "ad5cc3fe-a5f8-4a48-9956-35d13519f07e", + "fa354438-5a66-4424-a53f-da950e75c488" + ], + "m_PropertyIds": [ + 1340748427, + -643094866, + 2016068918, + 1221667242, + -1559276299 + ], + "m_Dropdowns": [], + "m_DropdownSelectedEntries": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "1728ea63931448eaa4ab79b764364e17", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 27.33334732055664, + "y": -64.66671752929688, + "width": 153.33331298828126, + "height": 36.000022888183597 + } + }, + "m_Slots": [ + { + "m_Id": "1c86e26ba56e4bd69ca061135f228cab" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "d39873e6759a47c2a923dde640e6f4f6" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BooleanMaterialSlot", + "m_ObjectId": "1c86e26ba56e4bd69ca061135f228cab", + "m_Id": 0, + "m_DisplayName": "CutoffEnabled", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": false, + "m_DefaultValue": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "2367bc93d6e7445391b808a16728f2b9", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -24.666656494140626, + "y": 222.0, + "width": 185.3333740234375, + "height": 35.999969482421878 + } + }, + "m_Slots": [ + { + "m_Id": "2c364dcc6c61442cbf11e8ab6a564d48" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "025d73c9fe2e47b3853bf9a00d126af4" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "2c364dcc6c61442cbf11e8ab6a564d48", + "m_Id": 0, + "m_DisplayName": "ShadingToonyFactor", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.ColorRGBMaterialSlot", + "m_ObjectId": "3b076e005942425f99ce3907ec24fe79", + "m_Id": 0, + "m_DisplayName": "Base Color", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "BaseColor", + "m_StageCapability": 2, + "m_Value": { + "x": 0.5, + "y": 0.5, + "z": 0.5 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_ColorMode": 0, + "m_DefaultColor": { + "r": 0.5, + "g": 0.5, + "b": 0.5, + "a": 1.0 + } +} + +{ + "m_SGVersion": 3, + "m_Type": "UnityEditor.ShaderGraph.Internal.ColorShaderProperty", + "m_ObjectId": "41bfcf3cf6f24e0098346d3a59224d97", + "m_Guid": { + "m_GuidSerialized": "f42a4d4f-6d88-4897-addd-f0cb1e430ab8" + }, + "m_Name": "ShadingColor", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "ShadingColor", + "m_DefaultReferenceName": "_ShadingColor", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": { + "r": 0.5849056243896484, + "g": 0.5849056243896484, + "b": 0.5849056243896484, + "a": 1.0 + }, + "isMainColor": false, + "m_ColorMode": 0 +} + +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty", + "m_ObjectId": "4667227926a9450aa7fa8e58a1bf3866", + "m_Guid": { + "m_GuidSerialized": "ee764527-b699-4375-a90e-704da739a647" + }, + "m_Name": "Cuttoff", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "Cuttoff", + "m_DefaultReferenceName": "_Cuttoff", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": 0.5, + "m_FloatType": 0, + "m_RangeValues": { + "x": 0.0, + "y": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BooleanMaterialSlot", + "m_ObjectId": "4730d3a27f9a460a94cba10d4c7af258", + "m_Id": 0, + "m_DisplayName": "Predicate", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Predicate", + "m_StageCapability": 3, + "m_Value": false, + "m_DefaultValue": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "4ad89151ecf0451d9f92f4db3f59ca3d", + "m_Group": { + "m_Id": "" + }, + "m_Name": "VertexDescription.Tangent", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 0.0, + "y": 0.0, + "width": 0.0, + "height": 0.0 + } + }, + "m_Slots": [ + { + "m_Id": "b977eab87a834a02956948283a300909" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "VertexDescription.Tangent" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DMaterialSlot", + "m_ObjectId": "4bd73107ed5043a6a98b42284d491e6d", + "m_Id": 0, + "m_DisplayName": "ShadingMap", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_BareResource": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Internal.Texture2DShaderProperty", + "m_ObjectId": "4e79611254fb4f7ebaa9dc55ea52a427", + "m_Guid": { + "m_GuidSerialized": "8ba0f7ac-16b0-4874-83a9-5f7ed0c10efa" + }, + "m_Name": "BaseMap", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "BaseMap", + "m_DefaultReferenceName": "_BaseMap", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": { + "m_SerializedTexture": "", + "m_Guid": "" + }, + "isMainTexture": true, + "useTilingAndOffset": true, + "m_Modifiable": true, + "m_DefaultType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Internal.Texture2DShaderProperty", + "m_ObjectId": "5c4080b43fa645598a638526be476d15", + "m_Guid": { + "m_GuidSerialized": "32cac61f-148f-4535-a0a3-1b35df0ee783" + }, + "m_Name": "ShadingMap", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "ShadingMap", + "m_DefaultReferenceName": "_ShadingMap", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": { + "m_SerializedTexture": "", + "m_Guid": "" + }, + "isMainTexture": false, + "useTilingAndOffset": false, + "m_Modifiable": true, + "m_DefaultType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "5c8d36b44e8a48f7b4c1ad2c746e8f81", + "m_Id": 0, + "m_DisplayName": "Alpha", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Alpha", + "m_StageCapability": 2, + "m_Value": 1.0, + "m_DefaultValue": 1.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "5f8ace17977d4222984886f84ada0bb7", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.Alpha", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 0.0, + "y": 0.0, + "width": 0.0, + "height": 0.0 + } + }, + "m_Slots": [ + { + "m_Id": "5c8d36b44e8a48f7b4c1ad2c746e8f81" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.Alpha" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", + "m_ObjectId": "7207d851d0d54d9dbec558d8350cbcf5", + "m_Id": 1, + "m_DisplayName": "BaseColor", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "BaseColor", + "m_StageCapability": 2, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", + "m_ObjectId": "7e0c1e8c83e24c23985adb526ecaef3f", + "m_Id": -643094866, + "m_DisplayName": "BaseMap", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "_BaseMap", + "m_StageCapability": 2, + "m_BareResource": false, + "m_Texture": { + "m_SerializedTexture": "", + "m_Guid": "" + }, + "m_DefaultType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "7e3c0b97666e47ffa0460010d1a64071", + "m_Group": { + "m_Id": "" + }, + "m_Name": "VertexDescription.Normal", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 0.0, + "y": 0.0, + "width": 0.0, + "height": 0.0 + } + }, + "m_Slots": [ + { + "m_Id": "01c54a54e6cb42a290e72e354571cec5" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "VertexDescription.Normal" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.CategoryData", + "m_ObjectId": "867e133e4da04154ac66a450c056f228", + "m_Name": "", + "m_ChildObjectList": [ + { + "m_Id": "c6ae1333e8494c6292d560a6a0c1126e" + }, + { + "m_Id": "4e79611254fb4f7ebaa9dc55ea52a427" + }, + { + "m_Id": "41bfcf3cf6f24e0098346d3a59224d97" + }, + { + "m_Id": "5c4080b43fa645598a638526be476d15" + }, + { + "m_Id": "025d73c9fe2e47b3853bf9a00d126af4" + }, + { + "m_Id": "4667227926a9450aa7fa8e58a1bf3866" + }, + { + "m_Id": "d39873e6759a47c2a923dde640e6f4f6" + } + ] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DMaterialSlot", + "m_ObjectId": "896378e2743d4645bbfd8533cf1826e5", + "m_Id": 0, + "m_DisplayName": "BaseMap", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_BareResource": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "8dee648ae25449838a2cc7261ec55970", + "m_Id": 2, + "m_DisplayName": "Alpha", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Alpha", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "8e6b987b3d2e4b438d4618bd99e12be6", + "m_Group": { + "m_Id": "" + }, + "m_Name": "VertexDescription.Position", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 0.0, + "y": 0.0, + "width": 0.0, + "height": 0.0 + } + }, + "m_Slots": [ + { + "m_Id": "f3a2f016faaf422f9c936817f13cb82d" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "VertexDescription.Position" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BranchNode", + "m_ObjectId": "9096c7ad43b94e54b6b3240398f1dab5", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Branch", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 263.3333435058594, + "y": -89.33332061767578, + "width": 172.0, + "height": 143.99998474121095 + } + }, + "m_Slots": [ + { + "m_Id": "4730d3a27f9a460a94cba10d4c7af258" + }, + { + "m_Id": "db4f33ae2bdb474ea3319bd12b4039e3" + }, + { + "m_Id": "e4d1e079907b45f9a2464807787aa1e7" + }, + { + "m_Id": "b15c2b9e8aea45a49fb87bd57213690e" + } + ], + "synonyms": [ + "switch", + "if", + "else" + ], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "9588546692ca4354acbdb16148b88365", + "m_Id": 0, + "m_DisplayName": "ShadingColor", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", + "m_ObjectId": "9a2d5569fa30469981f78f76b4b050f0", + "m_Id": 1221667242, + "m_DisplayName": "ShadingColorMap", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "_ShadingColorMap", + "m_StageCapability": 2, + "m_BareResource": false, + "m_Texture": { + "m_SerializedTexture": "", + "m_Guid": "" + }, + "m_DefaultType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "9e9053ae73f94d2f99ce33a60274938f", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 12.000022888183594, + "y": 149.3332977294922, + "width": 148.66668701171876, + "height": 36.00001525878906 + } + }, + "m_Slots": [ + { + "m_Id": "9588546692ca4354acbdb16148b88365" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "41bfcf3cf6f24e0098346d3a59224d97" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "b15c2b9e8aea45a49fb87bd57213690e", + "m_Id": 3, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "b81474aeedbf4efa8c1bc90bb75c99a9", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 28.666715621948243, + "y": 77.33330535888672, + "width": 132.0, + "height": 36.000022888183597 + } + }, + "m_Slots": [ + { + "m_Id": "fb9fb639830c4cf69bfd994cb2ed4c29" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "c6ae1333e8494c6292d560a6a0c1126e" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.TangentMaterialSlot", + "m_ObjectId": "b977eab87a834a02956948283a300909", + "m_Id": 0, + "m_DisplayName": "Tangent", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Tangent", + "m_StageCapability": 1, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_Space": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "c0677ef2e2bf4d488e08da8a6f0fd932", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 10.000045776367188, + "y": 185.99996948242188, + "width": 150.6666717529297, + "height": 36.000030517578128 + } + }, + "m_Slots": [ + { + "m_Id": "4bd73107ed5043a6a98b42284d491e6d" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "5c4080b43fa645598a638526be476d15" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "c16b87dc9c1f410aa309adc94136d2ea", + "m_Id": 0, + "m_DisplayName": "Cuttoff", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 3, + "m_Type": "UnityEditor.ShaderGraph.Internal.ColorShaderProperty", + "m_ObjectId": "c6ae1333e8494c6292d560a6a0c1126e", + "m_Guid": { + "m_GuidSerialized": "e4a91be8-41b1-46a6-8fb3-cee571683ce1" + }, + "m_Name": "BaseColor", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "BaseColor", + "m_DefaultReferenceName": "_BaseColor", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": { + "r": 1.0, + "g": 1.0, + "b": 1.0, + "a": 0.0 + }, + "isMainColor": true, + "m_ColorMode": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "c740dd36ebf2452394a2d44e668e38b0", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 67.33332061767578, + "y": -28.66669273376465, + "width": 113.33333587646485, + "height": 35.99998474121094 + } + }, + "m_Slots": [ + { + "m_Id": "c16b87dc9c1f410aa309adc94136d2ea" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "4667227926a9450aa7fa8e58a1bf3866" + } +} + +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.Rendering.Universal.ShaderGraph.UniversalTarget", + "m_ObjectId": "cd04b2ec603c4ce98f51d924e2a512c2", + "m_Datas": [], + "m_ActiveSubTarget": { + "m_Id": "cd81c525151142c89a6af7f574fd628b" + }, + "m_AllowMaterialOverride": false, + "m_SurfaceType": 0, + "m_ZTestMode": 4, + "m_ZWriteControl": 0, + "m_AlphaMode": 0, + "m_RenderFace": 2, + "m_AlphaClip": true, + "m_CastShadows": true, + "m_ReceiveShadows": true, + "m_SupportsLODCrossFade": false, + "m_CustomEditorGUI": "", + "m_SupportVFX": false +} + +{ + "m_SGVersion": 2, + "m_Type": "UnityEditor.Rendering.Universal.ShaderGraph.UniversalUnlitSubTarget", + "m_ObjectId": "cd81c525151142c89a6af7f574fd628b" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "d38dd7e5f50e4fa09df0f606f2e323be", + "m_Id": 2016068918, + "m_DisplayName": "ShadingColor", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "_ShadingColor", + "m_StageCapability": 2, + "m_Value": { + "x": 0.5849056243896484, + "y": 0.5849056243896484, + "z": 0.5849056243896484, + "w": 1.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Internal.BooleanShaderProperty", + "m_ObjectId": "d39873e6759a47c2a923dde640e6f4f6", + "m_Guid": { + "m_GuidSerialized": "adf6f980-4b4f-499b-9801-3cd83d49a2df" + }, + "m_Name": "CutoffEnabled", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "CutoffEnabled", + "m_DefaultReferenceName": "_CutoffEnabled", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "db4f33ae2bdb474ea3319bd12b4039e3", + "m_Id": 1, + "m_DisplayName": "True", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "True", + "m_StageCapability": 3, + "m_Value": { + "x": 1.0, + "y": 1.0, + "z": 1.0, + "w": 1.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "e27b69744886424eb5f477011f04efd2", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.BaseColor", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 0.0, + "y": 0.0, + "width": 0.0, + "height": 0.0 + } + }, + "m_Slots": [ + { + "m_Id": "3b076e005942425f99ce3907ec24fe79" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.BaseColor" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "e4d1e079907b45f9a2464807787aa1e7", + "m_Id": 2, + "m_DisplayName": "False", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "False", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "ead31769aa464a4e8aae7a3cfa026b2c", + "m_Id": -1559276299, + "m_DisplayName": "ShadingToonyFactor", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "_ShadingToonyFactor", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "f01783c2eb3e41f1aa4a8da53d9a3418", + "m_Id": 0, + "m_DisplayName": "Alpha Clip Threshold", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "AlphaClipThreshold", + "m_StageCapability": 2, + "m_Value": 0.5, + "m_DefaultValue": 0.5, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PositionMaterialSlot", + "m_ObjectId": "f3a2f016faaf422f9c936817f13cb82d", + "m_Id": 0, + "m_DisplayName": "Position", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Position", + "m_StageCapability": 1, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_Space": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "fb9fb639830c4cf69bfd994cb2ed4c29", + "m_Id": 0, + "m_DisplayName": "BaseColor", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_Labels": [] +} + diff --git a/Assets/VRM10/Samples~/VRM10Viewer/Assets/TinyMToonOpaque.shadergraph.meta b/Assets/VRM10/Samples~/VRM10Viewer/Assets/TinyMToonOpaque.shadergraph.meta new file mode 100644 index 000000000..04c5857b3 --- /dev/null +++ b/Assets/VRM10/Samples~/VRM10Viewer/Assets/TinyMToonOpaque.shadergraph.meta @@ -0,0 +1,10 @@ +fileFormatVersion: 2 +guid: fd08e80eb7e04e849b8a6d534e48efea +ScriptedImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 2 + userData: + assetBundleName: + assetBundleVariant: + script: {fileID: 11500000, guid: 625f186215c104763be7675aa2d941aa, type: 3} diff --git a/Assets/VRM10/Samples~/VRM10Viewer/Assets/TinyMToon_SubGraph.shadersubgraph b/Assets/VRM10/Samples~/VRM10Viewer/Assets/TinyMToon_SubGraph.shadersubgraph new file mode 100644 index 000000000..462a1b670 --- /dev/null +++ b/Assets/VRM10/Samples~/VRM10Viewer/Assets/TinyMToon_SubGraph.shadersubgraph @@ -0,0 +1,2836 @@ +{ + "m_SGVersion": 3, + "m_Type": "UnityEditor.ShaderGraph.GraphData", + "m_ObjectId": "cb9b3f03eaf8426a80d4812a41b632bf", + "m_Properties": [ + { + "m_Id": "5fcf9b30d74446eea8cc0773e5f006a6" + }, + { + "m_Id": "2a25272ab02641c5bf8885ef2790f1c1" + }, + { + "m_Id": "32d95fb1210b417892ceabe88d06e605" + }, + { + "m_Id": "e6bca830ac7e48a9bbcdc9f0f8ee6967" + }, + { + "m_Id": "22a4bb49b85e452a8db5595bcbeb91c5" + } + ], + "m_Keywords": [], + "m_Dropdowns": [], + "m_CategoryData": [ + { + "m_Id": "501036e1d6184113a2c38a110f6ca14b" + } + ], + "m_Nodes": [ + { + "m_Id": "e14d05fc892148ad9baf9d7558e2cb5a" + }, + { + "m_Id": "793b2df7f27d4151a34ffe48af207418" + }, + { + "m_Id": "c79574bf98cd4d1cb1029e884069a2ec" + }, + { + "m_Id": "76c827b6d41f41adaa41a73858a18fb3" + }, + { + "m_Id": "4157f6d98e8f4cff8948bb4a108c6c31" + }, + { + "m_Id": "45e0e6b45a3a4118a13934d39d0bbd83" + }, + { + "m_Id": "b16e118211bd4fc9b39121a2725d715f" + }, + { + "m_Id": "bb4f64b76594481eabd5d02fd49e443a" + }, + { + "m_Id": "9e8ee3e30f75499087e513eaac81b463" + }, + { + "m_Id": "a42e09269a6848a7b3adddfc9edfcce2" + }, + { + "m_Id": "81b78da7e4f34f108683a1b7f4c3ae4f" + }, + { + "m_Id": "ac0d7130cca947dfa64b9b4e4869b270" + }, + { + "m_Id": "d00ad0a354f1442c89d28b756c8fdcc6" + }, + { + "m_Id": "ea269fbf6a224fecbba11cbfe8f687b3" + }, + { + "m_Id": "3e165d96367e4901bc9876044554588c" + }, + { + "m_Id": "d79d0ca1463f424899863b8c4e306f4b" + }, + { + "m_Id": "193173a2eded42af802f4085a1ba700a" + }, + { + "m_Id": "ebb1c97eea8c4747ab5c2c8eb36fb25f" + }, + { + "m_Id": "cf9257d1f44646b7bb3f3e3b42ecc29e" + }, + { + "m_Id": "4efbc3bbf016413e94e4c9ac65dd4789" + } + ], + "m_GroupDatas": [], + "m_StickyNoteDatas": [], + "m_Edges": [ + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "193173a2eded42af802f4085a1ba700a" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "9e8ee3e30f75499087e513eaac81b463" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "193173a2eded42af802f4085a1ba700a" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "ac0d7130cca947dfa64b9b4e4869b270" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "3e165d96367e4901bc9876044554588c" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "bb4f64b76594481eabd5d02fd49e443a" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "4157f6d98e8f4cff8948bb4a108c6c31" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "45e0e6b45a3a4118a13934d39d0bbd83" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "45e0e6b45a3a4118a13934d39d0bbd83" + }, + "m_SlotId": 1 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "9e8ee3e30f75499087e513eaac81b463" + }, + "m_SlotId": 2 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "4efbc3bbf016413e94e4c9ac65dd4789" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "81b78da7e4f34f108683a1b7f4c3ae4f" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "76c827b6d41f41adaa41a73858a18fb3" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "4157f6d98e8f4cff8948bb4a108c6c31" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "793b2df7f27d4151a34ffe48af207418" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "81b78da7e4f34f108683a1b7f4c3ae4f" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "793b2df7f27d4151a34ffe48af207418" + }, + "m_SlotId": 7 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "ebb1c97eea8c4747ab5c2c8eb36fb25f" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "81b78da7e4f34f108683a1b7f4c3ae4f" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "b16e118211bd4fc9b39121a2725d715f" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "9e8ee3e30f75499087e513eaac81b463" + }, + "m_SlotId": 3 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "b16e118211bd4fc9b39121a2725d715f" + }, + "m_SlotId": 2 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "a42e09269a6848a7b3adddfc9edfcce2" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "bb4f64b76594481eabd5d02fd49e443a" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "ac0d7130cca947dfa64b9b4e4869b270" + }, + "m_SlotId": 1 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "9e8ee3e30f75499087e513eaac81b463" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "b16e118211bd4fc9b39121a2725d715f" + }, + "m_SlotId": 3 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "e14d05fc892148ad9baf9d7558e2cb5a" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "bb4f64b76594481eabd5d02fd49e443a" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "b16e118211bd4fc9b39121a2725d715f" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "c79574bf98cd4d1cb1029e884069a2ec" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "4157f6d98e8f4cff8948bb4a108c6c31" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "cf9257d1f44646b7bb3f3e3b42ecc29e" + }, + "m_SlotId": 1 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "4efbc3bbf016413e94e4c9ac65dd4789" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "cf9257d1f44646b7bb3f3e3b42ecc29e" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "4efbc3bbf016413e94e4c9ac65dd4789" + }, + "m_SlotId": 2 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "cf9257d1f44646b7bb3f3e3b42ecc29e" + }, + "m_SlotId": 3 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "4efbc3bbf016413e94e4c9ac65dd4789" + }, + "m_SlotId": 3 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "cf9257d1f44646b7bb3f3e3b42ecc29e" + }, + "m_SlotId": 4 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "ebb1c97eea8c4747ab5c2c8eb36fb25f" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "d00ad0a354f1442c89d28b756c8fdcc6" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "cf9257d1f44646b7bb3f3e3b42ecc29e" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "d79d0ca1463f424899863b8c4e306f4b" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "a42e09269a6848a7b3adddfc9edfcce2" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "ea269fbf6a224fecbba11cbfe8f687b3" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "793b2df7f27d4151a34ffe48af207418" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "ebb1c97eea8c4747ab5c2c8eb36fb25f" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "e14d05fc892148ad9baf9d7558e2cb5a" + }, + "m_SlotId": 2 + } + } + ], + "m_VertexContext": { + "m_Position": { + "x": 0.0, + "y": 0.0 + }, + "m_Blocks": [] + }, + "m_FragmentContext": { + "m_Position": { + "x": 0.0, + "y": 0.0 + }, + "m_Blocks": [] + }, + "m_PreviewData": { + "serializedMesh": { + "m_SerializedMesh": "{\"mesh\":{\"instanceID\":0}}", + "m_Guid": "" + }, + "preventRotation": false + }, + "m_Path": "Sub Graphs", + "m_GraphPrecision": 1, + "m_PreviewMode": 2, + "m_OutputNode": { + "m_Id": "e14d05fc892148ad9baf9d7558e2cb5a" + }, + "m_SubDatas": [], + "m_ActiveTargets": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "0cb0ffabbdaf4fb3b425b2e9537bed5d", + "m_Id": 2, + "m_DisplayName": "G", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "G", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "0cb14acd223546c1a2eedd3a5fcebc2b", + "m_Id": 3, + "m_DisplayName": "Z", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Z", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [ + "Z" + ] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "0dae3d1d556d4097b65295fe64706c86", + "m_Id": 0, + "m_DisplayName": "RGBA", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "RGBA", + "m_StageCapability": 2, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "1597fd3003474e4698f6d4adb9d4f390", + "m_Id": 3, + "m_DisplayName": "B", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "163b9d55f9ee44c2b2cb1436f7f8054c", + "m_Id": 2, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "e00": 0.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 0.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 0.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 0.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "193173a2eded42af802f4085a1ba700a", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -241.3332977294922, + "y": 66.00003051757813, + "width": 185.33326721191407, + "height": 36.000022888183597 + } + }, + "m_Slots": [ + { + "m_Id": "7da0169054194d1ca00d240bd0af65b4" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "22a4bb49b85e452a8db5595bcbeb91c5" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", + "m_ObjectId": "1e5c3325236a458cb23473e61ab52258", + "m_Id": 0, + "m_DisplayName": "Direction", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Direction", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty", + "m_ObjectId": "22a4bb49b85e452a8db5595bcbeb91c5", + "m_Guid": { + "m_GuidSerialized": "fa354438-5a66-4424-a53f-da950e75c488" + }, + "m_Name": "ShadingToonyFactor", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "ShadingToonyFactor", + "m_DefaultReferenceName": "_ShadingToonyFactor", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": 0.0, + "m_FloatType": 0, + "m_RangeValues": { + "x": 0.0, + "y": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", + "m_ObjectId": "244615cd3b5b44c7a2ac7c7da8a71dfc", + "m_Id": 0, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SamplerStateMaterialSlot", + "m_ObjectId": "25430c424d804824bd3531ba9880d62f", + "m_Id": 3, + "m_DisplayName": "Sampler", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Sampler", + "m_StageCapability": 3, + "m_BareResource": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "257091401f41417f890fcdb167c84b91", + "m_Id": 2, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "27837f86ddaf41618adf108cef8baa14", + "m_Id": 2, + "m_DisplayName": "Y", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Y", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [ + "Y" + ] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "2985a88ee0fd48b9a675673f8eea588e", + "m_Id": 0, + "m_DisplayName": "BaseColor", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Internal.Texture2DShaderProperty", + "m_ObjectId": "2a25272ab02641c5bf8885ef2790f1c1", + "m_Guid": { + "m_GuidSerialized": "d2495ca0-f5eb-484a-bd18-dca0589774e3" + }, + "m_Name": "BaseMap", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "BaseMap", + "m_DefaultReferenceName": "_BaseMap", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": { + "m_SerializedTexture": "", + "m_Guid": "" + }, + "isMainTexture": false, + "useTilingAndOffset": false, + "m_Modifiable": true, + "m_DefaultType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "2a8ff216f8fa407e992c0938ddd0e2c6", + "m_Id": 5, + "m_DisplayName": "G", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "G", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "2b0e00506cd94b85af274754e35c77df", + "m_Id": 0, + "m_DisplayName": "A", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.UVMaterialSlot", + "m_ObjectId": "2bdcfcd7d92349a79460b57f609ef989", + "m_Id": 2, + "m_DisplayName": "UV", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "UV", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0 + }, + "m_Labels": [], + "m_Channel": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "2c8e55ce73964f1bbdc9beb405a0093f", + "m_Id": 0, + "m_DisplayName": "In", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "In", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 3, + "m_Type": "UnityEditor.ShaderGraph.Internal.ColorShaderProperty", + "m_ObjectId": "32d95fb1210b417892ceabe88d06e605", + "m_Guid": { + "m_GuidSerialized": "916faab9-cc1c-4621-84b8-9c47171bf8e8" + }, + "m_Name": "ShadingColor", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "ShadingColor", + "m_DefaultReferenceName": "_ShadingColor", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": { + "r": 0.5849056243896484, + "g": 0.5849056243896484, + "b": 0.5849056243896484, + "a": 1.0 + }, + "isMainColor": false, + "m_ColorMode": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "34ff91286e18426e86c00bdbfdaae840", + "m_Id": 1, + "m_DisplayName": "X", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "X", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "38e3682de0fe4b7e834fc88a7fd54f4d", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": { + "e00": 2.0, + "e01": 2.0, + "e02": 2.0, + "e03": 2.0, + "e10": 2.0, + "e11": 2.0, + "e12": 2.0, + "e13": 2.0, + "e20": 2.0, + "e21": 2.0, + "e22": 2.0, + "e23": 2.0, + "e30": 2.0, + "e31": 2.0, + "e32": 2.0, + "e33": 2.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "3e165d96367e4901bc9876044554588c", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -241.3332977294922, + "y": -6.000007152557373, + "width": 148.66659545898438, + "height": 36.00001907348633 + } + }, + "m_Slots": [ + { + "m_Id": "5cf81e7272804f2f8cabbe976f0b1b13" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "32d95fb1210b417892ceabe88d06e605" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DotProductNode", + "m_ObjectId": "4157f6d98e8f4cff8948bb4a108c6c31", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Dot Product", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -214.00006103515626, + "y": 422.666748046875, + "width": 209.33331298828126, + "height": 303.9998779296875 + } + }, + "m_Slots": [ + { + "m_Id": "9d1c829c991d43528afa6acad4033478" + }, + { + "m_Id": "e07427594c9c4aebaf796277470ea1b9" + }, + { + "m_Id": "257091401f41417f890fcdb167c84b91" + } + ], + "synonyms": [ + "scalar product" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "44d75f87a8b5408ca38a1416cf418dd4", + "m_Id": 3, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SaturateNode", + "m_ObjectId": "45e0e6b45a3a4118a13934d39d0bbd83", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Saturate", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 38.66663360595703, + "y": 386.6667175292969, + "width": 129.3333740234375, + "height": 95.99996948242188 + } + }, + "m_Slots": [ + { + "m_Id": "b6d0fad5c1d84782b3e20bc6ac0bf2ef" + }, + { + "m_Id": "4b263288e74549868e19d6c900861097" + } + ], + "synonyms": [ + "clamp" + ], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "4aa44cb42d3b4c80ba8f1903b32f37b4", + "m_Id": 1, + "m_DisplayName": "b", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "b", + "m_StageCapability": 3, + "m_Value": 1.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "4b263288e74549868e19d6c900861097", + "m_Id": 1, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", + "m_ObjectId": "4ed7912197f44f93bf2584ee61c855c0", + "m_Id": 1, + "m_DisplayName": "Texture", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Texture", + "m_StageCapability": 3, + "m_BareResource": false, + "m_Texture": { + "m_SerializedTexture": "", + "m_Guid": "" + }, + "m_DefaultType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "4ee86880f28443d0b7b1ef7c79bc91b3", + "m_Id": 3, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector3Node", + "m_ObjectId": "4efbc3bbf016413e94e4c9ac65dd4789", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Vector 3", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 41.33331298828125, + "y": -774.6666870117188, + "width": 129.33340454101563, + "height": 126.66668701171875 + } + }, + "m_Slots": [ + { + "m_Id": "34ff91286e18426e86c00bdbfdaae840" + }, + { + "m_Id": "27837f86ddaf41618adf108cef8baa14" + }, + { + "m_Id": "0cb14acd223546c1a2eedd3a5fcebc2b" + }, + { + "m_Id": "244615cd3b5b44c7a2ac7c7da8a71dfc" + } + ], + "synonyms": [ + "3", + "v3", + "vec3", + "float3" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.CategoryData", + "m_ObjectId": "501036e1d6184113a2c38a110f6ca14b", + "m_Name": "", + "m_ChildObjectList": [ + { + "m_Id": "5fcf9b30d74446eea8cc0773e5f006a6" + }, + { + "m_Id": "2a25272ab02641c5bf8885ef2790f1c1" + }, + { + "m_Id": "32d95fb1210b417892ceabe88d06e605" + }, + { + "m_Id": "e6bca830ac7e48a9bbcdc9f0f8ee6967" + }, + { + "m_Id": "22a4bb49b85e452a8db5595bcbeb91c5" + } + ] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "5847cfaef25747b4a16efd37770506fa", + "m_Id": 0, + "m_DisplayName": "RGBA", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "RGBA", + "m_StageCapability": 2, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", + "m_ObjectId": "5b947c35e0f3453e887c550f2ec5bfdf", + "m_Id": 1, + "m_DisplayName": "BaseColor", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "BaseColor", + "m_StageCapability": 2, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "5cf81e7272804f2f8cabbe976f0b1b13", + "m_Id": 0, + "m_DisplayName": "ShadingColor", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 3, + "m_Type": "UnityEditor.ShaderGraph.Internal.ColorShaderProperty", + "m_ObjectId": "5fcf9b30d74446eea8cc0773e5f006a6", + "m_Guid": { + "m_GuidSerialized": "e0a3ade0-ddd9-4c69-b3b5-923901f7b2da" + }, + "m_Name": "BaseColor", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "BaseColor", + "m_DefaultReferenceName": "_BaseColor", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": { + "r": 1.0, + "g": 1.0, + "b": 1.0, + "a": 0.0 + }, + "isMainColor": false, + "m_ColorMode": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.UVMaterialSlot", + "m_ObjectId": "649eba81e261435c982f5e3d878ce491", + "m_Id": 2, + "m_DisplayName": "UV", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "UV", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0 + }, + "m_Labels": [], + "m_Channel": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "657b2df0b83647419b503f35d2e540fb", + "m_Id": 4, + "m_DisplayName": "R", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "R", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "6af38677f0a54e4b802818a37c1d6a25", + "m_Id": 7, + "m_DisplayName": "A", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.NormalVectorNode", + "m_ObjectId": "76c827b6d41f41adaa41a73858a18fb3", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Normal Vector", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -517.3333129882813, + "y": 478.0000915527344, + "width": 209.33334350585938, + "height": 318.6664733886719 + } + }, + "m_Slots": [ + { + "m_Id": "e938be3931ac46ffa7edddb940436026" + } + ], + "synonyms": [ + "surface direction" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 2, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Space": 2 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SampleTexture2DNode", + "m_ObjectId": "793b2df7f27d4151a34ffe48af207418", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Sample Texture 2D", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -30.666671752929689, + "y": -480.6666259765625, + "width": 184.66668701171876, + "height": 254.66665649414063 + } + }, + "m_Slots": [ + { + "m_Id": "0dae3d1d556d4097b65295fe64706c86" + }, + { + "m_Id": "de6d929ef0ec47878f4068f31fea7ae5" + }, + { + "m_Id": "2a8ff216f8fa407e992c0938ddd0e2c6" + }, + { + "m_Id": "97382d7cd5ce4cecbf2468b7f6d66a9a" + }, + { + "m_Id": "6af38677f0a54e4b802818a37c1d6a25" + }, + { + "m_Id": "4ed7912197f44f93bf2584ee61c855c0" + }, + { + "m_Id": "2bdcfcd7d92349a79460b57f609ef989" + }, + { + "m_Id": "daf420841b3c40889d2c501d86575475" + } + ], + "synonyms": [ + "tex2d" + ], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_TextureType": 0, + "m_NormalMapSpace": 1, + "m_EnableGlobalMipBias": true, + "m_MipSamplingMode": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "7987a14649d0436fbb2b63bd33dc08d5", + "m_Id": 0, + "m_DisplayName": "a", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "a", + "m_StageCapability": 3, + "m_Value": -1.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "7da0169054194d1ca00d240bd0af65b4", + "m_Id": 0, + "m_DisplayName": "ShadingToonyFactor", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.MultiplyNode", + "m_ObjectId": "81b78da7e4f34f108683a1b7f4c3ae4f", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Multiply", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 191.83334350585938, + "y": -719.625, + "width": 209.33334350585938, + "height": 304.0 + } + }, + "m_Slots": [ + { + "m_Id": "ca76bcc7cea846269e39d74f97a0ead4" + }, + { + "m_Id": "8d7a61e8c61841e58a3286448d5ea2b2" + }, + { + "m_Id": "b7080a7c10fd4b93b68b164b9ea70568" + } + ], + "synonyms": [ + "multiplication", + "times", + "x" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "8372fcb866dc4d37847d61202dc300e1", + "m_Id": 0, + "m_DisplayName": "A", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": { + "e00": 0.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 0.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 0.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 0.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "876172de5f624593ad014c6084923ec0", + "m_Id": 6, + "m_DisplayName": "B", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "8d7a61e8c61841e58a3286448d5ea2b2", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": { + "e00": 2.0, + "e01": 2.0, + "e02": 2.0, + "e03": 2.0, + "e10": 2.0, + "e11": 2.0, + "e12": 2.0, + "e13": 2.0, + "e20": 2.0, + "e21": 2.0, + "e22": 2.0, + "e23": 2.0, + "e30": 2.0, + "e31": 2.0, + "e32": 2.0, + "e33": 2.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DMaterialSlot", + "m_ObjectId": "93ab07151d1b4240ab5d847b40bf0a80", + "m_Id": 0, + "m_DisplayName": "ShadingColorMap", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_BareResource": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "97382d7cd5ce4cecbf2468b7f6d66a9a", + "m_Id": 6, + "m_DisplayName": "B", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "9cb9ef053c164969a9aab726b690190a", + "m_Id": 7, + "m_DisplayName": "A", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "9d1c829c991d43528afa6acad4033478", + "m_Id": 0, + "m_DisplayName": "A", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.ShaderGraph.CustomFunctionNode", + "m_ObjectId": "9e8ee3e30f75499087e513eaac81b463", + "m_Group": { + "m_Id": "" + }, + "m_Name": "linearstep (Custom Function)", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 189.33331298828126, + "y": 242.66673278808595, + "width": 211.99993896484376, + "height": 143.99998474121095 + } + }, + "m_Slots": [ + { + "m_Id": "7987a14649d0436fbb2b63bd33dc08d5" + }, + { + "m_Id": "4aa44cb42d3b4c80ba8f1903b32f37b4" + }, + { + "m_Id": "cfc8a677eace44708d05b23cb2b55d44" + }, + { + "m_Id": "44d75f87a8b5408ca38a1416cf418dd4" + } + ], + "synonyms": [ + "code", + "HLSL" + ], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SourceType": 1, + "m_FunctionName": "linearstep", + "m_FunctionSource": "", + "m_FunctionBody": "Out = saturate( ( t - a ) / ( b - a ) );" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SampleTexture2DNode", + "m_ObjectId": "a42e09269a6848a7b3adddfc9edfcce2", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Sample Texture 2D", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -16.666717529296876, + "y": -131.99996948242188, + "width": 184.66671752929688, + "height": 254.6666717529297 + } + }, + "m_Slots": [ + { + "m_Id": "5847cfaef25747b4a16efd37770506fa" + }, + { + "m_Id": "657b2df0b83647419b503f35d2e540fb" + }, + { + "m_Id": "f91901c910614437a72ff48aa2a3115c" + }, + { + "m_Id": "876172de5f624593ad014c6084923ec0" + }, + { + "m_Id": "9cb9ef053c164969a9aab726b690190a" + }, + { + "m_Id": "b57dd1d5bdd843d183a52cd79f346950" + }, + { + "m_Id": "649eba81e261435c982f5e3d878ce491" + }, + { + "m_Id": "25430c424d804824bd3531ba9880d62f" + } + ], + "synonyms": [ + "tex2d" + ], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_TextureType": 0, + "m_NormalMapSpace": 1, + "m_EnableGlobalMipBias": true, + "m_MipSamplingMode": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DMaterialSlot", + "m_ObjectId": "a838792aa13d4541818368f65bb82d7a", + "m_Id": 0, + "m_DisplayName": "BaseMap", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_BareResource": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.NegateNode", + "m_ObjectId": "ac0d7130cca947dfa64b9b4e4869b270", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Negate", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 38.66663360595703, + "y": 242.66673278808595, + "width": 129.3333740234375, + "height": 95.99998474121094 + } + }, + "m_Slots": [ + { + "m_Id": "cac2f02518114904803896b7968ba030" + }, + { + "m_Id": "d7dcd343de1f4610bd50183c7bbc027a" + } + ], + "synonyms": [ + "invert", + "opposite" + ], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.LerpNode", + "m_ObjectId": "b16e118211bd4fc9b39121a2725d715f", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Lerp", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 445.9999694824219, + "y": -225.99998474121095, + "width": 209.33328247070313, + "height": 328.0000305175781 + } + }, + "m_Slots": [ + { + "m_Id": "2b0e00506cd94b85af274754e35c77df" + }, + { + "m_Id": "edb0fcfb67d244fe80df1b46b01370e5" + }, + { + "m_Id": "d786e0e9365341c09aec46e04e10c1dc" + }, + { + "m_Id": "4ee86880f28443d0b7b1ef7c79bc91b3" + } + ], + "synonyms": [ + "mix", + "blend", + "linear interpolate" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", + "m_ObjectId": "b57dd1d5bdd843d183a52cd79f346950", + "m_Id": 1, + "m_DisplayName": "Texture", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Texture", + "m_StageCapability": 3, + "m_BareResource": false, + "m_Texture": { + "m_SerializedTexture": "", + "m_Guid": "" + }, + "m_DefaultType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "b6d0fad5c1d84782b3e20bc6ac0bf2ef", + "m_Id": 0, + "m_DisplayName": "In", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "In", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "b7080a7c10fd4b93b68b164b9ea70568", + "m_Id": 2, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "e00": 0.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 0.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 0.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 0.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.MultiplyNode", + "m_ObjectId": "bb4f64b76594481eabd5d02fd49e443a", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Multiply", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 189.33331298828126, + "y": -207.33331298828126, + "width": 209.33331298828126, + "height": 304.0 + } + }, + "m_Slots": [ + { + "m_Id": "df377d8b254448c3bb530d3b5fc8caf2" + }, + { + "m_Id": "bfdd6544b5774cadbe83892bdc8d4e43" + }, + { + "m_Id": "163b9d55f9ee44c2b2cb1436f7f8054c" + } + ], + "synonyms": [ + "multiplication", + "times", + "x" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "bfdd6544b5774cadbe83892bdc8d4e43", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": { + "e00": 2.0, + "e01": 2.0, + "e02": 2.0, + "e03": 2.0, + "e10": 2.0, + "e11": 2.0, + "e12": 2.0, + "e13": 2.0, + "e20": 2.0, + "e21": 2.0, + "e22": 2.0, + "e23": 2.0, + "e30": 2.0, + "e31": 2.0, + "e32": 2.0, + "e33": 2.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.MainLightDirectionNode", + "m_ObjectId": "c79574bf98cd4d1cb1029e884069a2ec", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Main Light Direction", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -469.3333435058594, + "y": 376.6667175292969, + "width": 161.3333740234375, + "height": 78.6666259765625 + } + }, + "m_Slots": [ + { + "m_Id": "1e5c3325236a458cb23473e61ab52258" + } + ], + "synonyms": [ + "sun" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "ca76bcc7cea846269e39d74f97a0ead4", + "m_Id": 0, + "m_DisplayName": "A", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": { + "e00": 0.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 0.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 0.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 0.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "cac2f02518114904803896b7968ba030", + "m_Id": 0, + "m_DisplayName": "In", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "In", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SplitNode", + "m_ObjectId": "cf9257d1f44646b7bb3f3e3b42ecc29e", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Split", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -113.33329010009766, + "y": -795.3333740234375, + "width": 120.66663360595703, + "height": 150.66668701171876 + } + }, + "m_Slots": [ + { + "m_Id": "2c8e55ce73964f1bbdc9beb405a0093f" + }, + { + "m_Id": "e89cf23170ba405e8d246dc5294c2b52" + }, + { + "m_Id": "0cb0ffabbdaf4fb3b425b2e9537bed5d" + }, + { + "m_Id": "1597fd3003474e4698f6d4adb9d4f390" + }, + { + "m_Id": "f22d8391c7d848bc98ea5de0e815a928" + } + ], + "synonyms": [ + "separate" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "cfc8a677eace44708d05b23cb2b55d44", + "m_Id": 2, + "m_DisplayName": "t", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "t", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "d00ad0a354f1442c89d28b756c8fdcc6", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -277.33331298828127, + "y": -756.0, + "width": 132.00001525878907, + "height": 36.0 + } + }, + "m_Slots": [ + { + "m_Id": "2985a88ee0fd48b9a675673f8eea588e" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "5fcf9b30d74446eea8cc0773e5f006a6" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "d786e0e9365341c09aec46e04e10c1dc", + "m_Id": 2, + "m_DisplayName": "T", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "T", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "d79d0ca1463f424899863b8c4e306f4b", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -241.3332977294922, + "y": 30.00001335144043, + "width": 177.99990844726563, + "height": 36.00001525878906 + } + }, + "m_Slots": [ + { + "m_Id": "93ab07151d1b4240ab5d847b40bf0a80" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "e6bca830ac7e48a9bbcdc9f0f8ee6967" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "d7dcd343de1f4610bd50183c7bbc027a", + "m_Id": 1, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SamplerStateMaterialSlot", + "m_ObjectId": "daf420841b3c40889d2c501d86575475", + "m_Id": 3, + "m_DisplayName": "Sampler", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Sampler", + "m_StageCapability": 3, + "m_BareResource": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "dcb2eb82aeda4f4781fa51c613f2f64c", + "m_Id": 2, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "e00": 0.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 0.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 0.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 0.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "de6d929ef0ec47878f4068f31fea7ae5", + "m_Id": 4, + "m_DisplayName": "R", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "R", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "df377d8b254448c3bb530d3b5fc8caf2", + "m_Id": 0, + "m_DisplayName": "A", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": { + "e00": 0.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 0.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 0.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 0.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "e07427594c9c4aebaf796277470ea1b9", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 1.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SubGraphOutputNode", + "m_ObjectId": "e14d05fc892148ad9baf9d7558e2cb5a", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Output", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 714.6666870117188, + "y": -428.6665954589844, + "width": 110.00006103515625, + "height": 102.6666259765625 + } + }, + "m_Slots": [ + { + "m_Id": "5b947c35e0f3453e887c550f2ec5bfdf" + }, + { + "m_Id": "eb34d529e298407aa3606f9cbcdc7819" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "IsFirstSlotValid": true +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Internal.Texture2DShaderProperty", + "m_ObjectId": "e6bca830ac7e48a9bbcdc9f0f8ee6967", + "m_Guid": { + "m_GuidSerialized": "ad5cc3fe-a5f8-4a48-9956-35d13519f07e" + }, + "m_Name": "ShadingColorMap", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "ShadingColorMap", + "m_DefaultReferenceName": "_ShadingColorMap", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": { + "m_SerializedTexture": "", + "m_Guid": "" + }, + "isMainTexture": false, + "useTilingAndOffset": false, + "m_Modifiable": true, + "m_DefaultType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "e89cf23170ba405e8d246dc5294c2b52", + "m_Id": 1, + "m_DisplayName": "R", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "R", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", + "m_ObjectId": "e938be3931ac46ffa7edddb940436026", + "m_Id": 0, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 1.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "ea269fbf6a224fecbba11cbfe8f687b3", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -278.6666259765625, + "y": -451.9999694824219, + "width": 133.33328247070313, + "height": 36.0 + } + }, + "m_Slots": [ + { + "m_Id": "a838792aa13d4541818368f65bb82d7a" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "2a25272ab02641c5bf8885ef2790f1c1" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "eb34d529e298407aa3606f9cbcdc7819", + "m_Id": 2, + "m_DisplayName": "Alpha", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Alpha", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.MultiplyNode", + "m_ObjectId": "ebb1c97eea8c4747ab5c2c8eb36fb25f", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Multiply", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 271.3333435058594, + "y": -402.6666259765625, + "width": 127.33328247070313, + "height": 120.00003051757813 + } + }, + "m_Slots": [ + { + "m_Id": "8372fcb866dc4d37847d61202dc300e1" + }, + { + "m_Id": "38e3682de0fe4b7e834fc88a7fd54f4d" + }, + { + "m_Id": "dcb2eb82aeda4f4781fa51c613f2f64c" + } + ], + "synonyms": [ + "multiplication", + "times", + "x" + ], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "edb0fcfb67d244fe80df1b46b01370e5", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": { + "x": 1.0, + "y": 1.0, + "z": 1.0, + "w": 1.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "f22d8391c7d848bc98ea5de0e815a928", + "m_Id": 4, + "m_DisplayName": "A", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "f91901c910614437a72ff48aa2a3115c", + "m_Id": 5, + "m_DisplayName": "G", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "G", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + diff --git a/Assets/VRM10/Samples~/VRM10Viewer/Assets/TinyMToon_SubGraph.shadersubgraph.meta b/Assets/VRM10/Samples~/VRM10Viewer/Assets/TinyMToon_SubGraph.shadersubgraph.meta new file mode 100644 index 000000000..812e9d425 --- /dev/null +++ b/Assets/VRM10/Samples~/VRM10Viewer/Assets/TinyMToon_SubGraph.shadersubgraph.meta @@ -0,0 +1,10 @@ +fileFormatVersion: 2 +guid: 45c6d2335bae988419dbc2ec65c33dae +ScriptedImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 2 + userData: + assetBundleName: + assetBundleVariant: + script: {fileID: 11500000, guid: 60072b568d64c40a485e0fc55012dc9f, type: 3} diff --git a/Assets/VRM10/Samples~/VRM10Viewer/Assets/TinyPbr.shadergraph b/Assets/VRM10/Samples~/VRM10Viewer/Assets/TinyPbr.shadergraph deleted file mode 100644 index 2e494f4fe..000000000 --- a/Assets/VRM10/Samples~/VRM10Viewer/Assets/TinyPbr.shadergraph +++ /dev/null @@ -1,975 +0,0 @@ -{ - "m_SGVersion": 3, - "m_Type": "UnityEditor.ShaderGraph.GraphData", - "m_ObjectId": "77181a4b19324ebdb175da71cf4f6186", - "m_Properties": [ - { - "m_Id": "92f5ab11614c4ec1b4d632f73041ba65" - } - ], - "m_Keywords": [], - "m_Dropdowns": [], - "m_CategoryData": [ - { - "m_Id": "0778abfa54c94f9abfd0482e1de4d602" - } - ], - "m_Nodes": [ - { - "m_Id": "f56f676a56e04566a12f41980b760358" - }, - { - "m_Id": "307a94d3f1ca45a39f6170433e3c81c6" - }, - { - "m_Id": "7b57df1b4e444208bd41b7b749f485d0" - }, - { - "m_Id": "80fce1dbcef04945aa9b988609dbe324" - }, - { - "m_Id": "6f683c2eb23a4baf8dc028500640b75a" - }, - { - "m_Id": "6098dc7f36d84b83b8421cc0e56ed1a0" - }, - { - "m_Id": "53f1bc01113946bc946f0808f16df02b" - }, - { - "m_Id": "0f64718141f34878916463ec72c9d2d8" - }, - { - "m_Id": "58ee8fea72cc4a649f9a1198b12d621b" - }, - { - "m_Id": "6637a91f035a40e798e76f70bed17d7e" - }, - { - "m_Id": "305a571d629e4b258d80c3ad877cb596" - } - ], - "m_GroupDatas": [], - "m_StickyNoteDatas": [], - "m_Edges": [ - { - "m_OutputSlot": { - "m_Node": { - "m_Id": "305a571d629e4b258d80c3ad877cb596" - }, - "m_SlotId": 0 - }, - "m_InputSlot": { - "m_Node": { - "m_Id": "6637a91f035a40e798e76f70bed17d7e" - }, - "m_SlotId": 1 - } - }, - { - "m_OutputSlot": { - "m_Node": { - "m_Id": "6637a91f035a40e798e76f70bed17d7e" - }, - "m_SlotId": 0 - }, - "m_InputSlot": { - "m_Node": { - "m_Id": "80fce1dbcef04945aa9b988609dbe324" - }, - "m_SlotId": 0 - } - } - ], - "m_VertexContext": { - "m_Position": { - "x": 0.0, - "y": 0.0 - }, - "m_Blocks": [ - { - "m_Id": "f56f676a56e04566a12f41980b760358" - }, - { - "m_Id": "307a94d3f1ca45a39f6170433e3c81c6" - }, - { - "m_Id": "7b57df1b4e444208bd41b7b749f485d0" - } - ] - }, - "m_FragmentContext": { - "m_Position": { - "x": 0.0, - "y": 200.0 - }, - "m_Blocks": [ - { - "m_Id": "80fce1dbcef04945aa9b988609dbe324" - }, - { - "m_Id": "6f683c2eb23a4baf8dc028500640b75a" - }, - { - "m_Id": "6098dc7f36d84b83b8421cc0e56ed1a0" - }, - { - "m_Id": "53f1bc01113946bc946f0808f16df02b" - }, - { - "m_Id": "0f64718141f34878916463ec72c9d2d8" - }, - { - "m_Id": "58ee8fea72cc4a649f9a1198b12d621b" - } - ] - }, - "m_PreviewData": { - "serializedMesh": { - "m_SerializedMesh": "{\"mesh\":{\"instanceID\":0}}", - "m_Guid": "" - }, - "preventRotation": false - }, - "m_Path": "Shader Graphs", - "m_GraphPrecision": 1, - "m_PreviewMode": 2, - "m_OutputNode": { - "m_Id": "" - }, - "m_SubDatas": [], - "m_ActiveTargets": [ - { - "m_Id": "15cb78699c8c4194ad103421699dbd17" - } - ] -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", - "m_ObjectId": "02acc5a4d1de49f087b1a9268cf423ed", - "m_Id": 0, - "m_DisplayName": "RGBA", - "m_SlotType": 1, - "m_Hidden": false, - "m_ShaderOutputName": "RGBA", - "m_StageCapability": 2, - "m_Value": { - "x": 0.0, - "y": 0.0, - "z": 0.0, - "w": 0.0 - }, - "m_DefaultValue": { - "x": 0.0, - "y": 0.0, - "z": 0.0, - "w": 0.0 - }, - "m_Labels": [] -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.CategoryData", - "m_ObjectId": "0778abfa54c94f9abfd0482e1de4d602", - "m_Name": "", - "m_ChildObjectList": [ - { - "m_Id": "92f5ab11614c4ec1b4d632f73041ba65" - } - ] -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.BlockNode", - "m_ObjectId": "0f64718141f34878916463ec72c9d2d8", - "m_Group": { - "m_Id": "" - }, - "m_Name": "SurfaceDescription.Emission", - "m_DrawState": { - "m_Expanded": true, - "m_Position": { - "serializedVersion": "2", - "x": 0.0, - "y": 0.0, - "width": 0.0, - "height": 0.0 - } - }, - "m_Slots": [ - { - "m_Id": "a8a3476bbfe8465fbf208d8592d231a3" - } - ], - "synonyms": [], - "m_Precision": 0, - "m_PreviewExpanded": true, - "m_DismissedVersion": 0, - "m_PreviewMode": 0, - "m_CustomColors": { - "m_SerializableColors": [] - }, - "m_SerializedDescriptor": "SurfaceDescription.Emission" -} - -{ - "m_SGVersion": 1, - "m_Type": "UnityEditor.Rendering.Universal.ShaderGraph.UniversalTarget", - "m_ObjectId": "15cb78699c8c4194ad103421699dbd17", - "m_Datas": [], - "m_ActiveSubTarget": { - "m_Id": "352f1953e12a45019330c49643812248" - }, - "m_AllowMaterialOverride": false, - "m_SurfaceType": 0, - "m_ZTestMode": 4, - "m_ZWriteControl": 0, - "m_AlphaMode": 0, - "m_RenderFace": 2, - "m_AlphaClip": false, - "m_CastShadows": true, - "m_ReceiveShadows": true, - "m_SupportsLODCrossFade": false, - "m_CustomEditorGUI": "", - "m_SupportVFX": false -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", - "m_ObjectId": "1773542df3cf4760b4bc7081934f54ca", - "m_Id": 0, - "m_DisplayName": "Smoothness", - "m_SlotType": 0, - "m_Hidden": false, - "m_ShaderOutputName": "Smoothness", - "m_StageCapability": 2, - "m_Value": 0.5, - "m_DefaultValue": 0.5, - "m_Labels": [] -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", - "m_ObjectId": "1b504994184f46fb86fd313496af2752", - "m_Id": 0, - "m_DisplayName": "Ambient Occlusion", - "m_SlotType": 0, - "m_Hidden": false, - "m_ShaderOutputName": "Occlusion", - "m_StageCapability": 2, - "m_Value": 1.0, - "m_DefaultValue": 1.0, - "m_Labels": [] -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.TangentMaterialSlot", - "m_ObjectId": "1c1aa306b109406fae4e7ad7412fdb14", - "m_Id": 0, - "m_DisplayName": "Tangent", - "m_SlotType": 0, - "m_Hidden": false, - "m_ShaderOutputName": "Tangent", - "m_StageCapability": 1, - "m_Value": { - "x": 0.0, - "y": 0.0, - "z": 0.0 - }, - "m_DefaultValue": { - "x": 0.0, - "y": 0.0, - "z": 0.0 - }, - "m_Labels": [], - "m_Space": 0 -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.NormalMaterialSlot", - "m_ObjectId": "204b111e465b44809369f1d3e5a90370", - "m_Id": 0, - "m_DisplayName": "Normal (Tangent Space)", - "m_SlotType": 0, - "m_Hidden": false, - "m_ShaderOutputName": "NormalTS", - "m_StageCapability": 2, - "m_Value": { - "x": 0.0, - "y": 0.0, - "z": 0.0 - }, - "m_DefaultValue": { - "x": 0.0, - "y": 0.0, - "z": 0.0 - }, - "m_Labels": [], - "m_Space": 3 -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.SamplerStateMaterialSlot", - "m_ObjectId": "2b57ee1b447443b39131b7d7ca5656c4", - "m_Id": 3, - "m_DisplayName": "Sampler", - "m_SlotType": 0, - "m_Hidden": false, - "m_ShaderOutputName": "Sampler", - "m_StageCapability": 3, - "m_BareResource": false -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.PropertyNode", - "m_ObjectId": "305a571d629e4b258d80c3ad877cb596", - "m_Group": { - "m_Id": "" - }, - "m_Name": "Property", - "m_DrawState": { - "m_Expanded": true, - "m_Position": { - "serializedVersion": "2", - "x": -482.6666564941406, - "y": 233.3333282470703, - "width": 140.0, - "height": 35.99998474121094 - } - }, - "m_Slots": [ - { - "m_Id": "46fb52b8b307424ab27250d54f2c27f9" - } - ], - "synonyms": [], - "m_Precision": 0, - "m_PreviewExpanded": true, - "m_DismissedVersion": 0, - "m_PreviewMode": 0, - "m_CustomColors": { - "m_SerializableColors": [] - }, - "m_Property": { - "m_Id": "92f5ab11614c4ec1b4d632f73041ba65" - } -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.BlockNode", - "m_ObjectId": "307a94d3f1ca45a39f6170433e3c81c6", - "m_Group": { - "m_Id": "" - }, - "m_Name": "VertexDescription.Normal", - "m_DrawState": { - "m_Expanded": true, - "m_Position": { - "serializedVersion": "2", - "x": 0.0, - "y": 0.0, - "width": 0.0, - "height": 0.0 - } - }, - "m_Slots": [ - { - "m_Id": "e1de0ca351fd43ff866485e33328e300" - } - ], - "synonyms": [], - "m_Precision": 0, - "m_PreviewExpanded": true, - "m_DismissedVersion": 0, - "m_PreviewMode": 0, - "m_CustomColors": { - "m_SerializableColors": [] - }, - "m_SerializedDescriptor": "VertexDescription.Normal" -} - -{ - "m_SGVersion": 2, - "m_Type": "UnityEditor.Rendering.Universal.ShaderGraph.UniversalLitSubTarget", - "m_ObjectId": "352f1953e12a45019330c49643812248", - "m_WorkflowMode": 1, - "m_NormalDropOffSpace": 0, - "m_ClearCoat": false, - "m_BlendModePreserveSpecular": true -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", - "m_ObjectId": "408c7be450e8421abf78f79621f38a90", - "m_Id": 6, - "m_DisplayName": "B", - "m_SlotType": 1, - "m_Hidden": false, - "m_ShaderOutputName": "B", - "m_StageCapability": 2, - "m_Value": 0.0, - "m_DefaultValue": 0.0, - "m_Labels": [] -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Texture2DMaterialSlot", - "m_ObjectId": "46fb52b8b307424ab27250d54f2c27f9", - "m_Id": 0, - "m_DisplayName": "BaseMap", - "m_SlotType": 1, - "m_Hidden": false, - "m_ShaderOutputName": "Out", - "m_StageCapability": 3, - "m_BareResource": false -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.UVMaterialSlot", - "m_ObjectId": "4c1d0e69fdc7482b9e9587c61e9aee52", - "m_Id": 2, - "m_DisplayName": "UV", - "m_SlotType": 0, - "m_Hidden": false, - "m_ShaderOutputName": "UV", - "m_StageCapability": 3, - "m_Value": { - "x": 0.0, - "y": 0.0 - }, - "m_DefaultValue": { - "x": 0.0, - "y": 0.0 - }, - "m_Labels": [], - "m_Channel": 0 -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.BlockNode", - "m_ObjectId": "53f1bc01113946bc946f0808f16df02b", - "m_Group": { - "m_Id": "" - }, - "m_Name": "SurfaceDescription.Smoothness", - "m_DrawState": { - "m_Expanded": true, - "m_Position": { - "serializedVersion": "2", - "x": 0.0, - "y": 0.0, - "width": 0.0, - "height": 0.0 - } - }, - "m_Slots": [ - { - "m_Id": "1773542df3cf4760b4bc7081934f54ca" - } - ], - "synonyms": [], - "m_Precision": 0, - "m_PreviewExpanded": true, - "m_DismissedVersion": 0, - "m_PreviewMode": 0, - "m_CustomColors": { - "m_SerializableColors": [] - }, - "m_SerializedDescriptor": "SurfaceDescription.Smoothness" -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.BlockNode", - "m_ObjectId": "58ee8fea72cc4a649f9a1198b12d621b", - "m_Group": { - "m_Id": "" - }, - "m_Name": "SurfaceDescription.Occlusion", - "m_DrawState": { - "m_Expanded": true, - "m_Position": { - "serializedVersion": "2", - "x": 0.0, - "y": 0.0, - "width": 0.0, - "height": 0.0 - } - }, - "m_Slots": [ - { - "m_Id": "1b504994184f46fb86fd313496af2752" - } - ], - "synonyms": [], - "m_Precision": 0, - "m_PreviewExpanded": true, - "m_DismissedVersion": 0, - "m_PreviewMode": 0, - "m_CustomColors": { - "m_SerializableColors": [] - }, - "m_SerializedDescriptor": "SurfaceDescription.Occlusion" -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.BlockNode", - "m_ObjectId": "6098dc7f36d84b83b8421cc0e56ed1a0", - "m_Group": { - "m_Id": "" - }, - "m_Name": "SurfaceDescription.Metallic", - "m_DrawState": { - "m_Expanded": true, - "m_Position": { - "serializedVersion": "2", - "x": 0.0, - "y": 0.0, - "width": 0.0, - "height": 0.0 - } - }, - "m_Slots": [ - { - "m_Id": "cd2a46a6fe0746ae965dc193ce0757eb" - } - ], - "synonyms": [], - "m_Precision": 0, - "m_PreviewExpanded": true, - "m_DismissedVersion": 0, - "m_PreviewMode": 0, - "m_CustomColors": { - "m_SerializableColors": [] - }, - "m_SerializedDescriptor": "SurfaceDescription.Metallic" -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.PositionMaterialSlot", - "m_ObjectId": "619a91e5d75d4a629f14de895dbebb39", - "m_Id": 0, - "m_DisplayName": "Position", - "m_SlotType": 0, - "m_Hidden": false, - "m_ShaderOutputName": "Position", - "m_StageCapability": 1, - "m_Value": { - "x": 0.0, - "y": 0.0, - "z": 0.0 - }, - "m_DefaultValue": { - "x": 0.0, - "y": 0.0, - "z": 0.0 - }, - "m_Labels": [], - "m_Space": 0 -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.SampleTexture2DNode", - "m_ObjectId": "6637a91f035a40e798e76f70bed17d7e", - "m_Group": { - "m_Id": "" - }, - "m_Name": "Sample Texture 2D", - "m_DrawState": { - "m_Expanded": true, - "m_Position": { - "serializedVersion": "2", - "x": -322.0, - "y": 200.0, - "width": 209.3333282470703, - "height": 438.6666259765625 - } - }, - "m_Slots": [ - { - "m_Id": "02acc5a4d1de49f087b1a9268cf423ed" - }, - { - "m_Id": "8057542115c941488ee696e0d023e9d8" - }, - { - "m_Id": "c47fe1183b3b44d1ad66a998fde085f5" - }, - { - "m_Id": "408c7be450e8421abf78f79621f38a90" - }, - { - "m_Id": "70bb30a82355421ca010103090de0f4a" - }, - { - "m_Id": "7aa32b9c5fc74c8088ac31ed5fc87f50" - }, - { - "m_Id": "4c1d0e69fdc7482b9e9587c61e9aee52" - }, - { - "m_Id": "2b57ee1b447443b39131b7d7ca5656c4" - } - ], - "synonyms": [ - "tex2d" - ], - "m_Precision": 0, - "m_PreviewExpanded": true, - "m_DismissedVersion": 0, - "m_PreviewMode": 0, - "m_CustomColors": { - "m_SerializableColors": [] - }, - "m_TextureType": 0, - "m_NormalMapSpace": 0, - "m_EnableGlobalMipBias": true, - "m_MipSamplingMode": 0 -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.BlockNode", - "m_ObjectId": "6f683c2eb23a4baf8dc028500640b75a", - "m_Group": { - "m_Id": "" - }, - "m_Name": "SurfaceDescription.NormalTS", - "m_DrawState": { - "m_Expanded": true, - "m_Position": { - "serializedVersion": "2", - "x": 0.0, - "y": 0.0, - "width": 0.0, - "height": 0.0 - } - }, - "m_Slots": [ - { - "m_Id": "204b111e465b44809369f1d3e5a90370" - } - ], - "synonyms": [], - "m_Precision": 0, - "m_PreviewExpanded": true, - "m_DismissedVersion": 0, - "m_PreviewMode": 0, - "m_CustomColors": { - "m_SerializableColors": [] - }, - "m_SerializedDescriptor": "SurfaceDescription.NormalTS" -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", - "m_ObjectId": "70bb30a82355421ca010103090de0f4a", - "m_Id": 7, - "m_DisplayName": "A", - "m_SlotType": 1, - "m_Hidden": false, - "m_ShaderOutputName": "A", - "m_StageCapability": 2, - "m_Value": 0.0, - "m_DefaultValue": 0.0, - "m_Labels": [] -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.ColorRGBMaterialSlot", - "m_ObjectId": "7454a78d02bb4f79b6ff0f81f6b795a0", - "m_Id": 0, - "m_DisplayName": "Base Color", - "m_SlotType": 0, - "m_Hidden": false, - "m_ShaderOutputName": "BaseColor", - "m_StageCapability": 2, - "m_Value": { - "x": 0.5, - "y": 0.5, - "z": 0.5 - }, - "m_DefaultValue": { - "x": 0.0, - "y": 0.0, - "z": 0.0 - }, - "m_Labels": [], - "m_ColorMode": 0, - "m_DefaultColor": { - "r": 0.5, - "g": 0.5, - "b": 0.5, - "a": 1.0 - } -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", - "m_ObjectId": "7aa32b9c5fc74c8088ac31ed5fc87f50", - "m_Id": 1, - "m_DisplayName": "Texture", - "m_SlotType": 0, - "m_Hidden": false, - "m_ShaderOutputName": "Texture", - "m_StageCapability": 3, - "m_BareResource": false, - "m_Texture": { - "m_SerializedTexture": "", - "m_Guid": "" - }, - "m_DefaultType": 0 -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.BlockNode", - "m_ObjectId": "7b57df1b4e444208bd41b7b749f485d0", - "m_Group": { - "m_Id": "" - }, - "m_Name": "VertexDescription.Tangent", - "m_DrawState": { - "m_Expanded": true, - "m_Position": { - "serializedVersion": "2", - "x": 0.0, - "y": 0.0, - "width": 0.0, - "height": 0.0 - } - }, - "m_Slots": [ - { - "m_Id": "1c1aa306b109406fae4e7ad7412fdb14" - } - ], - "synonyms": [], - "m_Precision": 0, - "m_PreviewExpanded": true, - "m_DismissedVersion": 0, - "m_PreviewMode": 0, - "m_CustomColors": { - "m_SerializableColors": [] - }, - "m_SerializedDescriptor": "VertexDescription.Tangent" -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", - "m_ObjectId": "8057542115c941488ee696e0d023e9d8", - "m_Id": 4, - "m_DisplayName": "R", - "m_SlotType": 1, - "m_Hidden": false, - "m_ShaderOutputName": "R", - "m_StageCapability": 2, - "m_Value": 0.0, - "m_DefaultValue": 0.0, - "m_Labels": [] -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.BlockNode", - "m_ObjectId": "80fce1dbcef04945aa9b988609dbe324", - "m_Group": { - "m_Id": "" - }, - "m_Name": "SurfaceDescription.BaseColor", - "m_DrawState": { - "m_Expanded": true, - "m_Position": { - "serializedVersion": "2", - "x": 0.0, - "y": 0.0, - "width": 0.0, - "height": 0.0 - } - }, - "m_Slots": [ - { - "m_Id": "7454a78d02bb4f79b6ff0f81f6b795a0" - } - ], - "synonyms": [], - "m_Precision": 0, - "m_PreviewExpanded": true, - "m_DismissedVersion": 0, - "m_PreviewMode": 0, - "m_CustomColors": { - "m_SerializableColors": [] - }, - "m_SerializedDescriptor": "SurfaceDescription.BaseColor" -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Internal.Texture2DShaderProperty", - "m_ObjectId": "92f5ab11614c4ec1b4d632f73041ba65", - "m_Guid": { - "m_GuidSerialized": "df5eef53-f7a6-40ef-8fca-1fd91f86d83f" - }, - "m_Name": "BaseMap", - "m_DefaultRefNameVersion": 1, - "m_RefNameGeneratedByDisplayName": "BaseMap", - "m_DefaultReferenceName": "_BaseMap", - "m_OverrideReferenceName": "", - "m_GeneratePropertyBlock": true, - "m_UseCustomSlotLabel": false, - "m_CustomSlotLabel": "", - "m_DismissedVersion": 0, - "m_Precision": 0, - "overrideHLSLDeclaration": false, - "hlslDeclarationOverride": 0, - "m_Hidden": false, - "m_Value": { - "m_SerializedTexture": "", - "m_Guid": "" - }, - "isMainTexture": true, - "useTilingAndOffset": true, - "m_Modifiable": true, - "m_DefaultType": 0 -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.ColorRGBMaterialSlot", - "m_ObjectId": "a8a3476bbfe8465fbf208d8592d231a3", - "m_Id": 0, - "m_DisplayName": "Emission", - "m_SlotType": 0, - "m_Hidden": false, - "m_ShaderOutputName": "Emission", - "m_StageCapability": 2, - "m_Value": { - "x": 0.0, - "y": 0.0, - "z": 0.0 - }, - "m_DefaultValue": { - "x": 0.0, - "y": 0.0, - "z": 0.0 - }, - "m_Labels": [], - "m_ColorMode": 1, - "m_DefaultColor": { - "r": 0.0, - "g": 0.0, - "b": 0.0, - "a": 1.0 - } -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", - "m_ObjectId": "c47fe1183b3b44d1ad66a998fde085f5", - "m_Id": 5, - "m_DisplayName": "G", - "m_SlotType": 1, - "m_Hidden": false, - "m_ShaderOutputName": "G", - "m_StageCapability": 2, - "m_Value": 0.0, - "m_DefaultValue": 0.0, - "m_Labels": [] -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", - "m_ObjectId": "cd2a46a6fe0746ae965dc193ce0757eb", - "m_Id": 0, - "m_DisplayName": "Metallic", - "m_SlotType": 0, - "m_Hidden": false, - "m_ShaderOutputName": "Metallic", - "m_StageCapability": 2, - "m_Value": 0.0, - "m_DefaultValue": 0.0, - "m_Labels": [] -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.NormalMaterialSlot", - "m_ObjectId": "e1de0ca351fd43ff866485e33328e300", - "m_Id": 0, - "m_DisplayName": "Normal", - "m_SlotType": 0, - "m_Hidden": false, - "m_ShaderOutputName": "Normal", - "m_StageCapability": 1, - "m_Value": { - "x": 0.0, - "y": 0.0, - "z": 0.0 - }, - "m_DefaultValue": { - "x": 0.0, - "y": 0.0, - "z": 0.0 - }, - "m_Labels": [], - "m_Space": 0 -} - -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.BlockNode", - "m_ObjectId": "f56f676a56e04566a12f41980b760358", - "m_Group": { - "m_Id": "" - }, - "m_Name": "VertexDescription.Position", - "m_DrawState": { - "m_Expanded": true, - "m_Position": { - "serializedVersion": "2", - "x": 0.0, - "y": 0.0, - "width": 0.0, - "height": 0.0 - } - }, - "m_Slots": [ - { - "m_Id": "619a91e5d75d4a629f14de895dbebb39" - } - ], - "synonyms": [], - "m_Precision": 0, - "m_PreviewExpanded": true, - "m_DismissedVersion": 0, - "m_PreviewMode": 0, - "m_CustomColors": { - "m_SerializableColors": [] - }, - "m_SerializedDescriptor": "VertexDescription.Position" -} - diff --git a/Assets/VRM10/Samples~/VRM10Viewer/Assets/TinyPbrAlphaBlend.shadergraph b/Assets/VRM10/Samples~/VRM10Viewer/Assets/TinyPbrAlphaBlend.shadergraph new file mode 100644 index 000000000..f25a42259 --- /dev/null +++ b/Assets/VRM10/Samples~/VRM10Viewer/Assets/TinyPbrAlphaBlend.shadergraph @@ -0,0 +1,2402 @@ +{ + "m_SGVersion": 3, + "m_Type": "UnityEditor.ShaderGraph.GraphData", + "m_ObjectId": "77181a4b19324ebdb175da71cf4f6186", + "m_Properties": [ + { + "m_Id": "92f5ab11614c4ec1b4d632f73041ba65" + }, + { + "m_Id": "dea047da4cb0442bac26d6f468ba8f66" + }, + { + "m_Id": "653228a387f647d5a5e1fa4da9b5f6d7" + }, + { + "m_Id": "6b344f9254d2438b8ad07e5eef11db71" + }, + { + "m_Id": "c4ff105a2181464aaee7d5b6146a2c9b" + }, + { + "m_Id": "2859cb147a7742fca0dbb5256243d468" + }, + { + "m_Id": "fd4b1637b32c44d79eea652e4b5626b2" + }, + { + "m_Id": "f8ac3f450f1a4d849926601ace10a04f" + }, + { + "m_Id": "d77500f24b3f490daf8cc2f5dcd19f60" + }, + { + "m_Id": "9e699a1f35ed460f9274b370e7e01749" + }, + { + "m_Id": "2138b6eae95a4a249265714cefb1795f" + } + ], + "m_Keywords": [], + "m_Dropdowns": [], + "m_CategoryData": [ + { + "m_Id": "0778abfa54c94f9abfd0482e1de4d602" + } + ], + "m_Nodes": [ + { + "m_Id": "f56f676a56e04566a12f41980b760358" + }, + { + "m_Id": "307a94d3f1ca45a39f6170433e3c81c6" + }, + { + "m_Id": "7b57df1b4e444208bd41b7b749f485d0" + }, + { + "m_Id": "80fce1dbcef04945aa9b988609dbe324" + }, + { + "m_Id": "6f683c2eb23a4baf8dc028500640b75a" + }, + { + "m_Id": "6098dc7f36d84b83b8421cc0e56ed1a0" + }, + { + "m_Id": "53f1bc01113946bc946f0808f16df02b" + }, + { + "m_Id": "0f64718141f34878916463ec72c9d2d8" + }, + { + "m_Id": "58ee8fea72cc4a649f9a1198b12d621b" + }, + { + "m_Id": "305a571d629e4b258d80c3ad877cb596" + }, + { + "m_Id": "0b94be19d37c4268b363243bac818ac4" + }, + { + "m_Id": "3be41b6b511d440c94c29229f4a7bdc2" + }, + { + "m_Id": "19964d5b976e467eb1b4a7f544bf3fef" + }, + { + "m_Id": "b08614dabfc6474ebee92e0b18d28d4b" + }, + { + "m_Id": "a60bd914ad7646698bb7f9c25f78f88d" + }, + { + "m_Id": "73efafc771664c7b8a4e4b9e58a6e868" + }, + { + "m_Id": "b83e5bff780742a79344a87ff879965a" + }, + { + "m_Id": "609f313b8b6f4ee8a871650dc611dc0c" + }, + { + "m_Id": "94fe3f50fd0c4ce3a036c672b2d71557" + }, + { + "m_Id": "f36558b3ef9547e295ba8c189a69b79a" + }, + { + "m_Id": "13c40b9504d247499cd3ce8a57badab2" + }, + { + "m_Id": "c4b5803e8c2f4d65ab4f294fe361adc1" + } + ], + "m_GroupDatas": [], + "m_StickyNoteDatas": [], + "m_Edges": [ + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "0b94be19d37c4268b363243bac818ac4" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "c4b5803e8c2f4d65ab4f294fe361adc1" + }, + "m_SlotId": -1946006235 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "19964d5b976e467eb1b4a7f544bf3fef" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "c4b5803e8c2f4d65ab4f294fe361adc1" + }, + "m_SlotId": 2124990166 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "305a571d629e4b258d80c3ad877cb596" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "c4b5803e8c2f4d65ab4f294fe361adc1" + }, + "m_SlotId": 725867842 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "3be41b6b511d440c94c29229f4a7bdc2" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "c4b5803e8c2f4d65ab4f294fe361adc1" + }, + "m_SlotId": 1886474450 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "609f313b8b6f4ee8a871650dc611dc0c" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "c4b5803e8c2f4d65ab4f294fe361adc1" + }, + "m_SlotId": -1417122351 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "73efafc771664c7b8a4e4b9e58a6e868" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "c4b5803e8c2f4d65ab4f294fe361adc1" + }, + "m_SlotId": 1450746048 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "94fe3f50fd0c4ce3a036c672b2d71557" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "c4b5803e8c2f4d65ab4f294fe361adc1" + }, + "m_SlotId": 31906282 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "a60bd914ad7646698bb7f9c25f78f88d" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "c4b5803e8c2f4d65ab4f294fe361adc1" + }, + "m_SlotId": 1238374258 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "b08614dabfc6474ebee92e0b18d28d4b" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "c4b5803e8c2f4d65ab4f294fe361adc1" + }, + "m_SlotId": -1762040067 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "b83e5bff780742a79344a87ff879965a" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "c4b5803e8c2f4d65ab4f294fe361adc1" + }, + "m_SlotId": -5762650 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "c4b5803e8c2f4d65ab4f294fe361adc1" + }, + "m_SlotId": 1 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "80fce1dbcef04945aa9b988609dbe324" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "c4b5803e8c2f4d65ab4f294fe361adc1" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "13c40b9504d247499cd3ce8a57badab2" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "c4b5803e8c2f4d65ab4f294fe361adc1" + }, + "m_SlotId": 3 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "58ee8fea72cc4a649f9a1198b12d621b" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "c4b5803e8c2f4d65ab4f294fe361adc1" + }, + "m_SlotId": 4 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "53f1bc01113946bc946f0808f16df02b" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "c4b5803e8c2f4d65ab4f294fe361adc1" + }, + "m_SlotId": 5 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "6098dc7f36d84b83b8421cc0e56ed1a0" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "c4b5803e8c2f4d65ab4f294fe361adc1" + }, + "m_SlotId": 6 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "6f683c2eb23a4baf8dc028500640b75a" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "c4b5803e8c2f4d65ab4f294fe361adc1" + }, + "m_SlotId": 7 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "0f64718141f34878916463ec72c9d2d8" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "f36558b3ef9547e295ba8c189a69b79a" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "c4b5803e8c2f4d65ab4f294fe361adc1" + }, + "m_SlotId": -1532749908 + } + } + ], + "m_VertexContext": { + "m_Position": { + "x": -0.0000019073486328125, + "y": 0.0000025854387786239387 + }, + "m_Blocks": [ + { + "m_Id": "f56f676a56e04566a12f41980b760358" + }, + { + "m_Id": "307a94d3f1ca45a39f6170433e3c81c6" + }, + { + "m_Id": "7b57df1b4e444208bd41b7b749f485d0" + } + ] + }, + "m_FragmentContext": { + "m_Position": { + "x": 0.000029290516977198422, + "y": 198.0 + }, + "m_Blocks": [ + { + "m_Id": "80fce1dbcef04945aa9b988609dbe324" + }, + { + "m_Id": "13c40b9504d247499cd3ce8a57badab2" + }, + { + "m_Id": "58ee8fea72cc4a649f9a1198b12d621b" + }, + { + "m_Id": "53f1bc01113946bc946f0808f16df02b" + }, + { + "m_Id": "6098dc7f36d84b83b8421cc0e56ed1a0" + }, + { + "m_Id": "6f683c2eb23a4baf8dc028500640b75a" + }, + { + "m_Id": "0f64718141f34878916463ec72c9d2d8" + } + ] + }, + "m_PreviewData": { + "serializedMesh": { + "m_SerializedMesh": "{\"mesh\":{\"instanceID\":0}}", + "m_Guid": "" + }, + "preventRotation": false + }, + "m_Path": "Shader Graphs", + "m_GraphPrecision": 1, + "m_PreviewMode": 2, + "m_OutputNode": { + "m_Id": "" + }, + "m_SubDatas": [], + "m_ActiveTargets": [ + { + "m_Id": "15cb78699c8c4194ad103421699dbd17" + } + ] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DMaterialSlot", + "m_ObjectId": "064aae75fadd4a0b942d21348da5dd81", + "m_Id": 0, + "m_DisplayName": "BumpMap", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_BareResource": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.CategoryData", + "m_ObjectId": "0778abfa54c94f9abfd0482e1de4d602", + "m_Name": "", + "m_ChildObjectList": [ + { + "m_Id": "92f5ab11614c4ec1b4d632f73041ba65" + }, + { + "m_Id": "dea047da4cb0442bac26d6f468ba8f66" + }, + { + "m_Id": "653228a387f647d5a5e1fa4da9b5f6d7" + }, + { + "m_Id": "6b344f9254d2438b8ad07e5eef11db71" + }, + { + "m_Id": "2859cb147a7742fca0dbb5256243d468" + }, + { + "m_Id": "fd4b1637b32c44d79eea652e4b5626b2" + }, + { + "m_Id": "c4ff105a2181464aaee7d5b6146a2c9b" + }, + { + "m_Id": "f8ac3f450f1a4d849926601ace10a04f" + }, + { + "m_Id": "d77500f24b3f490daf8cc2f5dcd19f60" + }, + { + "m_Id": "9e699a1f35ed460f9274b370e7e01749" + }, + { + "m_Id": "2138b6eae95a4a249265714cefb1795f" + } + ] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "0b94be19d37c4268b363243bac818ac4", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -780.0000610351563, + "y": 222.66671752929688, + "width": 132.00006103515626, + "height": 36.000030517578128 + } + }, + "m_Slots": [ + { + "m_Id": "ef0016b4d1214fc5b0766f3f8883eaca" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "dea047da4cb0442bac26d6f468ba8f66" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "0c6c8839346e4e1085ec68e62b8860e6", + "m_Id": -5762650, + "m_DisplayName": "NormalStrength", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "_NormalStrength", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "0ed4fbfbef64412cb58364eefca5123d", + "m_Id": 0, + "m_DisplayName": "Metallic", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "0f64718141f34878916463ec72c9d2d8", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.Emission", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 0.0, + "y": 0.0, + "width": 0.0, + "height": 0.0 + } + }, + "m_Slots": [ + { + "m_Id": "a8a3476bbfe8465fbf208d8592d231a3" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.Emission" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "1249bfae131843f0b0f42b05e5cae7f4", + "m_Id": 5, + "m_DisplayName": "Metallic", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Metallic", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "13c40b9504d247499cd3ce8a57badab2", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.Alpha", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 36.66667175292969, + "y": 270.6667175292969, + "width": 200.0, + "height": 42.666656494140628 + } + }, + "m_Slots": [ + { + "m_Id": "c79e0b8d88444f8d919d1715bead490b" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.Alpha" +} + +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.Rendering.Universal.ShaderGraph.UniversalTarget", + "m_ObjectId": "15cb78699c8c4194ad103421699dbd17", + "m_Datas": [], + "m_ActiveSubTarget": { + "m_Id": "352f1953e12a45019330c49643812248" + }, + "m_AllowMaterialOverride": false, + "m_SurfaceType": 1, + "m_ZTestMode": 4, + "m_ZWriteControl": 0, + "m_AlphaMode": 0, + "m_RenderFace": 2, + "m_AlphaClip": false, + "m_CastShadows": true, + "m_ReceiveShadows": true, + "m_SupportsLODCrossFade": false, + "m_CustomEditorGUI": "", + "m_SupportVFX": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "1773542df3cf4760b4bc7081934f54ca", + "m_Id": 0, + "m_DisplayName": "Smoothness", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Smoothness", + "m_StageCapability": 2, + "m_Value": 0.5, + "m_DefaultValue": 0.5, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "17df52ae8460420e81e7503b6d00aaa2", + "m_Id": 3, + "m_DisplayName": "AmbientOcclusion", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "AmbientOcclusion", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", + "m_ObjectId": "18600c0e0b684bd2bde9f99a280013f2", + "m_Id": 7, + "m_DisplayName": "Emission", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Emission", + "m_StageCapability": 2, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "19964d5b976e467eb1b4a7f544bf3fef", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -780.0, + "y": 330.666748046875, + "width": 159.33331298828126, + "height": 36.0 + } + }, + "m_Slots": [ + { + "m_Id": "6aef7829a5044fd4a7f91e8641f0f647" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "6b344f9254d2438b8ad07e5eef11db71" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "1b504994184f46fb86fd313496af2752", + "m_Id": 0, + "m_DisplayName": "Ambient Occlusion", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Occlusion", + "m_StageCapability": 2, + "m_Value": 1.0, + "m_DefaultValue": 1.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.TangentMaterialSlot", + "m_ObjectId": "1c1aa306b109406fae4e7ad7412fdb14", + "m_Id": 0, + "m_DisplayName": "Tangent", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Tangent", + "m_StageCapability": 1, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_Space": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.NormalMaterialSlot", + "m_ObjectId": "204b111e465b44809369f1d3e5a90370", + "m_Id": 0, + "m_DisplayName": "Normal (Tangent Space)", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "NormalTS", + "m_StageCapability": 2, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_Space": 3 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Internal.Texture2DShaderProperty", + "m_ObjectId": "2138b6eae95a4a249265714cefb1795f", + "m_Guid": { + "m_GuidSerialized": "38fb1136-db3c-4ff9-b392-107a99d04afb" + }, + "m_Name": "EmissionMap", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "EmissionMap", + "m_DefaultReferenceName": "_EmissionMap", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": { + "m_SerializedTexture": "{\"texture\":{\"fileID\":2800000,\"guid\":\"09e6225be3a2a43489e11a41cb198377\",\"type\":3}}", + "m_Guid": "" + }, + "isMainTexture": false, + "useTilingAndOffset": true, + "m_Modifiable": true, + "m_DefaultType": 4 +} + +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty", + "m_ObjectId": "2859cb147a7742fca0dbb5256243d468", + "m_Guid": { + "m_GuidSerialized": "a6fd3729-c8ec-4297-8e95-c4d2117333eb" + }, + "m_Name": "Roughness", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "Roughness", + "m_DefaultReferenceName": "_Roughness", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": 0.0, + "m_FloatType": 0, + "m_RangeValues": { + "x": 0.0, + "y": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", + "m_ObjectId": "2a90f4f9ee894c98a389095389f44c3e", + "m_Id": 2124990166, + "m_DisplayName": "OcclusionMap", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "_OcclusionMap", + "m_StageCapability": 2, + "m_BareResource": false, + "m_Texture": { + "m_SerializedTexture": "", + "m_Guid": "" + }, + "m_DefaultType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "305a571d629e4b258d80c3ad877cb596", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -780.0000610351563, + "y": 258.666748046875, + "width": 133.33331298828126, + "height": 35.999908447265628 + } + }, + "m_Slots": [ + { + "m_Id": "46fb52b8b307424ab27250d54f2c27f9" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "92f5ab11614c4ec1b4d632f73041ba65" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "307a94d3f1ca45a39f6170433e3c81c6", + "m_Group": { + "m_Id": "" + }, + "m_Name": "VertexDescription.Normal", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 0.0, + "y": 0.0, + "width": 0.0, + "height": 0.0 + } + }, + "m_Slots": [ + { + "m_Id": "e1de0ca351fd43ff866485e33328e300" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "VertexDescription.Normal" +} + +{ + "m_SGVersion": 2, + "m_Type": "UnityEditor.Rendering.Universal.ShaderGraph.UniversalLitSubTarget", + "m_ObjectId": "352f1953e12a45019330c49643812248", + "m_WorkflowMode": 1, + "m_NormalDropOffSpace": 0, + "m_ClearCoat": false, + "m_BlendModePreserveSpecular": true +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "3be41b6b511d440c94c29229f4a7bdc2", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -780.0, + "y": 294.6667175292969, + "width": 172.66668701171876, + "height": 36.000030517578128 + } + }, + "m_Slots": [ + { + "m_Id": "a9fa65ff74114c879317162bdb85c658" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "653228a387f647d5a5e1fa4da9b5f6d7" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", + "m_ObjectId": "3dbad67e2e2146c8b1a68582b756c2c7", + "m_Id": -1417122351, + "m_DisplayName": "NormalMap", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "_NormalMap", + "m_StageCapability": 2, + "m_BareResource": false, + "m_Texture": { + "m_SerializedTexture": "", + "m_Guid": "" + }, + "m_DefaultType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DMaterialSlot", + "m_ObjectId": "435d79c5527e4cd8935ce1a874f4ad05", + "m_Id": 0, + "m_DisplayName": "MetallicRoughnessMap", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_BareResource": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "436e0382b6434d229544f494444c062c", + "m_Id": 1886474450, + "m_DisplayName": "OcclusionStrength", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "_OcclusionStrength", + "m_StageCapability": 2, + "m_Value": 1.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DMaterialSlot", + "m_ObjectId": "46fb52b8b307424ab27250d54f2c27f9", + "m_Id": 0, + "m_DisplayName": "BaseMap", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_BareResource": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", + "m_ObjectId": "4c6ee0f59e3d4afab086ea6501f69c3a", + "m_Id": 725867842, + "m_DisplayName": "BaseMap", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "_BaseMap", + "m_StageCapability": 2, + "m_BareResource": false, + "m_Texture": { + "m_SerializedTexture": "", + "m_Guid": "" + }, + "m_DefaultType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "53f1bc01113946bc946f0808f16df02b", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.Smoothness", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 10.000014305114746, + "y": 317.3333435058594, + "width": 199.9999542236328, + "height": 42.666656494140628 + } + }, + "m_Slots": [ + { + "m_Id": "1773542df3cf4760b4bc7081934f54ca" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.Smoothness" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "58ee8fea72cc4a649f9a1198b12d621b", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.Occlusion", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 15.999993324279786, + "y": 262.0000305175781, + "width": 199.99993896484376, + "height": 42.66668701171875 + } + }, + "m_Slots": [ + { + "m_Id": "1b504994184f46fb86fd313496af2752" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.Occlusion" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", + "m_ObjectId": "5a21e8144c104bb8bfc4dcee87683f45", + "m_Id": -1762040067, + "m_DisplayName": "MetallicRoughnessMap", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "_MetallicRoughnessMap", + "m_StageCapability": 2, + "m_BareResource": false, + "m_Texture": { + "m_SerializedTexture": "{\"texture\":{\"fileID\":2800000,\"guid\":\"909670d47b2f55d4a991788acca59d7e\",\"type\":3}}", + "m_Guid": "" + }, + "m_DefaultType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "5a8cf66e7bd645ebab1cdabae75c9000", + "m_Id": 4, + "m_DisplayName": "Smoothness", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Smoothness", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "5b7f2676365f43f9a78c68c81e6d2225", + "m_Id": 31906282, + "m_DisplayName": "EmissionColor", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "_EmissionColor", + "m_StageCapability": 2, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", + "m_ObjectId": "5cf79a3cb2d74435a5819c596b48662e", + "m_Id": 6, + "m_DisplayName": "Normal", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Normal", + "m_StageCapability": 2, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "5dc2f5aa641347b2aeb52a9767a433ce", + "m_Id": 0, + "m_DisplayName": "EmissionColor", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "6098dc7f36d84b83b8421cc0e56ed1a0", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.Metallic", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 10.000083923339844, + "y": 268.0, + "width": 199.99993896484376, + "height": 42.66668701171875 + } + }, + "m_Slots": [ + { + "m_Id": "cd2a46a6fe0746ae965dc193ce0757eb" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.Metallic" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "609f313b8b6f4ee8a871650dc611dc0c", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -780.0, + "y": 474.6666564941406, + "width": 138.0, + "height": 36.0 + } + }, + "m_Slots": [ + { + "m_Id": "064aae75fadd4a0b942d21348da5dd81" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "d77500f24b3f490daf8cc2f5dcd19f60" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PositionMaterialSlot", + "m_ObjectId": "619a91e5d75d4a629f14de895dbebb39", + "m_Id": 0, + "m_DisplayName": "Position", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Position", + "m_StageCapability": 1, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_Space": 0 +} + +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty", + "m_ObjectId": "653228a387f647d5a5e1fa4da9b5f6d7", + "m_Guid": { + "m_GuidSerialized": "2403dd65-ec64-45a0-a766-875dd5bcd6d8" + }, + "m_Name": "OcclusionStrength", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "OcclusionStrength", + "m_DefaultReferenceName": "_OcclusionStrength", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": 1.0, + "m_FloatType": 0, + "m_RangeValues": { + "x": 0.0, + "y": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DMaterialSlot", + "m_ObjectId": "6aef7829a5044fd4a7f91e8641f0f647", + "m_Id": 0, + "m_DisplayName": "OcclusionMap", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_BareResource": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Internal.Texture2DShaderProperty", + "m_ObjectId": "6b344f9254d2438b8ad07e5eef11db71", + "m_Guid": { + "m_GuidSerialized": "2056943e-f283-4125-862c-dd5321f1cdd2" + }, + "m_Name": "OcclusionMap", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "OcclusionMap", + "m_DefaultReferenceName": "_OcclusionMap", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": { + "m_SerializedTexture": "{\"texture\":{\"fileID\":2800000,\"guid\":\"51ce5cf2de6d788449c2fdd4b8488a92\",\"type\":3}}", + "m_Guid": "" + }, + "isMainTexture": false, + "useTilingAndOffset": true, + "m_Modifiable": true, + "m_DefaultType": 4 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "6f683c2eb23a4baf8dc028500640b75a", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.NormalTS", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 0.0, + "y": 0.0, + "width": 0.0, + "height": 0.0 + } + }, + "m_Slots": [ + { + "m_Id": "204b111e465b44809369f1d3e5a90370" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.NormalTS" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "71549300d32e489db50ca24dfdc33b8d", + "m_Id": 1450746048, + "m_DisplayName": "Metallic", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "_Metallic", + "m_StageCapability": 2, + "m_Value": 1.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DMaterialSlot", + "m_ObjectId": "72164721f8af40cba28e44f84a0f4fd5", + "m_Id": 0, + "m_DisplayName": "EmissionMap", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_BareResource": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "73efafc771664c7b8a4e4b9e58a6e868", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -779.3333129882813, + "y": 402.66668701171877, + "width": 117.33331298828125, + "height": 36.0 + } + }, + "m_Slots": [ + { + "m_Id": "0ed4fbfbef64412cb58364eefca5123d" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "fd4b1637b32c44d79eea652e4b5626b2" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.ColorRGBMaterialSlot", + "m_ObjectId": "7454a78d02bb4f79b6ff0f81f6b795a0", + "m_Id": 0, + "m_DisplayName": "Base Color", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "BaseColor", + "m_StageCapability": 2, + "m_Value": { + "x": 0.5, + "y": 0.5, + "z": 0.5 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_ColorMode": 0, + "m_DefaultColor": { + "r": 0.5, + "g": 0.5, + "b": 0.5, + "a": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "7b57df1b4e444208bd41b7b749f485d0", + "m_Group": { + "m_Id": "" + }, + "m_Name": "VertexDescription.Tangent", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 0.0, + "y": 0.0, + "width": 0.0, + "height": 0.0 + } + }, + "m_Slots": [ + { + "m_Id": "1c1aa306b109406fae4e7ad7412fdb14" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "VertexDescription.Tangent" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "80fce1dbcef04945aa9b988609dbe324", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.BaseColor", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 0.0, + "y": 0.0, + "width": 0.0, + "height": 0.0 + } + }, + "m_Slots": [ + { + "m_Id": "7454a78d02bb4f79b6ff0f81f6b795a0" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.BaseColor" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "86409fdb77e447f19dcf968176770f7f", + "m_Id": 0, + "m_DisplayName": "Roughness", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", + "m_ObjectId": "8a942b1b0a9e4072aaa6ea9cf8bf4730", + "m_Id": -1532749908, + "m_DisplayName": "EmissionMap", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "_EmissionMap", + "m_StageCapability": 2, + "m_BareResource": false, + "m_Texture": { + "m_SerializedTexture": "{\"texture\":{\"fileID\":2800000,\"guid\":\"09e6225be3a2a43489e11a41cb198377\",\"type\":3}}", + "m_Guid": "" + }, + "m_DefaultType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Internal.Texture2DShaderProperty", + "m_ObjectId": "92f5ab11614c4ec1b4d632f73041ba65", + "m_Guid": { + "m_GuidSerialized": "df5eef53-f7a6-40ef-8fca-1fd91f86d83f" + }, + "m_Name": "BaseMap", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "BaseMap", + "m_DefaultReferenceName": "_BaseMap", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": { + "m_SerializedTexture": "{\"texture\":{\"fileID\":2800000,\"guid\":\"3ab316f1cf207684abb754d9a2731c66\",\"type\":3}}", + "m_Guid": "" + }, + "isMainTexture": true, + "useTilingAndOffset": true, + "m_Modifiable": true, + "m_DefaultType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "94fe3f50fd0c4ce3a036c672b2d71557", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -780.0, + "y": 546.6666259765625, + "width": 152.66668701171876, + "height": 36.0 + } + }, + "m_Slots": [ + { + "m_Id": "5dc2f5aa641347b2aeb52a9767a433ce" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "9e699a1f35ed460f9274b370e7e01749" + } +} + +{ + "m_SGVersion": 3, + "m_Type": "UnityEditor.ShaderGraph.Internal.ColorShaderProperty", + "m_ObjectId": "9e699a1f35ed460f9274b370e7e01749", + "m_Guid": { + "m_GuidSerialized": "9962908c-bb06-4540-874e-237cdf21a29e" + }, + "m_Name": "EmissionColor", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "EmissionColor", + "m_DefaultReferenceName": "_EmissionColor", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": { + "r": 0.0, + "g": 0.0, + "b": 0.0, + "a": 0.0 + }, + "isMainColor": false, + "m_ColorMode": 1 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "a564ed2bd0874547a8828688af508894", + "m_Id": -1946006235, + "m_DisplayName": "BaseColor", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "_BaseColor", + "m_StageCapability": 2, + "m_Value": { + "x": 1.0, + "y": 1.0, + "z": 1.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "a60bd914ad7646698bb7f9c25f78f88d", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -779.3333129882813, + "y": 366.66668701171877, + "width": 134.0, + "height": 36.0 + } + }, + "m_Slots": [ + { + "m_Id": "86409fdb77e447f19dcf968176770f7f" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "2859cb147a7742fca0dbb5256243d468" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.ColorRGBMaterialSlot", + "m_ObjectId": "a8a3476bbfe8465fbf208d8592d231a3", + "m_Id": 0, + "m_DisplayName": "Emission", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Emission", + "m_StageCapability": 2, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_ColorMode": 1, + "m_DefaultColor": { + "r": 0.0, + "g": 0.0, + "b": 0.0, + "a": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "a9fa65ff74114c879317162bdb85c658", + "m_Id": 0, + "m_DisplayName": "OcclusionStrength", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "b08614dabfc6474ebee92e0b18d28d4b", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -779.3333129882813, + "y": 438.66668701171877, + "width": 206.0, + "height": 35.999969482421878 + } + }, + "m_Slots": [ + { + "m_Id": "435d79c5527e4cd8935ce1a874f4ad05" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "c4ff105a2181464aaee7d5b6146a2c9b" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "b83e5bff780742a79344a87ff879965a", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -779.3333129882813, + "y": 510.6666564941406, + "width": 134.6666259765625, + "height": 35.999969482421878 + } + }, + "m_Slots": [ + { + "m_Id": "e7d2ed98f9964f4aa647d47a4707f549" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "f8ac3f450f1a4d849926601ace10a04f" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SubGraphNode", + "m_ObjectId": "c4b5803e8c2f4d65ab4f294fe361adc1", + "m_Group": { + "m_Id": "" + }, + "m_Name": "TinyPbr", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -393.33331298828127, + "y": 198.00001525878907, + "width": 302.6667175292969, + "height": 521.333251953125 + } + }, + "m_Slots": [ + { + "m_Id": "a564ed2bd0874547a8828688af508894" + }, + { + "m_Id": "4c6ee0f59e3d4afab086ea6501f69c3a" + }, + { + "m_Id": "436e0382b6434d229544f494444c062c" + }, + { + "m_Id": "2a90f4f9ee894c98a389095389f44c3e" + }, + { + "m_Id": "e043d33275ff4d788159fbf72c08a661" + }, + { + "m_Id": "71549300d32e489db50ca24dfdc33b8d" + }, + { + "m_Id": "5a21e8144c104bb8bfc4dcee87683f45" + }, + { + "m_Id": "3dbad67e2e2146c8b1a68582b756c2c7" + }, + { + "m_Id": "0c6c8839346e4e1085ec68e62b8860e6" + }, + { + "m_Id": "5b7f2676365f43f9a78c68c81e6d2225" + }, + { + "m_Id": "8a942b1b0a9e4072aaa6ea9cf8bf4730" + }, + { + "m_Id": "f2093c0d46b3489f85b385fd8422f230" + }, + { + "m_Id": "e758d7cb528f4d5d9fefce8c56e0630d" + }, + { + "m_Id": "17df52ae8460420e81e7503b6d00aaa2" + }, + { + "m_Id": "5a8cf66e7bd645ebab1cdabae75c9000" + }, + { + "m_Id": "1249bfae131843f0b0f42b05e5cae7f4" + }, + { + "m_Id": "5cf79a3cb2d74435a5819c596b48662e" + }, + { + "m_Id": "18600c0e0b684bd2bde9f99a280013f2" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedSubGraph": "{\n \"subGraph\": {\n \"fileID\": -5475051401550479605,\n \"guid\": \"2fe3270edce96f4438a6dcc501a8c5cd\",\n \"type\": 3\n }\n}", + "m_PropertyGuids": [ + "b78d6b8b-b348-4425-8b4e-41096ddbeb76", + "13da451d-5e09-4040-8b64-ceb8dda217c0", + "7158af0f-43b5-4192-8219-b5dceaa50e9c", + "3c367e55-9fb2-480b-bea6-22ae8f81b7a4", + "f752957a-ec1a-4574-8fac-9b1b9dc26de0", + "973fb1a8-0148-4447-9bfe-a520bbeea5a5", + "bc3d4243-09da-46a4-9dc6-0c47f9eb6c2b", + "faa5e58d-2520-4f65-9d9f-7fd1e13237cf", + "d703b665-c68c-4723-b0fe-9322ff9f1b4d", + "bf455d07-d15f-40c3-96b7-f94d24e299b3", + "d9244f52-772a-4de5-aeb8-8d877a97e8b7" + ], + "m_PropertyIds": [ + -1946006235, + 725867842, + 1886474450, + 2124990166, + 1238374258, + 1450746048, + -1762040067, + -1417122351, + -5762650, + 31906282, + -1532749908 + ], + "m_Dropdowns": [], + "m_DropdownSelectedEntries": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Internal.Texture2DShaderProperty", + "m_ObjectId": "c4ff105a2181464aaee7d5b6146a2c9b", + "m_Guid": { + "m_GuidSerialized": "77edee86-bd02-4114-a7f5-247e9ba9cf42" + }, + "m_Name": "MetallicRoughnessMap", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "MetallicRoughnessMap", + "m_DefaultReferenceName": "_MetallicRoughnessMap", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": { + "m_SerializedTexture": "{\"texture\":{\"fileID\":2800000,\"guid\":\"909670d47b2f55d4a991788acca59d7e\",\"type\":3}}", + "m_Guid": "" + }, + "isMainTexture": false, + "useTilingAndOffset": true, + "m_Modifiable": true, + "m_DefaultType": 4 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "c79e0b8d88444f8d919d1715bead490b", + "m_Id": 0, + "m_DisplayName": "Alpha", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Alpha", + "m_StageCapability": 2, + "m_Value": 1.0, + "m_DefaultValue": 1.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "cd2a46a6fe0746ae965dc193ce0757eb", + "m_Id": 0, + "m_DisplayName": "Metallic", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Metallic", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Internal.Texture2DShaderProperty", + "m_ObjectId": "d77500f24b3f490daf8cc2f5dcd19f60", + "m_Guid": { + "m_GuidSerialized": "96cd3240-b1e2-4ec9-816f-b4be029dbeb6" + }, + "m_Name": "BumpMap", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "BumpMap", + "m_DefaultReferenceName": "_BumpMap", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": { + "m_SerializedTexture": "", + "m_Guid": "" + }, + "isMainTexture": false, + "useTilingAndOffset": false, + "m_Modifiable": true, + "m_DefaultType": 3 +} + +{ + "m_SGVersion": 3, + "m_Type": "UnityEditor.ShaderGraph.Internal.ColorShaderProperty", + "m_ObjectId": "dea047da4cb0442bac26d6f468ba8f66", + "m_Guid": { + "m_GuidSerialized": "b6ef105a-c541-4441-9f6c-3ac20a1e813c" + }, + "m_Name": "BaseColor", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "BaseColor", + "m_DefaultReferenceName": "_BaseColor", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": { + "r": 1.0, + "g": 1.0, + "b": 1.0, + "a": 0.0 + }, + "isMainColor": false, + "m_ColorMode": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "e043d33275ff4d788159fbf72c08a661", + "m_Id": 1238374258, + "m_DisplayName": "Roughness", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "_Roughness", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.NormalMaterialSlot", + "m_ObjectId": "e1de0ca351fd43ff866485e33328e300", + "m_Id": 0, + "m_DisplayName": "Normal", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Normal", + "m_StageCapability": 1, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_Space": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "e758d7cb528f4d5d9fefce8c56e0630d", + "m_Id": 2, + "m_DisplayName": "Alpha", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Alpha", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "e7d2ed98f9964f4aa647d47a4707f549", + "m_Id": 0, + "m_DisplayName": "BumpScale", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "ef0016b4d1214fc5b0766f3f8883eaca", + "m_Id": 0, + "m_DisplayName": "BaseColor", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", + "m_ObjectId": "f2093c0d46b3489f85b385fd8422f230", + "m_Id": 1, + "m_DisplayName": "BaseColor", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "BaseColor", + "m_StageCapability": 2, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "f36558b3ef9547e295ba8c189a69b79a", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -779.3333129882813, + "y": 582.6666259765625, + "width": 154.0, + "height": 35.99993896484375 + } + }, + "m_Slots": [ + { + "m_Id": "72164721f8af40cba28e44f84a0f4fd5" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "2138b6eae95a4a249265714cefb1795f" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "f56f676a56e04566a12f41980b760358", + "m_Group": { + "m_Id": "" + }, + "m_Name": "VertexDescription.Position", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 0.0, + "y": 0.0, + "width": 0.0, + "height": 0.0 + } + }, + "m_Slots": [ + { + "m_Id": "619a91e5d75d4a629f14de895dbebb39" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "VertexDescription.Position" +} + +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty", + "m_ObjectId": "f8ac3f450f1a4d849926601ace10a04f", + "m_Guid": { + "m_GuidSerialized": "8bb96dec-3d73-4fb0-8e69-db74dee7110e" + }, + "m_Name": "BumpScale", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "BumpScale", + "m_DefaultReferenceName": "_BumpScale", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": 0.0, + "m_FloatType": 0, + "m_RangeValues": { + "x": 0.0, + "y": 1.0 + } +} + +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty", + "m_ObjectId": "fd4b1637b32c44d79eea652e4b5626b2", + "m_Guid": { + "m_GuidSerialized": "95cdef22-fc8b-49da-9fe2-98bab1d5658c" + }, + "m_Name": "Metallic", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "Metallic", + "m_DefaultReferenceName": "_Metallic", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": 1.0, + "m_FloatType": 0, + "m_RangeValues": { + "x": 0.0, + "y": 1.0 + } +} + diff --git a/Assets/VRM10/Samples~/VRM10Viewer/Assets/TinyPbrAlphaBlend.shadergraph.meta b/Assets/VRM10/Samples~/VRM10Viewer/Assets/TinyPbrAlphaBlend.shadergraph.meta new file mode 100644 index 000000000..a1060023f --- /dev/null +++ b/Assets/VRM10/Samples~/VRM10Viewer/Assets/TinyPbrAlphaBlend.shadergraph.meta @@ -0,0 +1,10 @@ +fileFormatVersion: 2 +guid: 868190a58757d6242bb3ca456402f82f +ScriptedImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 2 + userData: + assetBundleName: + assetBundleVariant: + script: {fileID: 11500000, guid: 625f186215c104763be7675aa2d941aa, type: 3} diff --git a/Assets/VRM10/Samples~/VRM10Viewer/Assets/TinyPbrOpaque.shadergraph b/Assets/VRM10/Samples~/VRM10Viewer/Assets/TinyPbrOpaque.shadergraph new file mode 100644 index 000000000..a4bf22ab9 --- /dev/null +++ b/Assets/VRM10/Samples~/VRM10Viewer/Assets/TinyPbrOpaque.shadergraph @@ -0,0 +1,2814 @@ +{ + "m_SGVersion": 3, + "m_Type": "UnityEditor.ShaderGraph.GraphData", + "m_ObjectId": "77181a4b19324ebdb175da71cf4f6186", + "m_Properties": [ + { + "m_Id": "92f5ab11614c4ec1b4d632f73041ba65" + }, + { + "m_Id": "dea047da4cb0442bac26d6f468ba8f66" + }, + { + "m_Id": "653228a387f647d5a5e1fa4da9b5f6d7" + }, + { + "m_Id": "6b344f9254d2438b8ad07e5eef11db71" + }, + { + "m_Id": "c4ff105a2181464aaee7d5b6146a2c9b" + }, + { + "m_Id": "2859cb147a7742fca0dbb5256243d468" + }, + { + "m_Id": "fd4b1637b32c44d79eea652e4b5626b2" + }, + { + "m_Id": "f8ac3f450f1a4d849926601ace10a04f" + }, + { + "m_Id": "d77500f24b3f490daf8cc2f5dcd19f60" + }, + { + "m_Id": "9e699a1f35ed460f9274b370e7e01749" + }, + { + "m_Id": "2138b6eae95a4a249265714cefb1795f" + }, + { + "m_Id": "ef1c5fb59a8d4550ab9c739f843edaa0" + }, + { + "m_Id": "fb6c28211dec4e1bb1a36cbd93aff5e3" + } + ], + "m_Keywords": [], + "m_Dropdowns": [], + "m_CategoryData": [ + { + "m_Id": "0778abfa54c94f9abfd0482e1de4d602" + } + ], + "m_Nodes": [ + { + "m_Id": "f56f676a56e04566a12f41980b760358" + }, + { + "m_Id": "307a94d3f1ca45a39f6170433e3c81c6" + }, + { + "m_Id": "7b57df1b4e444208bd41b7b749f485d0" + }, + { + "m_Id": "80fce1dbcef04945aa9b988609dbe324" + }, + { + "m_Id": "6f683c2eb23a4baf8dc028500640b75a" + }, + { + "m_Id": "6098dc7f36d84b83b8421cc0e56ed1a0" + }, + { + "m_Id": "53f1bc01113946bc946f0808f16df02b" + }, + { + "m_Id": "0f64718141f34878916463ec72c9d2d8" + }, + { + "m_Id": "58ee8fea72cc4a649f9a1198b12d621b" + }, + { + "m_Id": "305a571d629e4b258d80c3ad877cb596" + }, + { + "m_Id": "0b94be19d37c4268b363243bac818ac4" + }, + { + "m_Id": "307a96558a0a40ada3c66e2e38e269ca" + }, + { + "m_Id": "b81ee26f89a540ea946cb683ac7de047" + }, + { + "m_Id": "67d23f92ffe24661a1bdf746af189547" + }, + { + "m_Id": "a2cf70a9a7fe4202893a8b40f35571f9" + }, + { + "m_Id": "855308f399fb4f71bc6584937719e851" + }, + { + "m_Id": "1e162640c7ea4f02a44faef8732559e8" + }, + { + "m_Id": "d5f8db7848d34ac4bc2e47bc9700b02a" + }, + { + "m_Id": "33606465eada4266a951965cdf693f21" + }, + { + "m_Id": "50fe60e87d4f472498833c46009df4a8" + }, + { + "m_Id": "eec810392601496bbf30d0e04d1c9e5a" + }, + { + "m_Id": "5e4f7e8b13d74b199e4ff6492563b050" + }, + { + "m_Id": "4744eaae41cb4d9f811203331937ee9f" + }, + { + "m_Id": "7b8e47a4830c4b53bedc6975dad31b72" + }, + { + "m_Id": "fa61ad0af8f743998cdb12dfea31d6a6" + }, + { + "m_Id": "48e90b86f7234c9d9a0ad4e07784efa2" + } + ], + "m_GroupDatas": [], + "m_StickyNoteDatas": [], + "m_Edges": [ + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "0b94be19d37c4268b363243bac818ac4" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "1e162640c7ea4f02a44faef8732559e8" + }, + "m_SlotId": -1946006235 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "1e162640c7ea4f02a44faef8732559e8" + }, + "m_SlotId": 1 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "80fce1dbcef04945aa9b988609dbe324" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "1e162640c7ea4f02a44faef8732559e8" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "307a96558a0a40ada3c66e2e38e269ca" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "1e162640c7ea4f02a44faef8732559e8" + }, + "m_SlotId": 3 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "58ee8fea72cc4a649f9a1198b12d621b" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "1e162640c7ea4f02a44faef8732559e8" + }, + "m_SlotId": 4 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "53f1bc01113946bc946f0808f16df02b" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "1e162640c7ea4f02a44faef8732559e8" + }, + "m_SlotId": 5 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "6098dc7f36d84b83b8421cc0e56ed1a0" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "1e162640c7ea4f02a44faef8732559e8" + }, + "m_SlotId": 6 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "6f683c2eb23a4baf8dc028500640b75a" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "1e162640c7ea4f02a44faef8732559e8" + }, + "m_SlotId": 7 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "0f64718141f34878916463ec72c9d2d8" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "305a571d629e4b258d80c3ad877cb596" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "1e162640c7ea4f02a44faef8732559e8" + }, + "m_SlotId": 725867842 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "33606465eada4266a951965cdf693f21" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "1e162640c7ea4f02a44faef8732559e8" + }, + "m_SlotId": 2124990166 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "4744eaae41cb4d9f811203331937ee9f" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "1e162640c7ea4f02a44faef8732559e8" + }, + "m_SlotId": -1417122351 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "48e90b86f7234c9d9a0ad4e07784efa2" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "1e162640c7ea4f02a44faef8732559e8" + }, + "m_SlotId": -5762650 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "50fe60e87d4f472498833c46009df4a8" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "1e162640c7ea4f02a44faef8732559e8" + }, + "m_SlotId": 1238374258 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "5e4f7e8b13d74b199e4ff6492563b050" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "1e162640c7ea4f02a44faef8732559e8" + }, + "m_SlotId": -1762040067 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "67d23f92ffe24661a1bdf746af189547" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "a2cf70a9a7fe4202893a8b40f35571f9" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "7b8e47a4830c4b53bedc6975dad31b72" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "1e162640c7ea4f02a44faef8732559e8" + }, + "m_SlotId": 31906282 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "855308f399fb4f71bc6584937719e851" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "a2cf70a9a7fe4202893a8b40f35571f9" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "a2cf70a9a7fe4202893a8b40f35571f9" + }, + "m_SlotId": 3 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "b81ee26f89a540ea946cb683ac7de047" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "d5f8db7848d34ac4bc2e47bc9700b02a" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "1e162640c7ea4f02a44faef8732559e8" + }, + "m_SlotId": 1886474450 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "eec810392601496bbf30d0e04d1c9e5a" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "1e162640c7ea4f02a44faef8732559e8" + }, + "m_SlotId": 1450746048 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "fa61ad0af8f743998cdb12dfea31d6a6" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "1e162640c7ea4f02a44faef8732559e8" + }, + "m_SlotId": -1532749908 + } + } + ], + "m_VertexContext": { + "m_Position": { + "x": 354.0, + "y": 8.666659355163575 + }, + "m_Blocks": [ + { + "m_Id": "f56f676a56e04566a12f41980b760358" + }, + { + "m_Id": "307a94d3f1ca45a39f6170433e3c81c6" + }, + { + "m_Id": "7b57df1b4e444208bd41b7b749f485d0" + } + ] + }, + "m_FragmentContext": { + "m_Position": { + "x": 354.0, + "y": 257.9999694824219 + }, + "m_Blocks": [ + { + "m_Id": "b81ee26f89a540ea946cb683ac7de047" + }, + { + "m_Id": "80fce1dbcef04945aa9b988609dbe324" + }, + { + "m_Id": "307a96558a0a40ada3c66e2e38e269ca" + }, + { + "m_Id": "58ee8fea72cc4a649f9a1198b12d621b" + }, + { + "m_Id": "53f1bc01113946bc946f0808f16df02b" + }, + { + "m_Id": "6098dc7f36d84b83b8421cc0e56ed1a0" + }, + { + "m_Id": "6f683c2eb23a4baf8dc028500640b75a" + }, + { + "m_Id": "0f64718141f34878916463ec72c9d2d8" + } + ] + }, + "m_PreviewData": { + "serializedMesh": { + "m_SerializedMesh": "{\"mesh\":{\"fileID\":10205,\"guid\":\"0000000000000000e000000000000000\",\"type\":0}}", + "m_Guid": "" + }, + "preventRotation": false + }, + "m_Path": "Shader Graphs", + "m_GraphPrecision": 1, + "m_PreviewMode": 2, + "m_OutputNode": { + "m_Id": "" + }, + "m_SubDatas": [], + "m_ActiveTargets": [ + { + "m_Id": "15cb78699c8c4194ad103421699dbd17" + } + ] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "01187177ae5b4d289136898d4db4856b", + "m_Id": 2, + "m_DisplayName": "False", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "False", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.CategoryData", + "m_ObjectId": "0778abfa54c94f9abfd0482e1de4d602", + "m_Name": "", + "m_ChildObjectList": [ + { + "m_Id": "92f5ab11614c4ec1b4d632f73041ba65" + }, + { + "m_Id": "dea047da4cb0442bac26d6f468ba8f66" + }, + { + "m_Id": "653228a387f647d5a5e1fa4da9b5f6d7" + }, + { + "m_Id": "6b344f9254d2438b8ad07e5eef11db71" + }, + { + "m_Id": "2859cb147a7742fca0dbb5256243d468" + }, + { + "m_Id": "fd4b1637b32c44d79eea652e4b5626b2" + }, + { + "m_Id": "c4ff105a2181464aaee7d5b6146a2c9b" + }, + { + "m_Id": "f8ac3f450f1a4d849926601ace10a04f" + }, + { + "m_Id": "d77500f24b3f490daf8cc2f5dcd19f60" + }, + { + "m_Id": "9e699a1f35ed460f9274b370e7e01749" + }, + { + "m_Id": "2138b6eae95a4a249265714cefb1795f" + }, + { + "m_Id": "ef1c5fb59a8d4550ab9c739f843edaa0" + }, + { + "m_Id": "fb6c28211dec4e1bb1a36cbd93aff5e3" + } + ] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", + "m_ObjectId": "08b242bb2b2f4ffcb2042d34967a36b8", + "m_Id": -1762040067, + "m_DisplayName": "MetallicRoughnessMap", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "_MetallicRoughnessMap", + "m_StageCapability": 2, + "m_BareResource": false, + "m_Texture": { + "m_SerializedTexture": "{\"texture\":{\"fileID\":2800000,\"guid\":\"909670d47b2f55d4a991788acca59d7e\",\"type\":3}}", + "m_Guid": "" + }, + "m_DefaultType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "0b94be19d37c4268b363243bac818ac4", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -323.3334045410156, + "y": 172.66665649414063, + "width": 132.0, + "height": 35.999969482421878 + } + }, + "m_Slots": [ + { + "m_Id": "ef0016b4d1214fc5b0766f3f8883eaca" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "dea047da4cb0442bac26d6f468ba8f66" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "0f64718141f34878916463ec72c9d2d8", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.Emission", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 0.0, + "y": 0.0, + "width": 0.0, + "height": 0.0 + } + }, + "m_Slots": [ + { + "m_Id": "a8a3476bbfe8465fbf208d8592d231a3" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.Emission" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "0f8d054d428d47e19814af5b84323ffa", + "m_Id": 31906282, + "m_DisplayName": "EmissionColor", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "_EmissionColor", + "m_StageCapability": 2, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "13a810e2e4804785b217f835e16a95ff", + "m_Id": 0, + "m_DisplayName": "Alpha Clip Threshold", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "AlphaClipThreshold", + "m_StageCapability": 2, + "m_Value": 0.5, + "m_DefaultValue": 0.5, + "m_Labels": [] +} + +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.Rendering.Universal.ShaderGraph.UniversalTarget", + "m_ObjectId": "15cb78699c8c4194ad103421699dbd17", + "m_Datas": [], + "m_ActiveSubTarget": { + "m_Id": "352f1953e12a45019330c49643812248" + }, + "m_AllowMaterialOverride": false, + "m_SurfaceType": 0, + "m_ZTestMode": 4, + "m_ZWriteControl": 0, + "m_AlphaMode": 0, + "m_RenderFace": 2, + "m_AlphaClip": true, + "m_CastShadows": true, + "m_ReceiveShadows": true, + "m_SupportsLODCrossFade": false, + "m_CustomEditorGUI": "", + "m_SupportVFX": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "1773542df3cf4760b4bc7081934f54ca", + "m_Id": 0, + "m_DisplayName": "Smoothness", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Smoothness", + "m_StageCapability": 2, + "m_Value": 0.5, + "m_DefaultValue": 0.5, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "1935b2a1770549a080000e8deec0939d", + "m_Id": 0, + "m_DisplayName": "Roughness", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "1b504994184f46fb86fd313496af2752", + "m_Id": 0, + "m_DisplayName": "Ambient Occlusion", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Occlusion", + "m_StageCapability": 2, + "m_Value": 1.0, + "m_DefaultValue": 1.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.TangentMaterialSlot", + "m_ObjectId": "1c1aa306b109406fae4e7ad7412fdb14", + "m_Id": 0, + "m_DisplayName": "Tangent", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Tangent", + "m_StageCapability": 1, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_Space": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SubGraphNode", + "m_ObjectId": "1e162640c7ea4f02a44faef8732559e8", + "m_Group": { + "m_Id": "" + }, + "m_Name": "TinyPbr_SubGraph", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -50.00000762939453, + "y": 297.3334045410156, + "width": 292.0000305175781, + "height": 409.3332824707031 + } + }, + "m_Slots": [ + { + "m_Id": "d7b531121e794d20a1b2a7fbd9afdf4a" + }, + { + "m_Id": "da75e0b3880e405db252692028d54133" + }, + { + "m_Id": "80b025084ed54b06aa97a6f12912eff4" + }, + { + "m_Id": "f386966343c340c09e357e87cdcb6d91" + }, + { + "m_Id": "d9d26bcc4b844de8a9829d0120c97dcc" + }, + { + "m_Id": "ab904d8e9a194cee907c4c74bf0ab578" + }, + { + "m_Id": "08b242bb2b2f4ffcb2042d34967a36b8" + }, + { + "m_Id": "b70145a57ccc47f0bb9c69ddf8e26053" + }, + { + "m_Id": "3004b1e374a54f93a007ab7022db066e" + }, + { + "m_Id": "0f8d054d428d47e19814af5b84323ffa" + }, + { + "m_Id": "b5ca1f74c7aa41b4b99ec4b0773468b3" + }, + { + "m_Id": "70ee281e77af4a489f02d89ed1798f11" + }, + { + "m_Id": "4cd3928f057d45a5b1912f1f935b83e5" + }, + { + "m_Id": "65649cd5eb074a92af05864785c51b23" + }, + { + "m_Id": "cd3eb81d2e8244c6a59f5595b2e9b0c4" + }, + { + "m_Id": "65305294bc914ebd9b2455c5305da06f" + }, + { + "m_Id": "9b04ce4253044d79ad4b2375d0f3a0d9" + }, + { + "m_Id": "f4283db3232c4a1090c5ab5091fa7d02" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedSubGraph": "{\n \"subGraph\": {\n \"fileID\": -5475051401550479605,\n \"guid\": \"2fe3270edce96f4438a6dcc501a8c5cd\",\n \"type\": 3\n }\n}", + "m_PropertyGuids": [ + "b78d6b8b-b348-4425-8b4e-41096ddbeb76", + "13da451d-5e09-4040-8b64-ceb8dda217c0", + "7158af0f-43b5-4192-8219-b5dceaa50e9c", + "3c367e55-9fb2-480b-bea6-22ae8f81b7a4", + "f752957a-ec1a-4574-8fac-9b1b9dc26de0", + "bc3d4243-09da-46a4-9dc6-0c47f9eb6c2b", + "973fb1a8-0148-4447-9bfe-a520bbeea5a5", + "faa5e58d-2520-4f65-9d9f-7fd1e13237cf", + "d703b665-c68c-4723-b0fe-9322ff9f1b4d", + "eaedd6f8-0d85-4057-9704-94aa269174ae", + "47dd6b72-f877-4c8e-a0b0-a02e997327ab", + "f3a7bfab-3bc9-430e-b636-98cb483f89b3", + "5fd0caa2-d412-4074-99b7-f59fd61b05d0", + "3c3d4418-e8be-4697-a63a-d9c5c41bec73", + "bf455d07-d15f-40c3-96b7-f94d24e299b3", + "d9244f52-772a-4de5-aeb8-8d877a97e8b7" + ], + "m_PropertyIds": [ + -1946006235, + 725867842, + 1886474450, + 2124990166, + 1238374258, + -1762040067, + 1450746048, + -1417122351, + -5762650, + -1369813300, + -1898688452, + -927429220, + 1347728127, + -861958716, + 31906282, + -1532749908 + ], + "m_Dropdowns": [], + "m_DropdownSelectedEntries": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DMaterialSlot", + "m_ObjectId": "1ee05d4b3f5a4a3e8f4e55068e747817", + "m_Id": 0, + "m_DisplayName": "MetallicRoughnessMap", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_BareResource": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.NormalMaterialSlot", + "m_ObjectId": "204b111e465b44809369f1d3e5a90370", + "m_Id": 0, + "m_DisplayName": "Normal (Tangent Space)", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "NormalTS", + "m_StageCapability": 2, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_Space": 3 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Internal.Texture2DShaderProperty", + "m_ObjectId": "2138b6eae95a4a249265714cefb1795f", + "m_Guid": { + "m_GuidSerialized": "38fb1136-db3c-4ff9-b392-107a99d04afb" + }, + "m_Name": "EmissionMap", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "EmissionMap", + "m_DefaultReferenceName": "_EmissionMap", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": { + "m_SerializedTexture": "{\"texture\":{\"fileID\":2800000,\"guid\":\"09e6225be3a2a43489e11a41cb198377\",\"type\":3}}", + "m_Guid": "" + }, + "isMainTexture": false, + "useTilingAndOffset": true, + "m_Modifiable": true, + "m_DefaultType": 4 +} + +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty", + "m_ObjectId": "2859cb147a7742fca0dbb5256243d468", + "m_Guid": { + "m_GuidSerialized": "a6fd3729-c8ec-4297-8e95-c4d2117333eb" + }, + "m_Name": "Roughness", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "Roughness", + "m_DefaultReferenceName": "_Roughness", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": 0.0, + "m_FloatType": 0, + "m_RangeValues": { + "x": 0.0, + "y": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BooleanMaterialSlot", + "m_ObjectId": "2d379c192d3048f19eef9dda9d4b8906", + "m_Id": 0, + "m_DisplayName": "Predicate", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Predicate", + "m_StageCapability": 3, + "m_Value": false, + "m_DefaultValue": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "2fef3aa40b9f478a82efab3210662993", + "m_Id": 0, + "m_DisplayName": "Cutoff", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "3004b1e374a54f93a007ab7022db066e", + "m_Id": -5762650, + "m_DisplayName": "NormalStrength", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "_NormalStrength", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "305a571d629e4b258d80c3ad877cb596", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -324.6666259765625, + "y": 208.66665649414063, + "width": 133.3333282470703, + "height": 36.00001525878906 + } + }, + "m_Slots": [ + { + "m_Id": "46fb52b8b307424ab27250d54f2c27f9" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "92f5ab11614c4ec1b4d632f73041ba65" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "307a94d3f1ca45a39f6170433e3c81c6", + "m_Group": { + "m_Id": "" + }, + "m_Name": "VertexDescription.Normal", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 0.0, + "y": 0.0, + "width": 0.0, + "height": 0.0 + } + }, + "m_Slots": [ + { + "m_Id": "e1de0ca351fd43ff866485e33328e300" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "VertexDescription.Normal" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "307a96558a0a40ada3c66e2e38e269ca", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.Alpha", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 13.999950408935547, + "y": 248.6666717529297, + "width": 200.00006103515626, + "height": 42.66664123535156 + } + }, + "m_Slots": [ + { + "m_Id": "72c7e7802e024978b702d83a9535194b" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.Alpha" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "33606465eada4266a951965cdf693f21", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -350.6667175292969, + "y": 280.6666564941406, + "width": 159.33331298828126, + "height": 36.000030517578128 + } + }, + "m_Slots": [ + { + "m_Id": "f4f063b4a8554eba9f0062104601584a" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "6b344f9254d2438b8ad07e5eef11db71" + } +} + +{ + "m_SGVersion": 2, + "m_Type": "UnityEditor.Rendering.Universal.ShaderGraph.UniversalLitSubTarget", + "m_ObjectId": "352f1953e12a45019330c49643812248", + "m_WorkflowMode": 1, + "m_NormalDropOffSpace": 0, + "m_ClearCoat": false, + "m_BlendModePreserveSpecular": true +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DMaterialSlot", + "m_ObjectId": "46fb52b8b307424ab27250d54f2c27f9", + "m_Id": 0, + "m_DisplayName": "BaseMap", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_BareResource": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "4744eaae41cb4d9f811203331937ee9f", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -329.3333435058594, + "y": 482.6666564941406, + "width": 138.00001525878907, + "height": 35.999969482421878 + } + }, + "m_Slots": [ + { + "m_Id": "a71711ebde2f4afd83e44b512800c723" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "d77500f24b3f490daf8cc2f5dcd19f60" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "48e90b86f7234c9d9a0ad4e07784efa2", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -323.3333740234375, + "y": 518.6666259765625, + "width": 134.66668701171876, + "height": 36.0 + } + }, + "m_Slots": [ + { + "m_Id": "ed92041349b441768aa1f485dae63d3c" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "f8ac3f450f1a4d849926601ace10a04f" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "4bb4dd9cda0142738e582fa935becbcb", + "m_Id": 0, + "m_DisplayName": "EmissionColor", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "4cd3928f057d45a5b1912f1f935b83e5", + "m_Id": 2, + "m_DisplayName": "Alpha", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Alpha", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "50fe60e87d4f472498833c46009df4a8", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -323.3333740234375, + "y": 374.66668701171877, + "width": 134.00001525878907, + "height": 36.000030517578128 + } + }, + "m_Slots": [ + { + "m_Id": "1935b2a1770549a080000e8deec0939d" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "2859cb147a7742fca0dbb5256243d468" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "53f1bc01113946bc946f0808f16df02b", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.Smoothness", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 10.000014305114746, + "y": 317.3333435058594, + "width": 199.9999542236328, + "height": 42.666656494140628 + } + }, + "m_Slots": [ + { + "m_Id": "1773542df3cf4760b4bc7081934f54ca" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.Smoothness" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "58ee8fea72cc4a649f9a1198b12d621b", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.Occlusion", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 15.999993324279786, + "y": 262.0000305175781, + "width": 199.99993896484376, + "height": 42.66668701171875 + } + }, + "m_Slots": [ + { + "m_Id": "1b504994184f46fb86fd313496af2752" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.Occlusion" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "5e4f7e8b13d74b199e4ff6492563b050", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -395.3333740234375, + "y": 446.6666564941406, + "width": 206.00001525878907, + "height": 36.000030517578128 + } + }, + "m_Slots": [ + { + "m_Id": "1ee05d4b3f5a4a3e8f4e55068e747817" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "c4ff105a2181464aaee7d5b6146a2c9b" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "6098dc7f36d84b83b8421cc0e56ed1a0", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.Metallic", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 10.000083923339844, + "y": 268.0, + "width": 199.99993896484376, + "height": 42.66668701171875 + } + }, + "m_Slots": [ + { + "m_Id": "cd2a46a6fe0746ae965dc193ce0757eb" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.Metallic" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PositionMaterialSlot", + "m_ObjectId": "619a91e5d75d4a629f14de895dbebb39", + "m_Id": 0, + "m_DisplayName": "Position", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Position", + "m_StageCapability": 1, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_Space": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "65305294bc914ebd9b2455c5305da06f", + "m_Id": 5, + "m_DisplayName": "Metallic", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Metallic", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty", + "m_ObjectId": "653228a387f647d5a5e1fa4da9b5f6d7", + "m_Guid": { + "m_GuidSerialized": "2403dd65-ec64-45a0-a766-875dd5bcd6d8" + }, + "m_Name": "OcclusionStrength", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "OcclusionStrength", + "m_DefaultReferenceName": "_OcclusionStrength", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": 1.0, + "m_FloatType": 0, + "m_RangeValues": { + "x": 0.0, + "y": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "65649cd5eb074a92af05864785c51b23", + "m_Id": 3, + "m_DisplayName": "AmbientOcclusion", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "AmbientOcclusion", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "67d23f92ffe24661a1bdf746af189547", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -111.33338165283203, + "y": 172.66664123535157, + "width": 109.33340454101563, + "height": 36.00001525878906 + } + }, + "m_Slots": [ + { + "m_Id": "2fef3aa40b9f478a82efab3210662993" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "fb6c28211dec4e1bb1a36cbd93aff5e3" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Internal.Texture2DShaderProperty", + "m_ObjectId": "6b344f9254d2438b8ad07e5eef11db71", + "m_Guid": { + "m_GuidSerialized": "2056943e-f283-4125-862c-dd5321f1cdd2" + }, + "m_Name": "OcclusionMap", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "OcclusionMap", + "m_DefaultReferenceName": "_OcclusionMap", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": { + "m_SerializedTexture": "{\"texture\":{\"fileID\":2800000,\"guid\":\"51ce5cf2de6d788449c2fdd4b8488a92\",\"type\":3}}", + "m_Guid": "" + }, + "isMainTexture": false, + "useTilingAndOffset": true, + "m_Modifiable": true, + "m_DefaultType": 4 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DMaterialSlot", + "m_ObjectId": "6e364da577ef41d8ac8f4f2ab56412b1", + "m_Id": 0, + "m_DisplayName": "EmissionMap", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_BareResource": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "6f683c2eb23a4baf8dc028500640b75a", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.NormalTS", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 372.0, + "y": 562.0, + "width": 200.0, + "height": 42.6666259765625 + } + }, + "m_Slots": [ + { + "m_Id": "204b111e465b44809369f1d3e5a90370" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.NormalTS" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", + "m_ObjectId": "70ee281e77af4a489f02d89ed1798f11", + "m_Id": 1, + "m_DisplayName": "BaseColor", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "BaseColor", + "m_StageCapability": 2, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "72c7e7802e024978b702d83a9535194b", + "m_Id": 0, + "m_DisplayName": "Alpha", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Alpha", + "m_StageCapability": 2, + "m_Value": 1.0, + "m_DefaultValue": 1.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.ColorRGBMaterialSlot", + "m_ObjectId": "7454a78d02bb4f79b6ff0f81f6b795a0", + "m_Id": 0, + "m_DisplayName": "Base Color", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "BaseColor", + "m_StageCapability": 2, + "m_Value": { + "x": 0.5, + "y": 0.5, + "z": 0.5 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_ColorMode": 0, + "m_DefaultColor": { + "r": 0.5, + "g": 0.5, + "b": 0.5, + "a": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "7b57df1b4e444208bd41b7b749f485d0", + "m_Group": { + "m_Id": "" + }, + "m_Name": "VertexDescription.Tangent", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 0.0, + "y": 0.0, + "width": 0.0, + "height": 0.0 + } + }, + "m_Slots": [ + { + "m_Id": "1c1aa306b109406fae4e7ad7412fdb14" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "VertexDescription.Tangent" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "7b8e47a4830c4b53bedc6975dad31b72", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -344.0000305175781, + "y": 554.6666259765625, + "width": 152.6667022705078, + "height": 36.00006103515625 + } + }, + "m_Slots": [ + { + "m_Id": "4bb4dd9cda0142738e582fa935becbcb" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "9e699a1f35ed460f9274b370e7e01749" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "80b025084ed54b06aa97a6f12912eff4", + "m_Id": 1886474450, + "m_DisplayName": "OcclusionStrength", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "_OcclusionStrength", + "m_StageCapability": 2, + "m_Value": 1.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "80fce1dbcef04945aa9b988609dbe324", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.BaseColor", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 0.0, + "y": 0.0, + "width": 0.0, + "height": 0.0 + } + }, + "m_Slots": [ + { + "m_Id": "7454a78d02bb4f79b6ff0f81f6b795a0" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.BaseColor" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "855308f399fb4f71bc6584937719e851", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -155.33335876464845, + "y": 136.6666259765625, + "width": 153.3333740234375, + "height": 36.00001525878906 + } + }, + "m_Slots": [ + { + "m_Id": "d6da5d2783dc4a238c7349e189e235eb" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "ef1c5fb59a8d4550ab9c739f843edaa0" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Internal.Texture2DShaderProperty", + "m_ObjectId": "92f5ab11614c4ec1b4d632f73041ba65", + "m_Guid": { + "m_GuidSerialized": "df5eef53-f7a6-40ef-8fca-1fd91f86d83f" + }, + "m_Name": "BaseMap", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "BaseMap", + "m_DefaultReferenceName": "_BaseMap", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": { + "m_SerializedTexture": "{\"texture\":{\"fileID\":2800000,\"guid\":\"3ab316f1cf207684abb754d9a2731c66\",\"type\":3}}", + "m_Guid": "" + }, + "isMainTexture": true, + "useTilingAndOffset": true, + "m_Modifiable": true, + "m_DefaultType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", + "m_ObjectId": "9b04ce4253044d79ad4b2375d0f3a0d9", + "m_Id": 6, + "m_DisplayName": "Normal", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Normal", + "m_StageCapability": 2, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 3, + "m_Type": "UnityEditor.ShaderGraph.Internal.ColorShaderProperty", + "m_ObjectId": "9e699a1f35ed460f9274b370e7e01749", + "m_Guid": { + "m_GuidSerialized": "9962908c-bb06-4540-874e-237cdf21a29e" + }, + "m_Name": "EmissionColor", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "EmissionColor", + "m_DefaultReferenceName": "_EmissionColor", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": { + "r": 0.0, + "g": 0.0, + "b": 0.0, + "a": 0.0 + }, + "isMainColor": false, + "m_ColorMode": 1 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BranchNode", + "m_ObjectId": "a2cf70a9a7fe4202893a8b40f35571f9", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Branch", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 58.666629791259769, + "y": 112.66661834716797, + "width": 171.99996948242188, + "height": 144.00006103515626 + } + }, + "m_Slots": [ + { + "m_Id": "2d379c192d3048f19eef9dda9d4b8906" + }, + { + "m_Id": "ffe9c7f7a99b4e618171fac09d7a60da" + }, + { + "m_Id": "01187177ae5b4d289136898d4db4856b" + }, + { + "m_Id": "cfa6122569d6441bbd009755d3eada60" + } + ], + "synonyms": [ + "switch", + "if", + "else" + ], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DMaterialSlot", + "m_ObjectId": "a71711ebde2f4afd83e44b512800c723", + "m_Id": 0, + "m_DisplayName": "BumpMap", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_BareResource": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.ColorRGBMaterialSlot", + "m_ObjectId": "a8a3476bbfe8465fbf208d8592d231a3", + "m_Id": 0, + "m_DisplayName": "Emission", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Emission", + "m_StageCapability": 2, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_ColorMode": 1, + "m_DefaultColor": { + "r": 0.0, + "g": 0.0, + "b": 0.0, + "a": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "ab904d8e9a194cee907c4c74bf0ab578", + "m_Id": 1450746048, + "m_DisplayName": "Metallic", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "_Metallic", + "m_StageCapability": 2, + "m_Value": 1.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", + "m_ObjectId": "b5ca1f74c7aa41b4b99ec4b0773468b3", + "m_Id": -1532749908, + "m_DisplayName": "EmissionMap", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "_EmissionMap", + "m_StageCapability": 2, + "m_BareResource": false, + "m_Texture": { + "m_SerializedTexture": "{\"texture\":{\"fileID\":2800000,\"guid\":\"09e6225be3a2a43489e11a41cb198377\",\"type\":3}}", + "m_Guid": "" + }, + "m_DefaultType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", + "m_ObjectId": "b70145a57ccc47f0bb9c69ddf8e26053", + "m_Id": -1417122351, + "m_DisplayName": "NormalMap", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "_NormalMap", + "m_StageCapability": 2, + "m_BareResource": false, + "m_Texture": { + "m_SerializedTexture": "", + "m_Guid": "" + }, + "m_DefaultType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "b81ee26f89a540ea946cb683ac7de047", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.AlphaClipThreshold", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 368.0, + "y": 288.6666564941406, + "width": 200.0, + "height": 42.66668701171875 + } + }, + "m_Slots": [ + { + "m_Id": "13a810e2e4804785b217f835e16a95ff" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.AlphaClipThreshold" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Internal.Texture2DShaderProperty", + "m_ObjectId": "c4ff105a2181464aaee7d5b6146a2c9b", + "m_Guid": { + "m_GuidSerialized": "77edee86-bd02-4114-a7f5-247e9ba9cf42" + }, + "m_Name": "MetallicRoughnessMap", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "MetallicRoughnessMap", + "m_DefaultReferenceName": "_MetallicRoughnessMap", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": { + "m_SerializedTexture": "{\"texture\":{\"fileID\":2800000,\"guid\":\"909670d47b2f55d4a991788acca59d7e\",\"type\":3}}", + "m_Guid": "" + }, + "isMainTexture": false, + "useTilingAndOffset": true, + "m_Modifiable": true, + "m_DefaultType": 4 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "c947e10335f9489ea3420187a17e63af", + "m_Id": 0, + "m_DisplayName": "OcclusionStrength", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "cd2a46a6fe0746ae965dc193ce0757eb", + "m_Id": 0, + "m_DisplayName": "Metallic", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Metallic", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "cd3eb81d2e8244c6a59f5595b2e9b0c4", + "m_Id": 4, + "m_DisplayName": "Smoothness", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Smoothness", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "cfa6122569d6441bbd009755d3eada60", + "m_Id": 3, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "d5f8db7848d34ac4bc2e47bc9700b02a", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -364.0000915527344, + "y": 244.6666717529297, + "width": 172.66668701171876, + "height": 35.99998474121094 + } + }, + "m_Slots": [ + { + "m_Id": "c947e10335f9489ea3420187a17e63af" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "653228a387f647d5a5e1fa4da9b5f6d7" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BooleanMaterialSlot", + "m_ObjectId": "d6da5d2783dc4a238c7349e189e235eb", + "m_Id": 0, + "m_DisplayName": "CutoffEnabled", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": false, + "m_DefaultValue": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Internal.Texture2DShaderProperty", + "m_ObjectId": "d77500f24b3f490daf8cc2f5dcd19f60", + "m_Guid": { + "m_GuidSerialized": "96cd3240-b1e2-4ec9-816f-b4be029dbeb6" + }, + "m_Name": "BumpMap", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "BumpMap", + "m_DefaultReferenceName": "_BumpMap", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": { + "m_SerializedTexture": "", + "m_Guid": "" + }, + "isMainTexture": false, + "useTilingAndOffset": false, + "m_Modifiable": true, + "m_DefaultType": 3 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "d7b531121e794d20a1b2a7fbd9afdf4a", + "m_Id": -1946006235, + "m_DisplayName": "BaseColor", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "_BaseColor", + "m_StageCapability": 2, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "d9d26bcc4b844de8a9829d0120c97dcc", + "m_Id": 1238374258, + "m_DisplayName": "Roughness", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "_Roughness", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", + "m_ObjectId": "da75e0b3880e405db252692028d54133", + "m_Id": 725867842, + "m_DisplayName": "BaseMap", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "_BaseMap", + "m_StageCapability": 2, + "m_BareResource": false, + "m_Texture": { + "m_SerializedTexture": "", + "m_Guid": "" + }, + "m_DefaultType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "dd159d7b06a3483fbb5c33fda09461cd", + "m_Id": 0, + "m_DisplayName": "Metallic", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 3, + "m_Type": "UnityEditor.ShaderGraph.Internal.ColorShaderProperty", + "m_ObjectId": "dea047da4cb0442bac26d6f468ba8f66", + "m_Guid": { + "m_GuidSerialized": "b6ef105a-c541-4441-9f6c-3ac20a1e813c" + }, + "m_Name": "BaseColor", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "BaseColor", + "m_DefaultReferenceName": "_BaseColor", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": { + "r": 1.0, + "g": 1.0, + "b": 1.0, + "a": 0.0 + }, + "isMainColor": false, + "m_ColorMode": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.NormalMaterialSlot", + "m_ObjectId": "e1de0ca351fd43ff866485e33328e300", + "m_Id": 0, + "m_DisplayName": "Normal", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Normal", + "m_StageCapability": 1, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_Space": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "ed92041349b441768aa1f485dae63d3c", + "m_Id": 0, + "m_DisplayName": "BumpScale", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "eec810392601496bbf30d0e04d1c9e5a", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -308.66668701171877, + "y": 410.6667175292969, + "width": 117.33335876464844, + "height": 35.99993896484375 + } + }, + "m_Slots": [ + { + "m_Id": "dd159d7b06a3483fbb5c33fda09461cd" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "fd4b1637b32c44d79eea652e4b5626b2" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "ef0016b4d1214fc5b0766f3f8883eaca", + "m_Id": 0, + "m_DisplayName": "BaseColor", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Internal.BooleanShaderProperty", + "m_ObjectId": "ef1c5fb59a8d4550ab9c739f843edaa0", + "m_Guid": { + "m_GuidSerialized": "d167437b-253b-4e6d-8ae4-5d62902a0350" + }, + "m_Name": "CutoffEnabled", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "CutoffEnabled", + "m_DefaultReferenceName": "_CutoffEnabled", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": true +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", + "m_ObjectId": "f386966343c340c09e357e87cdcb6d91", + "m_Id": 2124990166, + "m_DisplayName": "OcclusionMap", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "_OcclusionMap", + "m_StageCapability": 2, + "m_BareResource": false, + "m_Texture": { + "m_SerializedTexture": "", + "m_Guid": "" + }, + "m_DefaultType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", + "m_ObjectId": "f4283db3232c4a1090c5ab5091fa7d02", + "m_Id": 7, + "m_DisplayName": "Emission", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Emission", + "m_StageCapability": 2, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DMaterialSlot", + "m_ObjectId": "f4f063b4a8554eba9f0062104601584a", + "m_Id": 0, + "m_DisplayName": "OcclusionMap", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_BareResource": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "f56f676a56e04566a12f41980b760358", + "m_Group": { + "m_Id": "" + }, + "m_Name": "VertexDescription.Position", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 0.0, + "y": 0.0, + "width": 0.0, + "height": 0.0 + } + }, + "m_Slots": [ + { + "m_Id": "619a91e5d75d4a629f14de895dbebb39" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "VertexDescription.Position" +} + +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty", + "m_ObjectId": "f8ac3f450f1a4d849926601ace10a04f", + "m_Guid": { + "m_GuidSerialized": "8bb96dec-3d73-4fb0-8e69-db74dee7110e" + }, + "m_Name": "BumpScale", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "BumpScale", + "m_DefaultReferenceName": "_BumpScale", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": 0.0, + "m_FloatType": 0, + "m_RangeValues": { + "x": 0.0, + "y": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "fa61ad0af8f743998cdb12dfea31d6a6", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -345.3333740234375, + "y": 590.6666870117188, + "width": 154.0000457763672, + "height": 35.99993896484375 + } + }, + "m_Slots": [ + { + "m_Id": "6e364da577ef41d8ac8f4f2ab56412b1" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "2138b6eae95a4a249265714cefb1795f" + } +} + +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty", + "m_ObjectId": "fb6c28211dec4e1bb1a36cbd93aff5e3", + "m_Guid": { + "m_GuidSerialized": "ddae6a56-f28d-4ec9-8f5e-3fb80da4ccf3" + }, + "m_Name": "Cutoff", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "Cutoff", + "m_DefaultReferenceName": "_Cutoff", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": 0.5, + "m_FloatType": 0, + "m_RangeValues": { + "x": 0.0, + "y": 1.0 + } +} + +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty", + "m_ObjectId": "fd4b1637b32c44d79eea652e4b5626b2", + "m_Guid": { + "m_GuidSerialized": "95cdef22-fc8b-49da-9fe2-98bab1d5658c" + }, + "m_Name": "Metallic", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "Metallic", + "m_DefaultReferenceName": "_Metallic", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": 1.0, + "m_FloatType": 0, + "m_RangeValues": { + "x": 0.0, + "y": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "ffe9c7f7a99b4e618171fac09d7a60da", + "m_Id": 1, + "m_DisplayName": "True", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "True", + "m_StageCapability": 3, + "m_Value": { + "x": 10.0, + "y": 1.0, + "z": 1.0, + "w": 1.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + diff --git a/Assets/VRM10/Samples~/VRM10Viewer/Assets/TinyPbr.shadergraph.meta b/Assets/VRM10/Samples~/VRM10Viewer/Assets/TinyPbrOpaque.shadergraph.meta similarity index 100% rename from Assets/VRM10/Samples~/VRM10Viewer/Assets/TinyPbr.shadergraph.meta rename to Assets/VRM10/Samples~/VRM10Viewer/Assets/TinyPbrOpaque.shadergraph.meta diff --git a/Assets/VRM10/Samples~/VRM10Viewer/Assets/TinyPbr_SubGraph.shadersubgraph b/Assets/VRM10/Samples~/VRM10Viewer/Assets/TinyPbr_SubGraph.shadersubgraph new file mode 100644 index 000000000..06a421e45 --- /dev/null +++ b/Assets/VRM10/Samples~/VRM10Viewer/Assets/TinyPbr_SubGraph.shadersubgraph @@ -0,0 +1,4248 @@ +{ + "m_SGVersion": 3, + "m_Type": "UnityEditor.ShaderGraph.GraphData", + "m_ObjectId": "5a2d6628108e453fbfe5cfa5e522d9a9", + "m_Properties": [ + { + "m_Id": "65967a44db6b4e5bb53bac3dfd6fc045" + }, + { + "m_Id": "8ccf0f4af8f048a4bbdb335e17e612a8" + }, + { + "m_Id": "d94e9e3c962941ada3f359c02435554a" + }, + { + "m_Id": "6cbc1f284b9e449a8b6732e4fd1418cb" + }, + { + "m_Id": "ea1b4577ae37440ebb7646f685359b91" + }, + { + "m_Id": "eb9d3331c84c4ad29780f6475d74ec64" + }, + { + "m_Id": "8a1ff54b67ff488fb1c1f4c117d15e5b" + }, + { + "m_Id": "b34aeef26d00428489bdea9a7f11788a" + }, + { + "m_Id": "fddfcfba23f4484197ced74f6a153680" + }, + { + "m_Id": "eb31e1d5ba694a60885248856af53466" + }, + { + "m_Id": "dec62a6ca6c94573b68f5277b3c59ab6" + } + ], + "m_Keywords": [], + "m_Dropdowns": [], + "m_CategoryData": [ + { + "m_Id": "8e46262304df435f8a6c6f7aa6b59cad" + } + ], + "m_Nodes": [ + { + "m_Id": "95965af48a8849339faf1a291c791faf" + }, + { + "m_Id": "938e7735e2514aa2872cf020cce5351f" + }, + { + "m_Id": "7cc86c96ee5e414b8d60c0646935f9dc" + }, + { + "m_Id": "e2b1237b8d9f4984aaa93fa1014ad32f" + }, + { + "m_Id": "88c2f24236ff40f5b87bb2c19b666b61" + }, + { + "m_Id": "3390457763fc40058fe02ee6435e6e45" + }, + { + "m_Id": "5eef577c98e34954bf04a2dd7c871f75" + }, + { + "m_Id": "eb539082e9b44af9a45e06fce943e79b" + }, + { + "m_Id": "a607bf6c25d3408b9640d4b263981255" + }, + { + "m_Id": "7f00d74041734b5e9f19552959f21da5" + }, + { + "m_Id": "4267eb8dd9314cf7a45044acb1d323c3" + }, + { + "m_Id": "8f9fee6a8a4e483cae36497e4f4adee2" + }, + { + "m_Id": "22a729d236324664a3922a27475d095d" + }, + { + "m_Id": "9b008f07eb40412ba15df86a304f81fe" + }, + { + "m_Id": "620b08515bf540989ca88405976633df" + }, + { + "m_Id": "08450cb37ae04d0aa3b01a00b836e8b0" + }, + { + "m_Id": "e5c2a7ebd0b44eb0b6ded1ca3bc70850" + }, + { + "m_Id": "7674d3f8f44047038c8ec964d1053ebc" + }, + { + "m_Id": "fa41d8f133734d46b073f60d63ac25ef" + }, + { + "m_Id": "1239dbb98c7b454e9d981a8d19be31cd" + }, + { + "m_Id": "13f996335df44c398f8938cf09dd3fbe" + }, + { + "m_Id": "676e4ddc93c84889b638434526f46a9e" + }, + { + "m_Id": "f20fc1b4e639441d87909a30ddc3b4a0" + }, + { + "m_Id": "1a8eaa0a6813449fbddd0d53e9e85d07" + }, + { + "m_Id": "5c4d818b2aaa4de891fd7299fd2536c3" + }, + { + "m_Id": "417635dfcbc34691a3e58530f430da19" + }, + { + "m_Id": "3fba216a7770483ebd8ffef83f8d0793" + } + ], + "m_GroupDatas": [], + "m_StickyNoteDatas": [], + "m_Edges": [ + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "08450cb37ae04d0aa3b01a00b836e8b0" + }, + "m_SlotId": 5 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "9b008f07eb40412ba15df86a304f81fe" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "08450cb37ae04d0aa3b01a00b836e8b0" + }, + "m_SlotId": 6 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "22a729d236324664a3922a27475d095d" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "1239dbb98c7b454e9d981a8d19be31cd" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "08450cb37ae04d0aa3b01a00b836e8b0" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "13f996335df44c398f8938cf09dd3fbe" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "22a729d236324664a3922a27475d095d" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "1a8eaa0a6813449fbddd0d53e9e85d07" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "95965af48a8849339faf1a291c791faf" + }, + "m_SlotId": 7 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "22a729d236324664a3922a27475d095d" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "95965af48a8849339faf1a291c791faf" + }, + "m_SlotId": 5 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "3390457763fc40058fe02ee6435e6e45" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "938e7735e2514aa2872cf020cce5351f" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "3fba216a7770483ebd8ffef83f8d0793" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "5c4d818b2aaa4de891fd7299fd2536c3" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "417635dfcbc34691a3e58530f430da19" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "1a8eaa0a6813449fbddd0d53e9e85d07" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "4267eb8dd9314cf7a45044acb1d323c3" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "a607bf6c25d3408b9640d4b263981255" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "5c4d818b2aaa4de891fd7299fd2536c3" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "1a8eaa0a6813449fbddd0d53e9e85d07" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "5eef577c98e34954bf04a2dd7c871f75" + }, + "m_SlotId": 1 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "eb539082e9b44af9a45e06fce943e79b" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "5eef577c98e34954bf04a2dd7c871f75" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "eb539082e9b44af9a45e06fce943e79b" + }, + "m_SlotId": 2 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "5eef577c98e34954bf04a2dd7c871f75" + }, + "m_SlotId": 3 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "eb539082e9b44af9a45e06fce943e79b" + }, + "m_SlotId": 3 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "620b08515bf540989ca88405976633df" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "95965af48a8849339faf1a291c791faf" + }, + "m_SlotId": 4 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "676e4ddc93c84889b638434526f46a9e" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "7674d3f8f44047038c8ec964d1053ebc" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "7674d3f8f44047038c8ec964d1053ebc" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "e5c2a7ebd0b44eb0b6ded1ca3bc70850" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "7cc86c96ee5e414b8d60c0646935f9dc" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "e2b1237b8d9f4984aaa93fa1014ad32f" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "7f00d74041734b5e9f19552959f21da5" + }, + "m_SlotId": 4 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "a607bf6c25d3408b9640d4b263981255" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "88c2f24236ff40f5b87bb2c19b666b61" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "5eef577c98e34954bf04a2dd7c871f75" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "8f9fee6a8a4e483cae36497e4f4adee2" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "7f00d74041734b5e9f19552959f21da5" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "938e7735e2514aa2872cf020cce5351f" + }, + "m_SlotId": 4 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "7cc86c96ee5e414b8d60c0646935f9dc" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "938e7735e2514aa2872cf020cce5351f" + }, + "m_SlotId": 5 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "7cc86c96ee5e414b8d60c0646935f9dc" + }, + "m_SlotId": 2 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "938e7735e2514aa2872cf020cce5351f" + }, + "m_SlotId": 6 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "7cc86c96ee5e414b8d60c0646935f9dc" + }, + "m_SlotId": 3 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "938e7735e2514aa2872cf020cce5351f" + }, + "m_SlotId": 7 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "95965af48a8849339faf1a291c791faf" + }, + "m_SlotId": 2 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "9b008f07eb40412ba15df86a304f81fe" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "620b08515bf540989ca88405976633df" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "a607bf6c25d3408b9640d4b263981255" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "95965af48a8849339faf1a291c791faf" + }, + "m_SlotId": 3 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "e2b1237b8d9f4984aaa93fa1014ad32f" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "95965af48a8849339faf1a291c791faf" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "e5c2a7ebd0b44eb0b6ded1ca3bc70850" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "95965af48a8849339faf1a291c791faf" + }, + "m_SlotId": 6 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "eb539082e9b44af9a45e06fce943e79b" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "e2b1237b8d9f4984aaa93fa1014ad32f" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "f20fc1b4e639441d87909a30ddc3b4a0" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "e5c2a7ebd0b44eb0b6ded1ca3bc70850" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "fa41d8f133734d46b073f60d63ac25ef" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "9b008f07eb40412ba15df86a304f81fe" + }, + "m_SlotId": 0 + } + } + ], + "m_VertexContext": { + "m_Position": { + "x": 0.0, + "y": 0.0 + }, + "m_Blocks": [] + }, + "m_FragmentContext": { + "m_Position": { + "x": 0.0, + "y": 0.0 + }, + "m_Blocks": [] + }, + "m_PreviewData": { + "serializedMesh": { + "m_SerializedMesh": "{\"mesh\":{\"instanceID\":0}}", + "m_Guid": "" + }, + "preventRotation": false + }, + "m_Path": "Sub Graphs", + "m_GraphPrecision": 1, + "m_PreviewMode": 2, + "m_OutputNode": { + "m_Id": "95965af48a8849339faf1a291c791faf" + }, + "m_SubDatas": [], + "m_ActiveTargets": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "00c79a9d25ab4d38858e3369f7aed45c", + "m_Id": 0, + "m_DisplayName": "A", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": { + "e00": 0.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 0.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 0.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 0.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "0505f04023ce4ee3833316ff7908c74f", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": { + "e00": 2.0, + "e01": 2.0, + "e02": 2.0, + "e03": 2.0, + "e10": 2.0, + "e11": 2.0, + "e12": 2.0, + "e13": 2.0, + "e20": 2.0, + "e21": 2.0, + "e22": 2.0, + "e23": 2.0, + "e30": 2.0, + "e31": 2.0, + "e32": 2.0, + "e33": 2.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "0668252b25964b8e8d5a6a68d1752a69", + "m_Id": 4, + "m_DisplayName": "Smoothness", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Smoothness", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.UVMaterialSlot", + "m_ObjectId": "06f64a6471ca4a9ab99bf4bdce9ca84f", + "m_Id": 2, + "m_DisplayName": "UV", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "UV", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0 + }, + "m_Labels": [], + "m_Channel": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SampleTexture2DNode", + "m_ObjectId": "08450cb37ae04d0aa3b01a00b836e8b0", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Sample Texture 2D", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -160.0000457763672, + "y": 470.0, + "width": 184.66665649414063, + "height": 254.6666259765625 + } + }, + "m_Slots": [ + { + "m_Id": "139a58f2156e4c949a568d0248bcaa15" + }, + { + "m_Id": "b18c3e20d78f4fa38c46a18a020fddf2" + }, + { + "m_Id": "60259e1ae85a42ed976cbfd21738ed79" + }, + { + "m_Id": "a1a351dbb6974bfbaf69d88ac2e89505" + }, + { + "m_Id": "876e4c048caa48dfb478c57c75f68b5b" + }, + { + "m_Id": "43b0913da27240c8a6fe7e2eea4f4545" + }, + { + "m_Id": "7feb748e0d4646458310a1109ff1c8d3" + }, + { + "m_Id": "ebf689c11ef842838e8e183bd480c74a" + } + ], + "synonyms": [ + "tex2d" + ], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_TextureType": 0, + "m_NormalMapSpace": 1, + "m_EnableGlobalMipBias": true, + "m_MipSamplingMode": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "1239dbb98c7b454e9d981a8d19be31cd", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -439.3333435058594, + "y": 496.6666564941406, + "width": 107.3333740234375, + "height": 35.999969482421878 + } + }, + "m_Slots": [ + { + "m_Id": "cd3b41827c9f4ed3a832df5466451ee4" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "eb9d3331c84c4ad29780f6475d74ec64" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "13725fe0ce284486a708f897d08e7f93", + "m_Id": 2, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "e00": 0.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 0.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 0.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 0.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "13817641b44147a18f186e6569f8a323", + "m_Id": 2, + "m_DisplayName": "Y", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Y", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [ + "Y" + ] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "139a58f2156e4c949a568d0248bcaa15", + "m_Id": 0, + "m_DisplayName": "RGBA", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "RGBA", + "m_StageCapability": 2, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "13f996335df44c398f8938cf09dd3fbe", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -439.3333435058594, + "y": 624.6666259765625, + "width": 118.66668701171875, + "height": 35.99993896484375 + } + }, + "m_Slots": [ + { + "m_Id": "7fbd980729894542a91190cfcc94d9c4" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "8a1ff54b67ff488fb1c1f4c117d15e5b" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "15b94593a6a2431a9b064eee170953e8", + "m_Id": 6, + "m_DisplayName": "B", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "17b3de0d05dc45e2bbbc4ef4faffb732", + "m_Id": 0, + "m_DisplayName": "BaseColor", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.MultiplyNode", + "m_ObjectId": "1a8eaa0a6813449fbddd0d53e9e85d07", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Multiply", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 149.3333282470703, + "y": 1182.6668701171875, + "width": 209.33335876464845, + "height": 303.9998779296875 + } + }, + "m_Slots": [ + { + "m_Id": "bdac9cf259ee4c9785441c958ebe2c82" + }, + { + "m_Id": "33adb5d2a7164f418a4b8290cad09899" + }, + { + "m_Id": "5f1f37eb4819404f892f37e9288b6e42" + } + ], + "synonyms": [ + "multiplication", + "times", + "x" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "1b3d1b7d83e04d988887477411921a9f", + "m_Id": 0, + "m_DisplayName": "A", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": { + "e00": 0.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 0.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 0.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 0.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "1ea9368063724b3d934eaff8e8306333", + "m_Id": 5, + "m_DisplayName": "G", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "G", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", + "m_ObjectId": "1eb8d79419ba44c29e52bc41d5c6360b", + "m_Id": 2, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "20aa61a00c104ecfbcadd370f7f9a929", + "m_Id": 6, + "m_DisplayName": "B", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.MultiplyNode", + "m_ObjectId": "22a729d236324664a3922a27475d095d", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Multiply", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 149.33334350585938, + "y": 574.6666870117188, + "width": 209.33331298828126, + "height": 304.0 + } + }, + "m_Slots": [ + { + "m_Id": "3201ef36a58647bb9363f33b1b43011b" + }, + { + "m_Id": "38f63e79eb484bea87ee9585dd49d85b" + }, + { + "m_Id": "5d9a78af82ca4ccba3df445c14fc1c37" + } + ], + "synonyms": [ + "multiplication", + "times", + "x" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "2b1b5c4446234c1e8e5299237ec6d156", + "m_Id": 7, + "m_DisplayName": "A", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.UVMaterialSlot", + "m_ObjectId": "2dd646544df342c395c79447bc9a913f", + "m_Id": 2, + "m_DisplayName": "UV", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "UV", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0 + }, + "m_Labels": [], + "m_Channel": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DMaterialSlot", + "m_ObjectId": "2e68b8e1d623476881d81d698a8a69fd", + "m_Id": 0, + "m_DisplayName": "BaseMap", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_BareResource": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", + "m_ObjectId": "2ff2caf3886a4815896954bfe5dfd71a", + "m_Id": 1, + "m_DisplayName": "Texture", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Texture", + "m_StageCapability": 3, + "m_BareResource": false, + "m_Texture": { + "m_SerializedTexture": "", + "m_Guid": "" + }, + "m_DefaultType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "3201ef36a58647bb9363f33b1b43011b", + "m_Id": 0, + "m_DisplayName": "A", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": { + "e00": 0.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 0.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 0.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 0.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "3390457763fc40058fe02ee6435e6e45", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -413.3333435058594, + "y": -241.33334350585938, + "width": 133.33334350585938, + "height": 36.0 + } + }, + "m_Slots": [ + { + "m_Id": "2e68b8e1d623476881d81d698a8a69fd" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "8ccf0f4af8f048a4bbdb335e17e612a8" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "33adb5d2a7164f418a4b8290cad09899", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": { + "e00": 2.0, + "e01": 2.0, + "e02": 2.0, + "e03": 2.0, + "e10": 2.0, + "e11": 2.0, + "e12": 2.0, + "e13": 2.0, + "e20": 2.0, + "e21": 2.0, + "e22": 2.0, + "e23": 2.0, + "e30": 2.0, + "e31": 2.0, + "e32": 2.0, + "e33": 2.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "34c65d4e1a6540b3bab4c7a621a00d7c", + "m_Id": 7, + "m_DisplayName": "A", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "368105ca5b4a4db7a35f7cce08635d2d", + "m_Id": 0, + "m_DisplayName": "RGBA", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "RGBA", + "m_StageCapability": 2, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "38f63e79eb484bea87ee9585dd49d85b", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": { + "e00": 2.0, + "e01": 2.0, + "e02": 2.0, + "e03": 2.0, + "e10": 2.0, + "e11": 2.0, + "e12": 2.0, + "e13": 2.0, + "e20": 2.0, + "e21": 2.0, + "e22": 2.0, + "e23": 2.0, + "e30": 2.0, + "e31": 2.0, + "e32": 2.0, + "e33": 2.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "3a5db45a2ab244ac8b422a9f4ce47086", + "m_Id": 0, + "m_DisplayName": "NormalStrength", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "3b6a726e957646bcb078f6f9da8e0d20", + "m_Id": 2, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "e00": 0.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 0.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 0.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 0.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SamplerStateMaterialSlot", + "m_ObjectId": "3d6a371dbce54bbbab42175068da0891", + "m_Id": 3, + "m_DisplayName": "Sampler", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Sampler", + "m_StageCapability": 3, + "m_BareResource": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "3d8fbb7ad1224fd29519e8d6c6ec41d5", + "m_Id": 4, + "m_DisplayName": "R", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "R", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "3fba216a7770483ebd8ffef83f8d0793", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -367.9999694824219, + "y": 1263.3333740234375, + "width": 135.99998474121095, + "height": 35.9998779296875 + } + }, + "m_Slots": [ + { + "m_Id": "f9563785968c4a608b3e810745614987" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "dec62a6ca6c94573b68f5277b3c59ab6" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.UVMaterialSlot", + "m_ObjectId": "411c76b7464b46519f90450d7b5c6903", + "m_Id": 2, + "m_DisplayName": "UV", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "UV", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0 + }, + "m_Labels": [], + "m_Channel": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "417635dfcbc34691a3e58530f430da19", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -334.6666564941406, + "y": 1223.333251953125, + "width": 106.66667175292969, + "height": 36.0001220703125 + } + }, + "m_Slots": [ + { + "m_Id": "f0c42c328d6644529d4ebb7ee48d16f7" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "eb31e1d5ba694a60885248856af53466" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "4267eb8dd9314cf7a45044acb1d323c3", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -452.6666564941406, + "y": 77.33334350585938, + "width": 172.66668701171876, + "height": 36.00001525878906 + } + }, + "m_Slots": [ + { + "m_Id": "96770059d85542fc9b4b317bd5b13a82" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "d94e9e3c962941ada3f359c02435554a" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "437ff83312a14976a8ae3ae3629c3897", + "m_Id": 7, + "m_DisplayName": "A", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", + "m_ObjectId": "43b0913da27240c8a6fe7e2eea4f4545", + "m_Id": 1, + "m_DisplayName": "Texture", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Texture", + "m_StageCapability": 3, + "m_BareResource": false, + "m_Texture": { + "m_SerializedTexture": "", + "m_Guid": "" + }, + "m_DefaultType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "444353c284d1483aa8c547e6d45c11b3", + "m_Id": 0, + "m_DisplayName": "RGBA", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "RGBA", + "m_StageCapability": 2, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "460fac8e25814a59bc5b4f658163fa66", + "m_Id": 3, + "m_DisplayName": "AmbientOcclusion", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "AmbientOcclusion", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "468040b3744c433f87ddd3275deb90bc", + "m_Id": 3, + "m_DisplayName": "Z", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Z", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [ + "Z" + ] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "471d69768b3143c28bcd29941d55b24d", + "m_Id": 2, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "e00": 0.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 0.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 0.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 0.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", + "m_ObjectId": "49e20bed649b4cd0bd8e413469e516a0", + "m_Id": 7, + "m_DisplayName": "Emission", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Emission", + "m_StageCapability": 2, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "4cbf192907004250a41455d12cdf49ff", + "m_Id": 7, + "m_DisplayName": "A", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "4f20b8041693464f92cf0f919ebc52a7", + "m_Id": 1, + "m_DisplayName": "X", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "X", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", + "m_ObjectId": "594111a1ff324732ba7075feb396d2bf", + "m_Id": 1, + "m_DisplayName": "Texture", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Texture", + "m_StageCapability": 3, + "m_BareResource": false, + "m_Texture": { + "m_SerializedTexture": "", + "m_Guid": "" + }, + "m_DefaultType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "5b2300a185a84379b546e9232253e9fd", + "m_Id": 1, + "m_DisplayName": "R", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "R", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SampleTexture2DNode", + "m_ObjectId": "5c4d818b2aaa4de891fd7299fd2536c3", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Sample Texture 2D", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -166.0, + "y": 1263.3333740234375, + "width": 184.6666717529297, + "height": 254.66650390625 + } + }, + "m_Slots": [ + { + "m_Id": "444353c284d1483aa8c547e6d45c11b3" + }, + { + "m_Id": "3d8fbb7ad1224fd29519e8d6c6ec41d5" + }, + { + "m_Id": "7ce535298b98460d948e5d7b99d3b13f" + }, + { + "m_Id": "15b94593a6a2431a9b064eee170953e8" + }, + { + "m_Id": "2b1b5c4446234c1e8e5299237ec6d156" + }, + { + "m_Id": "2ff2caf3886a4815896954bfe5dfd71a" + }, + { + "m_Id": "7c5f6c0a896143df958172c1b360aa0a" + }, + { + "m_Id": "94650ab96add4de1af68e22836e8cbe9" + } + ], + "synonyms": [ + "tex2d" + ], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_TextureType": 0, + "m_NormalMapSpace": 1, + "m_EnableGlobalMipBias": true, + "m_MipSamplingMode": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "5d9a78af82ca4ccba3df445c14fc1c37", + "m_Id": 2, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "e00": 0.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 0.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 0.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 0.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SplitNode", + "m_ObjectId": "5eef577c98e34954bf04a2dd7c871f75", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Split", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -162.00001525878907, + "y": -432.6667175292969, + "width": 120.66667175292969, + "height": 150.66668701171876 + } + }, + "m_Slots": [ + { + "m_Id": "a2750e19880748c4ac03949e44e82e8e" + }, + { + "m_Id": "5b2300a185a84379b546e9232253e9fd" + }, + { + "m_Id": "e7d900bf26d949a59c6342be77402d0f" + }, + { + "m_Id": "ac343ab52b6548c78d7be88d92330ecc" + }, + { + "m_Id": "b8e89f4b5c2e4d98afcd8525d8b16d68" + } + ], + "synonyms": [ + "separate" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "5f1f37eb4819404f892f37e9288b6e42", + "m_Id": 2, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "e00": 0.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 0.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 0.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 0.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "60259e1ae85a42ed976cbfd21738ed79", + "m_Id": 5, + "m_DisplayName": "G", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "G", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", + "m_ObjectId": "60365f2245b14faaa99d66a0588596a5", + "m_Id": 6, + "m_DisplayName": "Normal", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Normal", + "m_StageCapability": 2, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SubtractNode", + "m_ObjectId": "620b08515bf540989ca88405976633df", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Subtract", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 149.33328247070313, + "y": 270.66668701171877, + "width": 209.33331298828126, + "height": 303.99993896484377 + } + }, + "m_Slots": [ + { + "m_Id": "904ef2c5811644bfbb6ce08f462af4f6" + }, + { + "m_Id": "a93caca8319c449b980155eed9e4d3ed" + }, + { + "m_Id": "d20a75c55807482d8a5bc564bb1e5033" + } + ], + "synonyms": [ + "subtraction", + "remove", + "minus", + "take away" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.ShaderGraph.Internal.Vector4ShaderProperty", + "m_ObjectId": "65967a44db6b4e5bb53bac3dfd6fc045", + "m_Guid": { + "m_GuidSerialized": "b78d6b8b-b348-4425-8b4e-41096ddbeb76" + }, + "m_Name": "BaseColor", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "BaseColor", + "m_DefaultReferenceName": "_BaseColor", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": { + "x": 1.0, + "y": 1.0, + "z": 1.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "676e4ddc93c84889b638434526f46a9e", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -439.3333740234375, + "y": 935.333251953125, + "width": 140.00003051757813, + "height": 36.0 + } + }, + "m_Slots": [ + { + "m_Id": "e3a75f5bd043431cb63f6c57005833a2" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "b34aeef26d00428489bdea9a7f11788a" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SamplerStateMaterialSlot", + "m_ObjectId": "68e2934785f2443086c571fe019ddc6d", + "m_Id": 3, + "m_DisplayName": "Sampler", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Sampler", + "m_StageCapability": 3, + "m_BareResource": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Internal.Texture2DShaderProperty", + "m_ObjectId": "6cbc1f284b9e449a8b6732e4fd1418cb", + "m_Guid": { + "m_GuidSerialized": "3c367e55-9fb2-480b-bea6-22ae8f81b7a4" + }, + "m_Name": "OcclusionMap", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "OcclusionMap", + "m_DefaultReferenceName": "_OcclusionMap", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": { + "m_SerializedTexture": "", + "m_Guid": "" + }, + "isMainTexture": false, + "useTilingAndOffset": false, + "m_Modifiable": true, + "m_DefaultType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "7356a6fd7b654cf3a667db6cd631793e", + "m_Id": 1, + "m_DisplayName": "X", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "X", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SamplerStateMaterialSlot", + "m_ObjectId": "7652328c5d634fe9b590d1672678ba92", + "m_Id": 3, + "m_DisplayName": "Sampler", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Sampler", + "m_StageCapability": 3, + "m_BareResource": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SampleTexture2DNode", + "m_ObjectId": "7674d3f8f44047038c8ec964d1053ebc", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Sample Texture 2D", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -160.0000457763672, + "y": 741.9999389648438, + "width": 184.66665649414063, + "height": 254.666748046875 + } + }, + "m_Slots": [ + { + "m_Id": "368105ca5b4a4db7a35f7cce08635d2d" + }, + { + "m_Id": "fb41c688927f4aed99055b7c3ccca5fc" + }, + { + "m_Id": "efcf7ac5789140f7b2bf528268ce2eb8" + }, + { + "m_Id": "91f2e587519e46b697e4e18e013e410b" + }, + { + "m_Id": "437ff83312a14976a8ae3ae3629c3897" + }, + { + "m_Id": "9c326cd3a80d4f7bb14eb584f807ef4f" + }, + { + "m_Id": "2dd646544df342c395c79447bc9a913f" + }, + { + "m_Id": "7652328c5d634fe9b590d1672678ba92" + } + ], + "synonyms": [ + "tex2d" + ], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_TextureType": 1, + "m_NormalMapSpace": 0, + "m_EnableGlobalMipBias": true, + "m_MipSamplingMode": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.UVMaterialSlot", + "m_ObjectId": "7c5f6c0a896143df958172c1b360aa0a", + "m_Id": 2, + "m_DisplayName": "UV", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "UV", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0 + }, + "m_Labels": [], + "m_Channel": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector3Node", + "m_ObjectId": "7cc86c96ee5e414b8d60c0646935f9dc", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Vector 3", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 64.0, + "y": -259.3333740234375, + "width": 129.33331298828126, + "height": 126.66670227050781 + } + }, + "m_Slots": [ + { + "m_Id": "4f20b8041693464f92cf0f919ebc52a7" + }, + { + "m_Id": "13817641b44147a18f186e6569f8a323" + }, + { + "m_Id": "dfc51385ceda4d86a36a8ea7f19c6d88" + }, + { + "m_Id": "ec56dfa66b7b49aeb8c725e966bca89e" + } + ], + "synonyms": [ + "3", + "v3", + "vec3", + "float3" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "7ce535298b98460d948e5d7b99d3b13f", + "m_Id": 5, + "m_DisplayName": "G", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "G", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "7eb3b00684374b3ba2bd8be059d9d11d", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": { + "e00": 2.0, + "e01": 2.0, + "e02": 2.0, + "e03": 2.0, + "e10": 2.0, + "e11": 2.0, + "e12": 2.0, + "e13": 2.0, + "e20": 2.0, + "e21": 2.0, + "e22": 2.0, + "e23": 2.0, + "e30": 2.0, + "e31": 2.0, + "e32": 2.0, + "e33": 2.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SampleTexture2DNode", + "m_ObjectId": "7f00d74041734b5e9f19552959f21da5", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Sample Texture 2D", + "m_DrawState": { + "m_Expanded": false, + "m_Position": { + "serializedVersion": "2", + "x": -60.00007629394531, + "y": 77.33324432373047, + "width": 157.3333282470703, + "height": 157.33343505859376 + } + }, + "m_Slots": [ + { + "m_Id": "aef4cd9ceab0488b9f80ee544878b9e1" + }, + { + "m_Id": "de4ae76b50584c558f032b86843eaf3c" + }, + { + "m_Id": "d4562f8a59c04a76bcf052f84219bacf" + }, + { + "m_Id": "cd89087ed9db48ddb642060735ab4f35" + }, + { + "m_Id": "4cbf192907004250a41455d12cdf49ff" + }, + { + "m_Id": "8287aa2694d24d1ea48d24d50a87cfce" + }, + { + "m_Id": "06f64a6471ca4a9ab99bf4bdce9ca84f" + }, + { + "m_Id": "3d6a371dbce54bbbab42175068da0891" + } + ], + "synonyms": [ + "tex2d" + ], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_TextureType": 0, + "m_NormalMapSpace": 1, + "m_EnableGlobalMipBias": true, + "m_MipSamplingMode": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "7fbd980729894542a91190cfcc94d9c4", + "m_Id": 0, + "m_DisplayName": "Metallic", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.UVMaterialSlot", + "m_ObjectId": "7feb748e0d4646458310a1109ff1c8d3", + "m_Id": 2, + "m_DisplayName": "UV", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "UV", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0 + }, + "m_Labels": [], + "m_Channel": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", + "m_ObjectId": "8287aa2694d24d1ea48d24d50a87cfce", + "m_Id": 1, + "m_DisplayName": "Texture", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Texture", + "m_StageCapability": 3, + "m_BareResource": false, + "m_Texture": { + "m_SerializedTexture": "", + "m_Guid": "" + }, + "m_DefaultType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "876e4c048caa48dfb478c57c75f68b5b", + "m_Id": 7, + "m_DisplayName": "A", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "88c2f24236ff40f5b87bb2c19b666b61", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -412.0, + "y": -282.0, + "width": 132.0, + "height": 36.0 + } + }, + "m_Slots": [ + { + "m_Id": "17b3de0d05dc45e2bbbc4ef4faffb732" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "65967a44db6b4e5bb53bac3dfd6fc045" + } +} + +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty", + "m_ObjectId": "8a1ff54b67ff488fb1c1f4c117d15e5b", + "m_Guid": { + "m_GuidSerialized": "973fb1a8-0148-4447-9bfe-a520bbeea5a5" + }, + "m_Name": "Metallic", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "Metallic", + "m_DefaultReferenceName": "_Metallic", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": 1.0, + "m_FloatType": 0, + "m_RangeValues": { + "x": 0.0, + "y": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Internal.Texture2DShaderProperty", + "m_ObjectId": "8ccf0f4af8f048a4bbdb335e17e612a8", + "m_Guid": { + "m_GuidSerialized": "13da451d-5e09-4040-8b64-ceb8dda217c0" + }, + "m_Name": "BaseMap", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "BaseMap", + "m_DefaultReferenceName": "_BaseMap", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": { + "m_SerializedTexture": "", + "m_Guid": "" + }, + "isMainTexture": false, + "useTilingAndOffset": false, + "m_Modifiable": true, + "m_DefaultType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "8d9b4b001a2b4c9dba4a3c4d6586517f", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": { + "e00": 2.0, + "e01": 2.0, + "e02": 2.0, + "e03": 2.0, + "e10": 2.0, + "e11": 2.0, + "e12": 2.0, + "e13": 2.0, + "e20": 2.0, + "e21": 2.0, + "e22": 2.0, + "e23": 2.0, + "e30": 2.0, + "e31": 2.0, + "e32": 2.0, + "e33": 2.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.CategoryData", + "m_ObjectId": "8e46262304df435f8a6c6f7aa6b59cad", + "m_Name": "", + "m_ChildObjectList": [ + { + "m_Id": "65967a44db6b4e5bb53bac3dfd6fc045" + }, + { + "m_Id": "8ccf0f4af8f048a4bbdb335e17e612a8" + }, + { + "m_Id": "d94e9e3c962941ada3f359c02435554a" + }, + { + "m_Id": "6cbc1f284b9e449a8b6732e4fd1418cb" + }, + { + "m_Id": "ea1b4577ae37440ebb7646f685359b91" + }, + { + "m_Id": "8a1ff54b67ff488fb1c1f4c117d15e5b" + }, + { + "m_Id": "eb9d3331c84c4ad29780f6475d74ec64" + }, + { + "m_Id": "b34aeef26d00428489bdea9a7f11788a" + }, + { + "m_Id": "fddfcfba23f4484197ced74f6a153680" + }, + { + "m_Id": "eb31e1d5ba694a60885248856af53466" + }, + { + "m_Id": "dec62a6ca6c94573b68f5277b3c59ab6" + } + ] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "8f9fee6a8a4e483cae36497e4f4adee2", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -439.3333435058594, + "y": 116.66665649414063, + "width": 159.3333740234375, + "height": 36.00001525878906 + } + }, + "m_Slots": [ + { + "m_Id": "956beddedb794319beea21d83986643d" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "6cbc1f284b9e449a8b6732e4fd1418cb" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "904ef2c5811644bfbb6ce08f462af4f6", + "m_Id": 0, + "m_DisplayName": "A", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": { + "x": 1.0, + "y": 1.0, + "z": 1.0, + "w": 1.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "91f2e587519e46b697e4e18e013e410b", + "m_Id": 6, + "m_DisplayName": "B", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SampleTexture2DNode", + "m_ObjectId": "938e7735e2514aa2872cf020cce5351f", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Sample Texture 2D", + "m_DrawState": { + "m_Expanded": false, + "m_Position": { + "serializedVersion": "2", + "x": -162.00001525878907, + "y": -282.0, + "width": 184.66668701171876, + "height": 254.66664123535157 + } + }, + "m_Slots": [ + { + "m_Id": "d0190bd214234175b32325104c503ea4" + }, + { + "m_Id": "c98c7be5086a49788ddac6b44947626a" + }, + { + "m_Id": "1ea9368063724b3d934eaff8e8306333" + }, + { + "m_Id": "20aa61a00c104ecfbcadd370f7f9a929" + }, + { + "m_Id": "34c65d4e1a6540b3bab4c7a621a00d7c" + }, + { + "m_Id": "594111a1ff324732ba7075feb396d2bf" + }, + { + "m_Id": "411c76b7464b46519f90450d7b5c6903" + }, + { + "m_Id": "68e2934785f2443086c571fe019ddc6d" + } + ], + "synonyms": [ + "tex2d" + ], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_TextureType": 0, + "m_NormalMapSpace": 1, + "m_EnableGlobalMipBias": true, + "m_MipSamplingMode": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SamplerStateMaterialSlot", + "m_ObjectId": "94650ab96add4de1af68e22836e8cbe9", + "m_Id": 3, + "m_DisplayName": "Sampler", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Sampler", + "m_StageCapability": 3, + "m_BareResource": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DMaterialSlot", + "m_ObjectId": "956beddedb794319beea21d83986643d", + "m_Id": 0, + "m_DisplayName": "OcclusionMap", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_BareResource": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SubGraphOutputNode", + "m_ObjectId": "95965af48a8849339faf1a291c791faf", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Output", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 660.666748046875, + "y": 2.000000238418579, + "width": 149.3331298828125, + "height": 222.66671752929688 + } + }, + "m_Slots": [ + { + "m_Id": "e670c006d04c420e95fb34da172bb9a3" + }, + { + "m_Id": "ce40e4791e8d451c92633a89d2b6623e" + }, + { + "m_Id": "460fac8e25814a59bc5b4f658163fa66" + }, + { + "m_Id": "0668252b25964b8e8d5a6a68d1752a69" + }, + { + "m_Id": "e9d21fe40b8740c7a371e1efbc8677e4" + }, + { + "m_Id": "60365f2245b14faaa99d66a0588596a5" + }, + { + "m_Id": "49e20bed649b4cd0bd8e413469e516a0" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "IsFirstSlotValid": true +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "96770059d85542fc9b4b317bd5b13a82", + "m_Id": 0, + "m_DisplayName": "OcclusionStrength", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.MultiplyNode", + "m_ObjectId": "9b008f07eb40412ba15df86a304f81fe", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Multiply", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -55.99999237060547, + "y": 308.66668701171877, + "width": 127.33332061767578, + "height": 120.0 + } + }, + "m_Slots": [ + { + "m_Id": "9fab626280c64cb2a0992aa76fb57d8b" + }, + { + "m_Id": "0505f04023ce4ee3833316ff7908c74f" + }, + { + "m_Id": "3b6a726e957646bcb078f6f9da8e0d20" + } + ], + "synonyms": [ + "multiplication", + "times", + "x" + ], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", + "m_ObjectId": "9c326cd3a80d4f7bb14eb584f807ef4f", + "m_Id": 1, + "m_DisplayName": "Texture", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Texture", + "m_StageCapability": 3, + "m_BareResource": false, + "m_Texture": { + "m_SerializedTexture": "", + "m_Guid": "" + }, + "m_DefaultType": 3 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "9fab626280c64cb2a0992aa76fb57d8b", + "m_Id": 0, + "m_DisplayName": "A", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": { + "e00": 0.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 0.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 0.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 0.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "a1a351dbb6974bfbaf69d88ac2e89505", + "m_Id": 6, + "m_DisplayName": "B", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "a2750e19880748c4ac03949e44e82e8e", + "m_Id": 0, + "m_DisplayName": "In", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "In", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.MultiplyNode", + "m_ObjectId": "a607bf6c25d3408b9640d4b263981255", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Multiply", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 125.33326721191406, + "y": -38.66671371459961, + "width": 209.33335876464845, + "height": 303.9999694824219 + } + }, + "m_Slots": [ + { + "m_Id": "00c79a9d25ab4d38858e3369f7aed45c" + }, + { + "m_Id": "7eb3b00684374b3ba2bd8be059d9d11d" + }, + { + "m_Id": "471d69768b3143c28bcd29941d55b24d" + } + ], + "synonyms": [ + "multiplication", + "times", + "x" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "a93caca8319c449b980155eed9e4d3ed", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": { + "x": 1.0, + "y": 1.0, + "z": 1.0, + "w": 1.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "ac343ab52b6548c78d7be88d92330ecc", + "m_Id": 3, + "m_DisplayName": "B", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "aef4cd9ceab0488b9f80ee544878b9e1", + "m_Id": 0, + "m_DisplayName": "RGBA", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "RGBA", + "m_StageCapability": 2, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "b07720188c364ec593eb969739c9c287", + "m_Id": 2, + "m_DisplayName": "Y", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Y", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [ + "Y" + ] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "b18c3e20d78f4fa38c46a18a020fddf2", + "m_Id": 4, + "m_DisplayName": "R", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "R", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "b30de319244046f6a482b20af8eba3ca", + "m_Id": 0, + "m_DisplayName": "Roughness", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Internal.Texture2DShaderProperty", + "m_ObjectId": "b34aeef26d00428489bdea9a7f11788a", + "m_Guid": { + "m_GuidSerialized": "faa5e58d-2520-4f65-9d9f-7fd1e13237cf" + }, + "m_Name": "NormalMap", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "NormalMap", + "m_DefaultReferenceName": "_NormalMap", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": { + "m_SerializedTexture": "", + "m_Guid": "" + }, + "isMainTexture": false, + "useTilingAndOffset": false, + "m_Modifiable": true, + "m_DefaultType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "b8e89f4b5c2e4d98afcd8525d8b16d68", + "m_Id": 4, + "m_DisplayName": "A", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "bdac9cf259ee4c9785441c958ebe2c82", + "m_Id": 0, + "m_DisplayName": "A", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": { + "e00": 0.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 0.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 0.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 0.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "c195827d123741be9a33c73964d1c7bd", + "m_Id": 1, + "m_DisplayName": "Strength", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Strength", + "m_StageCapability": 3, + "m_Value": 1.0, + "m_DefaultValue": 1.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "c98c7be5086a49788ddac6b44947626a", + "m_Id": 4, + "m_DisplayName": "R", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "R", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DMaterialSlot", + "m_ObjectId": "cd3b41827c9f4ed3a832df5466451ee4", + "m_Id": 0, + "m_DisplayName": "MetallicRoughnessMap", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_BareResource": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "cd89087ed9db48ddb642060735ab4f35", + "m_Id": 6, + "m_DisplayName": "B", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", + "m_ObjectId": "ce3cdbc510db4cc192fdc9aacf3189c7", + "m_Id": 0, + "m_DisplayName": "In", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "In", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 1.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "ce40e4791e8d451c92633a89d2b6623e", + "m_Id": 2, + "m_DisplayName": "Alpha", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Alpha", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "d0190bd214234175b32325104c503ea4", + "m_Id": 0, + "m_DisplayName": "RGBA", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "RGBA", + "m_StageCapability": 2, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "d20a75c55807482d8a5bc564bb1e5033", + "m_Id": 2, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "d4562f8a59c04a76bcf052f84219bacf", + "m_Id": 5, + "m_DisplayName": "G", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "G", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty", + "m_ObjectId": "d94e9e3c962941ada3f359c02435554a", + "m_Guid": { + "m_GuidSerialized": "7158af0f-43b5-4192-8219-b5dceaa50e9c" + }, + "m_Name": "OcclusionStrength", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "OcclusionStrength", + "m_DefaultReferenceName": "_OcclusionStrength", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": 1.0, + "m_FloatType": 0, + "m_RangeValues": { + "x": 0.0, + "y": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "de4ae76b50584c558f032b86843eaf3c", + "m_Id": 4, + "m_DisplayName": "R", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "R", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Internal.Texture2DShaderProperty", + "m_ObjectId": "dec62a6ca6c94573b68f5277b3c59ab6", + "m_Guid": { + "m_GuidSerialized": "d9244f52-772a-4de5-aeb8-8d877a97e8b7" + }, + "m_Name": "EmissionMap", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "EmissionMap", + "m_DefaultReferenceName": "_EmissionMap", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": { + "m_SerializedTexture": "{\"texture\":{\"fileID\":2800000,\"guid\":\"09e6225be3a2a43489e11a41cb198377\",\"type\":3}}", + "m_Guid": "" + }, + "isMainTexture": false, + "useTilingAndOffset": false, + "m_Modifiable": true, + "m_DefaultType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "dfc51385ceda4d86a36a8ea7f19c6d88", + "m_Id": 3, + "m_DisplayName": "Z", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Z", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [ + "Z" + ] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.MultiplyNode", + "m_ObjectId": "e2b1237b8d9f4984aaa93fa1014ad32f", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Multiply", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 253.9999237060547, + "y": -385.9999694824219, + "width": 209.33335876464845, + "height": 303.9999694824219 + } + }, + "m_Slots": [ + { + "m_Id": "1b3d1b7d83e04d988887477411921a9f" + }, + { + "m_Id": "8d9b4b001a2b4c9dba4a3c4d6586517f" + }, + { + "m_Id": "13725fe0ce284486a708f897d08e7f93" + } + ], + "synonyms": [ + "multiplication", + "times", + "x" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DMaterialSlot", + "m_ObjectId": "e3a75f5bd043431cb63f6c57005833a2", + "m_Id": 0, + "m_DisplayName": "NormalMap", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_BareResource": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", + "m_ObjectId": "e4e2e3c250ee419d80684aee3834c4ae", + "m_Id": 0, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.NormalStrengthNode", + "m_ObjectId": "e5c2a7ebd0b44eb0b6ded1ca3bc70850", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Normal Strength", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 149.33334350585938, + "y": 878.6666870117188, + "width": 209.33331298828126, + "height": 304.00006103515627 + } + }, + "m_Slots": [ + { + "m_Id": "ce3cdbc510db4cc192fdc9aacf3189c7" + }, + { + "m_Id": "c195827d123741be9a33c73964d1c7bd" + }, + { + "m_Id": "1eb8d79419ba44c29e52bc41d5c6360b" + } + ], + "synonyms": [ + "intensity" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", + "m_ObjectId": "e670c006d04c420e95fb34da172bb9a3", + "m_Id": 1, + "m_DisplayName": "BaseColor", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "BaseColor", + "m_StageCapability": 2, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "e7d900bf26d949a59c6342be77402d0f", + "m_Id": 2, + "m_DisplayName": "G", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "G", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "e9d21fe40b8740c7a371e1efbc8677e4", + "m_Id": 5, + "m_DisplayName": "Metallic", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Metallic", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty", + "m_ObjectId": "ea1b4577ae37440ebb7646f685359b91", + "m_Guid": { + "m_GuidSerialized": "f752957a-ec1a-4574-8fac-9b1b9dc26de0" + }, + "m_Name": "Roughness", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "Roughness", + "m_DefaultReferenceName": "_Roughness", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": 0.0, + "m_FloatType": 0, + "m_RangeValues": { + "x": 0.0, + "y": 1.0 + } +} + +{ + "m_SGVersion": 3, + "m_Type": "UnityEditor.ShaderGraph.Internal.ColorShaderProperty", + "m_ObjectId": "eb31e1d5ba694a60885248856af53466", + "m_Guid": { + "m_GuidSerialized": "bf455d07-d15f-40c3-96b7-f94d24e299b3" + }, + "m_Name": "EmissionColor", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "EmissionColor", + "m_DefaultReferenceName": "_EmissionColor", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": { + "r": 0.0, + "g": 0.0, + "b": 0.0, + "a": 0.0 + }, + "isMainColor": false, + "m_ColorMode": 1 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector3Node", + "m_ObjectId": "eb539082e9b44af9a45e06fce943e79b", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Vector 3", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 63.99998092651367, + "y": -386.0000305175781, + "width": 129.3333740234375, + "height": 126.66668701171875 + } + }, + "m_Slots": [ + { + "m_Id": "7356a6fd7b654cf3a667db6cd631793e" + }, + { + "m_Id": "b07720188c364ec593eb969739c9c287" + }, + { + "m_Id": "468040b3744c433f87ddd3275deb90bc" + }, + { + "m_Id": "e4e2e3c250ee419d80684aee3834c4ae" + } + ], + "synonyms": [ + "3", + "v3", + "vec3", + "float3" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Internal.Texture2DShaderProperty", + "m_ObjectId": "eb9d3331c84c4ad29780f6475d74ec64", + "m_Guid": { + "m_GuidSerialized": "bc3d4243-09da-46a4-9dc6-0c47f9eb6c2b" + }, + "m_Name": "MetallicRoughnessMap", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "MetallicRoughnessMap", + "m_DefaultReferenceName": "_MetallicRoughnessMap", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": { + "m_SerializedTexture": "{\"texture\":{\"fileID\":2800000,\"guid\":\"909670d47b2f55d4a991788acca59d7e\",\"type\":3}}", + "m_Guid": "" + }, + "isMainTexture": false, + "useTilingAndOffset": false, + "m_Modifiable": true, + "m_DefaultType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SamplerStateMaterialSlot", + "m_ObjectId": "ebf689c11ef842838e8e183bd480c74a", + "m_Id": 3, + "m_DisplayName": "Sampler", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Sampler", + "m_StageCapability": 3, + "m_BareResource": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", + "m_ObjectId": "ec56dfa66b7b49aeb8c725e966bca89e", + "m_Id": 0, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "efcf7ac5789140f7b2bf528268ce2eb8", + "m_Id": 5, + "m_DisplayName": "G", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "G", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "f0c42c328d6644529d4ebb7ee48d16f7", + "m_Id": 0, + "m_DisplayName": "EmissionColor", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "f20fc1b4e639441d87909a30ddc3b4a0", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -440.66668701171877, + "y": 978.6665649414063, + "width": 120.0, + "height": 36.0001220703125 + } + }, + "m_Slots": [ + { + "m_Id": "3a5db45a2ab244ac8b422a9f4ce47086" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "fddfcfba23f4484197ced74f6a153680" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DMaterialSlot", + "m_ObjectId": "f9563785968c4a608b3e810745614987", + "m_Id": 0, + "m_DisplayName": "EmissionMap", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_BareResource": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "fa41d8f133734d46b073f60d63ac25ef", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -439.3333435058594, + "y": 451.9999694824219, + "width": 102.66668701171875, + "height": 36.00006103515625 + } + }, + "m_Slots": [ + { + "m_Id": "b30de319244046f6a482b20af8eba3ca" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "ea1b4577ae37440ebb7646f685359b91" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "fb41c688927f4aed99055b7c3ccca5fc", + "m_Id": 4, + "m_DisplayName": "R", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "R", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty", + "m_ObjectId": "fddfcfba23f4484197ced74f6a153680", + "m_Guid": { + "m_GuidSerialized": "d703b665-c68c-4723-b0fe-9322ff9f1b4d" + }, + "m_Name": "NormalStrength", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "NormalStrength", + "m_DefaultReferenceName": "_NormalStrength", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": 0.0, + "m_FloatType": 0, + "m_RangeValues": { + "x": 0.0, + "y": 1.0 + } +} + diff --git a/Assets/VRM10/Samples~/VRM10Viewer/Assets/TinyPbr_SubGraph.shadersubgraph.meta b/Assets/VRM10/Samples~/VRM10Viewer/Assets/TinyPbr_SubGraph.shadersubgraph.meta new file mode 100644 index 000000000..fd427abd2 --- /dev/null +++ b/Assets/VRM10/Samples~/VRM10Viewer/Assets/TinyPbr_SubGraph.shadersubgraph.meta @@ -0,0 +1,10 @@ +fileFormatVersion: 2 +guid: 2fe3270edce96f4438a6dcc501a8c5cd +ScriptedImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 2 + userData: + assetBundleName: + assetBundleVariant: + script: {fileID: 11500000, guid: 60072b568d64c40a485e0fc55012dc9f, type: 3} diff --git a/Assets/VRM10/Samples~/VRM10Viewer/Assets/black.png b/Assets/VRM10/Samples~/VRM10Viewer/Assets/black.png new file mode 100644 index 0000000000000000000000000000000000000000..aa8727af7477c12b66881bfabe91216f9e0abd42 GIT binary patch literal 68 zcmeAS@N?(olHy`uVBq!ia0vp^Od!kwBL7~QRScxKJzX3_IIbrrIIuA=@G&qNzPu|6 P6lU;r^>bP0l+XkKoE;79 literal 0 HcmV?d00001 diff --git a/Assets/VRM10/Samples~/VRM10Viewer/Assets/black.png.meta b/Assets/VRM10/Samples~/VRM10Viewer/Assets/black.png.meta new file mode 100644 index 000000000..37047a83e --- /dev/null +++ b/Assets/VRM10/Samples~/VRM10Viewer/Assets/black.png.meta @@ -0,0 +1,127 @@ +fileFormatVersion: 2 +guid: d8c7685da35f7994799534cbc1acce4a +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 13 + mipmaps: + mipMapMode: 0 + enableMipMap: 1 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 0 + wrapV: 0 + wrapW: 0 + nPOTScale: 1 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 0 + spriteTessellationDetail: -1 + textureType: 0 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/VRM10/Samples~/VRM10Viewer/Assets/blue.png b/Assets/VRM10/Samples~/VRM10Viewer/Assets/blue.png new file mode 100644 index 0000000000000000000000000000000000000000..35cd4570f0705db3aa3258f52758ae66ceaa7419 GIT binary patch literal 79 zcmeAS@N?(olHy`uVBq!ia0vp^Od!kwBL7~QRScxWJY5_^IIbtBB>Xsk;J|?+Kz!f; a0|U1_BlFF5tKxww7(8A5T-G@yGywqqeiuUk literal 0 HcmV?d00001 diff --git a/Assets/VRM10/Samples~/VRM10Viewer/Assets/blue.png.meta b/Assets/VRM10/Samples~/VRM10Viewer/Assets/blue.png.meta new file mode 100644 index 000000000..78c97a508 --- /dev/null +++ b/Assets/VRM10/Samples~/VRM10Viewer/Assets/blue.png.meta @@ -0,0 +1,127 @@ +fileFormatVersion: 2 +guid: 909670d47b2f55d4a991788acca59d7e +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 13 + mipmaps: + mipMapMode: 0 + enableMipMap: 1 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 0 + wrapV: 0 + wrapW: 0 + nPOTScale: 1 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 0 + spriteTessellationDetail: -1 + textureType: 0 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/VRM10/Samples~/VRM10Viewer/Assets/red.png b/Assets/VRM10/Samples~/VRM10Viewer/Assets/red.png new file mode 100644 index 0000000000000000000000000000000000000000..b90efb932a03fd2d0251dfcd544cd5a93a018845 GIT binary patch literal 79 zcmeAS@N?(olHy`uVBq!ia0vp^Od!kwBL7~QRScxWJY5_^IIbuEIe!2Ij(|y^dRazh U?U&0=097z}y85}Sb4q9e02Z$o^#A|> literal 0 HcmV?d00001 diff --git a/Assets/VRM10/Samples~/VRM10Viewer/Assets/red.png.meta b/Assets/VRM10/Samples~/VRM10Viewer/Assets/red.png.meta new file mode 100644 index 000000000..21e77cd47 --- /dev/null +++ b/Assets/VRM10/Samples~/VRM10Viewer/Assets/red.png.meta @@ -0,0 +1,127 @@ +fileFormatVersion: 2 +guid: 51ce5cf2de6d788449c2fdd4b8488a92 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 13 + mipmaps: + mipMapMode: 0 + enableMipMap: 1 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 0 + wrapV: 0 + wrapW: 0 + nPOTScale: 1 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 0 + spriteTessellationDetail: -1 + textureType: 0 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/VRM10/Samples~/VRM10Viewer/Assets/white.png b/Assets/VRM10/Samples~/VRM10Viewer/Assets/white.png new file mode 100644 index 0000000000000000000000000000000000000000..8cd9f771b390c3a52ade99568cd4a51856b6b74b GIT binary patch literal 79 zcmeAS@N?(olHy`uVBq!ia0vp^Od!kwBL7~QRScxWJY5_^IIbuE`TyUZnVDG_h=G7X Xg^ihUuiWEZKotz0u6{1-oD!M + /// 順に TryCreateParam を実行して最初に成功したら終わる。 + /// 全て失敗したら UrpGltfDefaultMaterialImporter を実行する。 + /// 通常 vrm-1.0, unlit, pbr の順に試行する。 + /// + /// + public OrderedMaterialDescriptorGenerator(params IMaterialImporter[] importers) + { + _importers = importers; + } + + public MaterialDescriptor Get(GltfData data, int i) + { + foreach (var importer in _importers) + { + if (importer.TryCreateParam(data, i, out var param)) + { + return param; + } + } + // NOTE: Fallback to default material + if (Symbols.VRM_DEVELOP) + { + UniGLTFLogger.Warning($"material: {i} out of range. fallback"); + } + return GetGltfDefault(GltfMaterialImportUtils.ImportMaterialName(i, null)); + } + + public MaterialDescriptor GetGltfDefault(string materialName = null) => DefaultMaterialImporter.CreateParam(materialName); + } +} \ No newline at end of file diff --git a/Assets/VRM10/Samples~/VRM10Viewer/TinyPbrDescriptorGenerator.cs.meta b/Assets/VRM10/Samples~/VRM10Viewer/OrderedMaterialDescriptorGenerator.cs.meta similarity index 100% rename from Assets/VRM10/Samples~/VRM10Viewer/TinyPbrDescriptorGenerator.cs.meta rename to Assets/VRM10/Samples~/VRM10Viewer/OrderedMaterialDescriptorGenerator.cs.meta diff --git a/Assets/VRM10/Samples~/VRM10Viewer/TinyMToonMaterialContext.cs b/Assets/VRM10/Samples~/VRM10Viewer/TinyMToonMaterialContext.cs new file mode 100644 index 000000000..d74440732 --- /dev/null +++ b/Assets/VRM10/Samples~/VRM10Viewer/TinyMToonMaterialContext.cs @@ -0,0 +1,133 @@ +using System.Dynamic; +using UnityEngine; + +namespace UniVRM10.VRM10Viewer +{ + public class TinyMToonMaterialContext + { + // + // When using shadergraph, you need to expose the following properties. + // + + /// + /// Color = White + /// + private static readonly int BaseColorProp = Shader.PropertyToID("_BaseColor"); + /// + /// Texture2D = white + /// When using shadergraph, require "Set as Main Texture" + /// + private static readonly int BaseMapProp = Shader.PropertyToID("_BaseMap"); + + private static readonly int ShadingColorFactorProp = Shader.PropertyToID("_ShadingColor"); + private static readonly int ShadingMapProp = Shader.PropertyToID("_ShadingMap"); + private static readonly int ShadingToonyFactorProp = Shader.PropertyToID("_ShadingToonyFactor"); + + /// + /// float = 1.0 + /// + private static readonly int BumpScaleProp = Shader.PropertyToID("_BumpScale"); + /// + /// Texture2D = [0, 0, 1.0] + /// + private static readonly int BumpMapProp = Shader.PropertyToID("_BumpMap"); + + /// + /// Color = black + /// + private static readonly int EmissionColorProp = Shader.PropertyToID("_EmissionColor"); + /// + /// Texture2D = black + /// + private static readonly int EmissionMapProp = Shader.PropertyToID("_EmissionMap"); + + /// + /// boolean keyword + /// + private static readonly int CutoffEnabledProp = Shader.PropertyToID("_CutoffEnabled"); + /// + /// float = 0.5 + /// + private static readonly int CutoffProp = Shader.PropertyToID("_Cutoff"); + + public readonly Material Material; + public TinyMToonMaterialContext(Material material) + { + Material = material; + } + + public Color BaseColorSrgb + { + get => Material.GetColor(BaseColorProp); + set => Material.SetColor(BaseColorProp, value); + } + public Texture BaseTexture + { + get => Material.GetTexture(BaseMapProp); + set => Material.SetTexture(BaseMapProp, value); + } + public Vector2 BaseTextureOffset + { + get => Material.GetTextureOffset(BaseMapProp); + set => Material.SetTextureOffset(BaseMapProp, value); + } + public Vector2 BaseTextureScale + { + get => Material.GetTextureScale(BaseMapProp); + set => Material.SetTextureScale(BaseMapProp, value); + } + + public Color ShadingColorFactorSrgb + { + get => Material.GetColor(ShadingColorFactorProp); + set => Material.SetColor(ShadingColorFactorProp, value); + } + public Texture ShadingTexture + { + get => Material.GetTexture(ShadingMapProp); + set => Material.SetTexture(ShadingMapProp, value); + } + public float ShadingToonyFactor + { + get => Material.GetFloat(ShadingToonyFactorProp); + set => Material.SetFloat(ShadingToonyFactorProp, value); + } + + public float BumpScale + { + get => Material.GetFloat(BumpScaleProp); + set => Material.SetFloat(BumpScaleProp, value); + } + public Texture BumpMap + { + get => Material.GetTexture(BumpMapProp); + set + { + Material.SetTexture(BumpMapProp, value); + } + } + + public Color EmissionColorLinear + { + get => Material.GetColor(EmissionColorProp); + set => Material.SetColor(EmissionColorProp, value); + } + public Texture EmissionTexture + { + get => Material.GetTexture(EmissionMapProp); + set => Material.SetTexture(EmissionMapProp, value); + } + + public bool CutoffEnabled + { + get => Material.GetInt(CutoffEnabledProp) != 0; + set => Material.SetInt(CutoffEnabledProp, value ? 1 : 0); + } + + public float Cutoff + { + get => Material.GetFloat(CutoffProp); + set => Material.SetFloat(CutoffProp, value); + } + } +} \ No newline at end of file diff --git a/Assets/VRM10/Samples~/VRM10Viewer/TinyMToonMaterialContext.cs.meta b/Assets/VRM10/Samples~/VRM10Viewer/TinyMToonMaterialContext.cs.meta new file mode 100644 index 000000000..1f1447c44 --- /dev/null +++ b/Assets/VRM10/Samples~/VRM10Viewer/TinyMToonMaterialContext.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 74278bbebb772d043ad87b46a42e9cc3 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/VRM10/Samples~/VRM10Viewer/TinyMToonMaterialImporter.cs b/Assets/VRM10/Samples~/VRM10Viewer/TinyMToonMaterialImporter.cs new file mode 100644 index 000000000..bd467cd5d --- /dev/null +++ b/Assets/VRM10/Samples~/VRM10Viewer/TinyMToonMaterialImporter.cs @@ -0,0 +1,115 @@ +using System; +using System.Collections.Generic; +using System.Threading.Tasks; +using UniGLTF; +using UniGLTF.Extensions.VRMC_materials_mtoon; +using UnityEngine; + +namespace UniVRM10.VRM10Viewer +{ + public class TinyMToonrMaterialImporter : IMaterialImporter + { + private Material m_opaque; + private Material m_alphablend; + public TinyMToonrMaterialImporter(Material opaque, Material alphablend) + { + m_opaque = opaque; + m_alphablend = alphablend; + } + + bool IMaterialImporter.TryCreateParam(GltfData data, int i, out MaterialDescriptor matDesc) + { + if (i < 0 || i >= data.GLTF.materials.Count) + { + matDesc = default; + return false; + } + + var src = data.GLTF.materials[i]; + if (!UniGLTF.Extensions.VRMC_materials_mtoon.GltfDeserializer.TryGet(src.extensions, out var mtoon)) + { + // Fallback to glTF, when MToon extension does not exist. + matDesc = default; + return false; + } + + matDesc = new MaterialDescriptor( + GltfMaterialImportUtils.ImportMaterialName(i, src), + src.alphaMode == "BLEND" ? m_alphablend.shader : m_opaque.shader, + null, + new Dictionary(), + new Dictionary(), + new Dictionary(), + new Dictionary(), + new List>(), + new[] { (MaterialDescriptor.MaterialGenerateAsyncFunc)AsyncAction } + ); + return true; + + Task AsyncAction(Material x, GetTextureAsyncFunc y, IAwaitCaller z) => GenerateMaterialAsync(data, src, mtoon, x, y, z); + } + + public static async Task GenerateMaterialAsync(GltfData data, glTFMaterial src, VRMC_materials_mtoon mtoon, Material dst, GetTextureAsyncFunc getTextureAsync, IAwaitCaller awaitCaller) + { + var context = new TinyMToonMaterialContext(dst); + + ImportSurfaceSettings(src, context); + await ImportBaseShadeColorAsync(data, src, mtoon, context, getTextureAsync, awaitCaller); + // await ImportMetallicRoughnessAsync(data, src, context, getTextureAsync, awaitCaller); + // await ImportOcclusionAsync(data, src, context, getTextureAsync, awaitCaller); + // await ImportNormalAsync(data, src, context, getTextureAsync, awaitCaller); + // await ImportEmissionAsync(data, src, context, getTextureAsync, awaitCaller); + + // context.Validate(); + } + + public static void ImportSurfaceSettings(glTFMaterial src, TinyMToonMaterialContext context) + { + // context.SurfaceType = src.alphaMode switch + // { + // "OPAQUE" => UrpLitSurfaceType.Opaque, + // "MASK" => UrpLitSurfaceType.Transparent, + // "BLEND" => UrpLitSurfaceType.Transparent, + // _ => UrpLitSurfaceType.Opaque, + // }; + // context.BlendMode = context.SurfaceType switch + // { + // UrpLitSurfaceType.Transparent => UrpLitBlendMode.Alpha, + // _ => UrpLitBlendMode.Alpha, + // }; + context.CutoffEnabled = src.alphaMode == "MASK"; + context.Cutoff = src.alphaCutoff; + // context.CullMode = src.doubleSided ? CullMode.Off : CullMode.Back; + } + + public static async Task ImportBaseShadeColorAsync(GltfData data, glTFMaterial src, VRMC_materials_mtoon mtoon, TinyMToonMaterialContext context, GetTextureAsyncFunc getTextureAsync, IAwaitCaller awaitCaller) + { + var baseColorFactor = GltfMaterialImportUtils.ImportLinearBaseColorFactor(data, src); + if (baseColorFactor.HasValue) + { + context.BaseColorSrgb = baseColorFactor.Value.gamma; + } + + if (src is { pbrMetallicRoughness: { baseColorTexture: { index: >= 0 } } }) + { + if (GltfPbrTextureImporter.TryBaseColorTexture(data, src, out _, out var desc)) + { + context.BaseTexture = await getTextureAsync(desc, awaitCaller); + context.BaseTextureOffset = desc.Offset; + context.BaseTextureScale = desc.Scale; + } + } + + context.ShadingToonyFactor = mtoon.ShadingToonyFactor.GetValueOrDefault(); + var shadeColor = mtoon.ShadeColorFactor?.ToColor3(UniGLTF.ColorSpace.Linear, UniGLTF.ColorSpace.sRGB); + context.ShadingColorFactorSrgb = shadeColor.GetValueOrDefault(Color.white); + if (mtoon is { ShadeMultiplyTexture: { Index: >= 0 } }) + { + if (Vrm10MToonTextureImporter.TryGetShadeMultiplyTexture(data, mtoon, out var _, out var desc)) + { + context.ShadingTexture = await getTextureAsync(desc, awaitCaller); + } + } + } + } +} \ No newline at end of file diff --git a/Assets/VRM10/Samples~/VRM10Viewer/TinyMToonMaterialImporter.cs.meta b/Assets/VRM10/Samples~/VRM10Viewer/TinyMToonMaterialImporter.cs.meta new file mode 100644 index 000000000..45cb388c7 --- /dev/null +++ b/Assets/VRM10/Samples~/VRM10Viewer/TinyMToonMaterialImporter.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 65362ac3cba13c14299e8a8ce356927d +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/VRM10/Samples~/VRM10Viewer/TinyPbrContext.cs b/Assets/VRM10/Samples~/VRM10Viewer/TinyPbrContext.cs deleted file mode 100644 index 0a455330f..000000000 --- a/Assets/VRM10/Samples~/VRM10Viewer/TinyPbrContext.cs +++ /dev/null @@ -1,33 +0,0 @@ -using UnityEngine; - -namespace UniVRM10.VRM10Viewer -{ - public class TinyPbrContext - { - private static readonly int BaseMap = Shader.PropertyToID("_BaseMap"); - public readonly Material Material; - - public Texture BaseTexture - { - get => Material.GetTexture(BaseMap); - set => Material.SetTexture(BaseMap, value); - } - - public Vector2 BaseTextureOffset - { - get => Material.GetTextureOffset(BaseMap); - set => Material.SetTextureOffset(BaseMap, value); - } - - public Vector2 BaseTextureScale - { - get => Material.GetTextureScale(BaseMap); - set => Material.SetTextureScale(BaseMap, value); - } - - public TinyPbrContext(Material material) - { - Material = material; - } - } -} \ No newline at end of file diff --git a/Assets/VRM10/Samples~/VRM10Viewer/TinyPbrDescriptorGenerator.cs b/Assets/VRM10/Samples~/VRM10Viewer/TinyPbrDescriptorGenerator.cs deleted file mode 100644 index 8382e0822..000000000 --- a/Assets/VRM10/Samples~/VRM10Viewer/TinyPbrDescriptorGenerator.cs +++ /dev/null @@ -1,84 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Threading.Tasks; -using UniGLTF; -using UnityEngine; - -namespace UniVRM10.VRM10Viewer -{ - /// - /// GLTF の MaterialImporter - /// - public sealed class TinyPbrDescriptorGenerator : IMaterialDescriptorGenerator - { - public UrpGltfPbrMaterialImporter PbrMaterialImporter { get; } = new(); - public UrpGltfDefaultMaterialImporter DefaultMaterialImporter { get; } = new(); - - public Material Material { get; set; } - - public TinyPbrDescriptorGenerator(Material material) - { - Material = material; - } - - public MaterialDescriptor Get(GltfData data, int i) - { - // TODO: VRM - - // UNLIT - MaterialDescriptor param; - // if (BuiltInGltfUnlitMaterialImporter.TryCreateParam(data, i, out param)) return param; - - if (TryCreateParam(data, i, out param)) return param; - - // NOTE: Fallback to default material - if (Symbols.VRM_DEVELOP) - { - UniGLTFLogger.Warning($"material: {i} out of range. fallback"); - } - return GetGltfDefault(GltfMaterialImportUtils.ImportMaterialName(i, null)); - } - - public MaterialDescriptor GetGltfDefault(string materialName = null) => DefaultMaterialImporter.CreateParam(materialName); - - public bool TryCreateParam(GltfData data, int i, out MaterialDescriptor matDesc) - { - if (i < 0 || i >= data.GLTF.materials.Count) - { - matDesc = default; - return false; - } - - var src = data.GLTF.materials[i]; - matDesc = new MaterialDescriptor( - GltfMaterialImportUtils.ImportMaterialName(i, src), - Material.shader, - null, - new Dictionary(), - new Dictionary(), - new Dictionary(), - new Dictionary(), - new List>(), - new[] { (MaterialDescriptor.MaterialGenerateAsyncFunc)AsyncAction } - ); - return true; - - Task AsyncAction(Material x, GetTextureAsyncFunc y, IAwaitCaller z) => GenerateMaterialAsync(data, src, x, y, z); - } - - public static async Task GenerateMaterialAsync(GltfData data, glTFMaterial src, Material dst, GetTextureAsyncFunc getTextureAsync, IAwaitCaller awaitCaller) - { - var context = new TinyPbrContext(dst); - - if (src is { pbrMetallicRoughness: { baseColorTexture: { index: >= 0 } } }) - { - if (GltfPbrTextureImporter.TryBaseColorTexture(data, src, out _, out var desc)) - { - context.BaseTexture = await getTextureAsync(desc, awaitCaller); - context.BaseTextureOffset = desc.Offset; - context.BaseTextureScale = desc.Scale; - } - } - } - } -} \ No newline at end of file diff --git a/Assets/VRM10/Samples~/VRM10Viewer/TinyPbrMaterialContext.cs b/Assets/VRM10/Samples~/VRM10Viewer/TinyPbrMaterialContext.cs new file mode 100644 index 000000000..3f74055e6 --- /dev/null +++ b/Assets/VRM10/Samples~/VRM10Viewer/TinyPbrMaterialContext.cs @@ -0,0 +1,154 @@ +using UnityEngine; + +namespace UniVRM10.VRM10Viewer +{ + public class TinyPbrMaterialContext + { + // + // When using shadergraph, you need to expose the following properties. + // + + /// + /// Color = White + /// + private static readonly int BaseColorProp = Shader.PropertyToID("_BaseColor"); + /// + /// Texture2D = white + /// When using shadergraph, require "Set as Main Texture" + /// + private static readonly int BaseMapProp = Shader.PropertyToID("_BaseMap"); + /// + /// float = 1.0 + /// + private static readonly int OcclusionStrengthProp = Shader.PropertyToID("_OcclusionStrength"); + /// + /// Texture2D.Red = 1.0. + /// + private static readonly int OcclusionMapProp = Shader.PropertyToID("_OcclusionMap"); + private static readonly int RoughnessProp = Shader.PropertyToID("_Roughness"); + private static readonly int MetallicProp = Shader.PropertyToID("_Metallic"); + /// + /// Texture2D.Green = 1.0. The roughness + /// Texture2D.Blue = 1.0. The metalness + /// + private static readonly int MetallicRoughnessMapProp = Shader.PropertyToID("_MetallicRoughnessMap"); + /// + /// float = 1.0 + /// + private static readonly int BumpScaleProp = Shader.PropertyToID("_BumpScale"); + /// + /// Texture2D = [0, 0, 1.0] + /// + private static readonly int BumpMapProp = Shader.PropertyToID("_BumpMap"); + /// + /// Color = black + /// + private static readonly int EmissionColorProp = Shader.PropertyToID("_EmissionColor"); + /// + /// Texture2D = black + /// + private static readonly int EmissionMapProp = Shader.PropertyToID("_EmissionMap"); + /// + /// boolean keyword + /// + private static readonly int CutoffEnabledProp = Shader.PropertyToID("_CutoffEnabled"); + /// + /// float = 0.5 + /// + private static readonly int CutoffProp = Shader.PropertyToID("_Cutoff"); + + public readonly Material Material; + public TinyPbrMaterialContext(Material material) + { + Material = material; + } + + public Color BaseColorSrgb + { + get => Material.GetColor(BaseColorProp); + set => Material.SetColor(BaseColorProp, value); + } + public Texture BaseTexture + { + get => Material.GetTexture(BaseMapProp); + set => Material.SetTexture(BaseMapProp, value); + } + public Vector2 BaseTextureOffset + { + get => Material.GetTextureOffset(BaseMapProp); + set => Material.SetTextureOffset(BaseMapProp, value); + } + public Vector2 BaseTextureScale + { + get => Material.GetTextureScale(BaseMapProp); + set => Material.SetTextureScale(BaseMapProp, value); + } + + public float OcclusionStrength + { + get => Material.GetFloat(OcclusionStrengthProp); + set => Material.SetFloat(OcclusionStrengthProp, value); + } + public Texture OcclusionTexture + { + get => Material.GetTexture(OcclusionMapProp); + set + { + Material.SetTexture(OcclusionMapProp, value); + } + } + + public float Roughness + { + get => Material.GetFloat(RoughnessProp); + set => Material.SetFloat(RoughnessProp, value); + } + public float Metallic + { + get => Material.GetFloat(MetallicProp); + set => Material.SetFloat(MetallicProp, value); + } + public Texture MetallicRoughnessMap + { + get => Material.GetTexture(MetallicRoughnessMapProp); + set => Material.SetTexture(MetallicRoughnessMapProp, value); + } + + public float BumpScale + { + get => Material.GetFloat(BumpScaleProp); + set => Material.SetFloat(BumpScaleProp, value); + } + public Texture BumpMap + { + get => Material.GetTexture(BumpMapProp); + set + { + Material.SetTexture(BumpMapProp, value); + } + } + + public Color EmissionColorLinear + { + get => Material.GetColor(EmissionColorProp); + set => Material.SetColor(EmissionColorProp, value); + } + public Texture EmissionTexture + { + get => Material.GetTexture(EmissionMapProp); + set => Material.SetTexture(EmissionMapProp, value); + } + + public bool CutoffEnabled + { + get => Material.GetInt(CutoffEnabledProp) != 0; + set => Material.SetInt(CutoffEnabledProp, value ? 1 : 0); + } + + public float Cutoff + { + get => Material.GetFloat(CutoffProp); + set => Material.SetFloat(CutoffProp, value); + } + } +} \ No newline at end of file diff --git a/Assets/VRM10/Samples~/VRM10Viewer/TinyPbrContext.cs.meta b/Assets/VRM10/Samples~/VRM10Viewer/TinyPbrMaterialContext.cs.meta similarity index 100% rename from Assets/VRM10/Samples~/VRM10Viewer/TinyPbrContext.cs.meta rename to Assets/VRM10/Samples~/VRM10Viewer/TinyPbrMaterialContext.cs.meta diff --git a/Assets/VRM10/Samples~/VRM10Viewer/TinyPbrMaterialImporter.cs b/Assets/VRM10/Samples~/VRM10Viewer/TinyPbrMaterialImporter.cs new file mode 100644 index 000000000..35f137a28 --- /dev/null +++ b/Assets/VRM10/Samples~/VRM10Viewer/TinyPbrMaterialImporter.cs @@ -0,0 +1,163 @@ +using System; +using System.Collections.Generic; +using System.Threading.Tasks; +using UniGLTF; +using UnityEngine; + +namespace UniVRM10.VRM10Viewer +{ + public class TinyPbrMaterialImporter : IMaterialImporter + { + // public const string ALPHABLEND_SHADER_NAME = "Shader Graphs/TinyPbrAlphaBlend"; + // public const string OPAQUE_SHADER_NAME = "Shader Graphs/TinyPbrOpaque"; + + Material m_opaque; + Material m_alphablend; + + public TinyPbrMaterialImporter(Material opaque, Material alphablend) + { + m_opaque = opaque; + m_alphablend = alphablend; + } + + bool IMaterialImporter.TryCreateParam(GltfData data, int i, out MaterialDescriptor matDesc) + { + if (i < 0 || i >= data.GLTF.materials.Count) + { + matDesc = default; + return false; + } + + var src = data.GLTF.materials[i]; + matDesc = new MaterialDescriptor( + GltfMaterialImportUtils.ImportMaterialName(i, src), + src.alphaMode == "BLEND" ? m_alphablend.shader : m_opaque.shader, + null, + new Dictionary(), + new Dictionary(), + new Dictionary(), + new Dictionary(), + new List>(), + new[] { (MaterialDescriptor.MaterialGenerateAsyncFunc)AsyncAction } + ); + return true; + + Task AsyncAction(Material x, GetTextureAsyncFunc y, IAwaitCaller z) => GenerateMaterialAsync(data, src, x, y, z); + } + + public static async Task GenerateMaterialAsync(GltfData data, glTFMaterial src, Material dst, GetTextureAsyncFunc getTextureAsync, IAwaitCaller awaitCaller) + { + var context = new TinyPbrMaterialContext(dst); + + ImportSurfaceSettings(src, context); + await ImportBaseColorAsync(data, src, context, getTextureAsync, awaitCaller); + await ImportMetallicRoughnessAsync(data, src, context, getTextureAsync, awaitCaller); + await ImportOcclusionAsync(data, src, context, getTextureAsync, awaitCaller); + await ImportNormalAsync(data, src, context, getTextureAsync, awaitCaller); + await ImportEmissionAsync(data, src, context, getTextureAsync, awaitCaller); + + // context.Validate(); + } + + public static void ImportSurfaceSettings(glTFMaterial src, TinyPbrMaterialContext context) + { + // context.SurfaceType = src.alphaMode switch + // { + // "OPAQUE" => UrpLitSurfaceType.Opaque, + // "MASK" => UrpLitSurfaceType.Transparent, + // "BLEND" => UrpLitSurfaceType.Transparent, + // _ => UrpLitSurfaceType.Opaque, + // }; + // context.BlendMode = context.SurfaceType switch + // { + // UrpLitSurfaceType.Transparent => UrpLitBlendMode.Alpha, + // _ => UrpLitBlendMode.Alpha, + // }; + context.CutoffEnabled = src.alphaMode == "MASK"; + context.Cutoff = src.alphaCutoff; + // context.CullMode = src.doubleSided ? CullMode.Off : CullMode.Back; + } + + public static async Task ImportBaseColorAsync(GltfData data, glTFMaterial src, TinyPbrMaterialContext context, GetTextureAsyncFunc getTextureAsync, IAwaitCaller awaitCaller) + { + var baseColorFactor = GltfMaterialImportUtils.ImportLinearBaseColorFactor(data, src); + if (baseColorFactor.HasValue) + { + context.BaseColorSrgb = baseColorFactor.Value.gamma; + } + + if (src is { pbrMetallicRoughness: { baseColorTexture: { index: >= 0 } } }) + { + if (GltfPbrTextureImporter.TryBaseColorTexture(data, src, out _, out var desc)) + { + context.BaseTexture = await getTextureAsync(desc, awaitCaller); + context.BaseTextureOffset = desc.Offset; + context.BaseTextureScale = desc.Scale; + } + } + } + + public static async Task ImportMetallicRoughnessAsync(GltfData data, glTFMaterial src, TinyPbrMaterialContext context, GetTextureAsyncFunc getTextureAsync, IAwaitCaller awaitCaller) + { + if (src.pbrMetallicRoughness != null) + { + context.Metallic = src.pbrMetallicRoughness.metallicFactor; + context.Roughness = src.pbrMetallicRoughness.roughnessFactor; + } + + if (src is { pbrMetallicRoughness: { metallicRoughnessTexture: { index: >= 0 } } }) + { + var (offset, scale) = GltfTextureImporter.GetTextureOffsetAndScale(src.pbrMetallicRoughness.metallicRoughnessTexture); + if (GltfTextureImporter.TryCreateLinear(data, src.pbrMetallicRoughness.metallicRoughnessTexture.index, offset, scale, out var _, out var desc)) + { + context.MetallicRoughnessMap = await getTextureAsync(desc, awaitCaller); + } + } + } + + public static async Task ImportOcclusionAsync(GltfData data, glTFMaterial src, TinyPbrMaterialContext context, GetTextureAsyncFunc getTextureAsync, IAwaitCaller awaitCaller) + { + if (src.occlusionTexture != null) + { + context.OcclusionStrength = src.occlusionTexture.strength; + } + if (src is { occlusionTexture: { index: >= 0 } }) + { + var (offset, scale) = GltfTextureImporter.GetTextureOffsetAndScale(src.occlusionTexture); + if (GltfTextureImporter.TryCreateLinear(data, src.occlusionTexture.index, offset, scale, out var _, out var desc)) + { + context.OcclusionTexture = await getTextureAsync(desc, awaitCaller); + } + } + } + + private static async Task ImportNormalAsync(GltfData data, glTFMaterial src, TinyPbrMaterialContext context, GetTextureAsyncFunc getTextureAsync, IAwaitCaller awaitCaller) + { + if (src.normalTexture is { index: >= 0 }) + { + if (GltfPbrTextureImporter.TryNormalTexture(data, src, out _, out var desc)) + { + context.BumpMap = await getTextureAsync(desc, awaitCaller); + context.BumpScale = src.normalTexture.scale; + } + } + } + + private static async Task ImportEmissionAsync(GltfData data, glTFMaterial src, TinyPbrMaterialContext context, GetTextureAsyncFunc getTextureAsync, IAwaitCaller awaitCaller) + { + var emissiveFactor = GltfMaterialImportUtils.ImportLinearEmissiveFactor(data, src); + if (emissiveFactor.HasValue) + { + context.EmissionColorLinear = emissiveFactor.Value; + } + + if (src is { emissiveTexture: { index: >= 0 } }) + { + if (GltfPbrTextureImporter.TryEmissiveTexture(data, src, out _, out var desc)) + { + context.EmissionTexture = await getTextureAsync(desc, awaitCaller); + } + } + } + } +} \ No newline at end of file diff --git a/Assets/VRM10/Samples~/VRM10Viewer/TinyPbrMaterialImporter.cs.meta b/Assets/VRM10/Samples~/VRM10Viewer/TinyPbrMaterialImporter.cs.meta new file mode 100644 index 000000000..c29e35b99 --- /dev/null +++ b/Assets/VRM10/Samples~/VRM10Viewer/TinyPbrMaterialImporter.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 0f9b3156e6cb9e84b924ab9e062df7fe +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/VRM10/Samples~/VRM10Viewer/VRM10Loaded.cs b/Assets/VRM10/Samples~/VRM10Viewer/VRM10Loaded.cs index b1cf55fe2..4bf684d04 100644 --- a/Assets/VRM10/Samples~/VRM10Viewer/VRM10Loaded.cs +++ b/Assets/VRM10/Samples~/VRM10Viewer/VRM10Loaded.cs @@ -10,7 +10,7 @@ namespace UniVRM10.VRM10Viewer Vrm10Instance m_vrm; public Vrm10Instance Instance => m_vrm; public Vrm10RuntimeControlRig ControlRig => m_vrm.Runtime.ControlRig; - public Vrm10Runtime Runtime => m_vrm.Runtime; + public Vrm10Runtime Runtime => m_vrm?.Runtime; public Loaded(RuntimeGltfInstance instance) { diff --git a/Assets/VRM10/Samples~/VRM10Viewer/VRM10Viewer.unity b/Assets/VRM10/Samples~/VRM10Viewer/VRM10Viewer.unity index dcd3d9073..dc470aae5 100644 --- a/Assets/VRM10/Samples~/VRM10Viewer/VRM10Viewer.unity +++ b/Assets/VRM10/Samples~/VRM10Viewer/VRM10Viewer.unity @@ -4717,7 +4717,7 @@ Transform: m_GameObject: {fileID: 322182884} serializedVersion: 2 m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalPosition: {x: 0, y: -0.001, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: [] @@ -30638,7 +30638,13 @@ MonoBehaviour: Root: {fileID: 124675793} m_version: {fileID: 1268276256} m_faceCamera: {fileID: 1150163685} - m_customMaterial: {fileID: -876546973899608171, guid: ac58f8c11a130e04ba883a82ae4b78e4, + m_pbrOpaqueMaterial: {fileID: -876546973899608171, guid: ac58f8c11a130e04ba883a82ae4b78e4, + type: 3} + m_pbrAlphaBlendMaterial: {fileID: -876546973899608171, guid: 868190a58757d6242bb3ca456402f82f, + type: 3} + m_mtoonMaterialOpaque: {fileID: -876546973899608171, guid: fd08e80eb7e04e849b8a6d534e48efea, + type: 3} + m_mtoonMaterialAlphaBlend: {fileID: -876546973899608171, guid: 6b60fe85d745eda4281e3278fcb0657c, type: 3} m_useCustomMaterial: {fileID: 731212246} m_openModel: {fileID: 2009818433} diff --git a/Assets/VRM10/Samples~/VRM10Viewer/VRM10ViewerUI.cs b/Assets/VRM10/Samples~/VRM10Viewer/VRM10ViewerUI.cs index f76456da5..c6e7bd2f9 100644 --- a/Assets/VRM10/Samples~/VRM10Viewer/VRM10ViewerUI.cs +++ b/Assets/VRM10/Samples~/VRM10Viewer/VRM10ViewerUI.cs @@ -24,7 +24,13 @@ namespace UniVRM10.VRM10Viewer [Header("Material")] [SerializeField] - Material m_customMaterial = default; + Material m_pbrOpaqueMaterial = default; + [SerializeField] + Material m_pbrAlphaBlendMaterial = default; + [SerializeField] + Material m_mtoonMaterialOpaque = default; + [SerializeField] + Material m_mtoonMaterialAlphaBlend = default; [Header("UI")] [SerializeField] @@ -479,8 +485,23 @@ namespace UniVRM10.VRM10Viewer VRM10Blinker m_autoBlink; VRM10AIUEO m_autoLipsync; + private class UnlitMaterialImporter : IMaterialImporter + { + bool IMaterialImporter.TryCreateParam(GltfData data, int i, out MaterialDescriptor matDesc) + { + return BuiltInGltfUnlitMaterialImporter.TryCreateParam(data, i, out matDesc); + } + } + private UnlitMaterialImporter m_unlitImporter = new(); + + private TinyMToonrMaterialImporter m_mtoonImporter; + private TinyPbrMaterialImporter m_pbrImporter; + private void Start() { + m_mtoonImporter = new(m_mtoonMaterialOpaque, m_mtoonMaterialAlphaBlend); + m_pbrImporter = new(m_pbrOpaqueMaterial, m_pbrAlphaBlendMaterial); + m_autoEmotion = gameObject.AddComponent(); m_autoBlink = gameObject.AddComponent(); m_autoLipsync = gameObject.AddComponent(); @@ -499,13 +520,13 @@ namespace UniVRM10.VRM10Viewer Motion = BvhMotion.LoadBvhFromText(m_motion.text); if (m_useCustomMaterial.isOn) { - Motion.SetBoxManMaterial(Instantiate(m_customMaterial)); + Motion.SetBoxManMaterial(Instantiate(m_pbrOpaqueMaterial)); } } if (ArgumentChecker.TryGetFirstLoadable(out var cmd)) { - var _ = LoadModel(cmd); + var _ = LoadModelPath(cmd); } m_texts.Start(); @@ -558,96 +579,97 @@ namespace UniVRM10.VRM10Viewer StopSpringBoneWriteback = m_springbonePause.isOn, SupportsScalingAtRuntime = m_springboneScaling.isOn, }); - } - m_happy.ApplyRuntime(m_loaded.Instance.Vrm.Expression.Happy); - m_angry.ApplyRuntime(m_loaded.Instance.Vrm.Expression.Angry); - m_sad.ApplyRuntime(m_loaded.Instance.Vrm.Expression.Sad); - m_relaxed.ApplyRuntime(m_loaded.Instance.Vrm.Expression.Relaxed); - m_surprised.ApplyRuntime(m_loaded.Instance.Vrm.Expression.Surprised); - m_lipAa.ApplyRuntime(m_loaded.Instance.Vrm.Expression.Aa); - m_lipIh.ApplyRuntime(m_loaded.Instance.Vrm.Expression.Ih); - m_lipOu.ApplyRuntime(m_loaded.Instance.Vrm.Expression.Ou); - m_lipEe.ApplyRuntime(m_loaded.Instance.Vrm.Expression.Ee); - m_lipOh.ApplyRuntime(m_loaded.Instance.Vrm.Expression.Oh); - m_blink.ApplyRuntime(m_loaded.Instance.Vrm.Expression.Blink); - if (m_enableAutoExpression.isOn) - { - vrm.Runtime.Expression.SetWeight(ExpressionKey.Happy, m_autoEmotion.Happy); - vrm.Runtime.Expression.SetWeight(ExpressionKey.Angry, m_autoEmotion.Angry); - vrm.Runtime.Expression.SetWeight(ExpressionKey.Sad, m_autoEmotion.Sad); - vrm.Runtime.Expression.SetWeight(ExpressionKey.Relaxed, m_autoEmotion.Relaxed); - vrm.Runtime.Expression.SetWeight(ExpressionKey.Surprised, m_autoEmotion.Surprised); - m_happy.m_expression.SetValueWithoutNotify(m_autoEmotion.Happy); - m_angry.m_expression.SetValueWithoutNotify(m_autoEmotion.Angry); - m_sad.m_expression.SetValueWithoutNotify(m_autoEmotion.Sad); - m_relaxed.m_expression.SetValueWithoutNotify(m_autoEmotion.Relaxed); - m_surprised.m_expression.SetValueWithoutNotify(m_autoEmotion.Surprised); - } - else - { - vrm.Runtime.Expression.SetWeight(ExpressionKey.Happy, m_happy.m_expression.value); - vrm.Runtime.Expression.SetWeight(ExpressionKey.Angry, m_angry.m_expression.value); - vrm.Runtime.Expression.SetWeight(ExpressionKey.Sad, m_sad.m_expression.value); - vrm.Runtime.Expression.SetWeight(ExpressionKey.Relaxed, m_relaxed.m_expression.value); - vrm.Runtime.Expression.SetWeight(ExpressionKey.Surprised, m_surprised.m_expression.value); - } + m_happy.ApplyRuntime(m_loaded.Instance.Vrm.Expression.Happy); + m_angry.ApplyRuntime(m_loaded.Instance.Vrm.Expression.Angry); + m_sad.ApplyRuntime(m_loaded.Instance.Vrm.Expression.Sad); + m_relaxed.ApplyRuntime(m_loaded.Instance.Vrm.Expression.Relaxed); + m_surprised.ApplyRuntime(m_loaded.Instance.Vrm.Expression.Surprised); + m_lipAa.ApplyRuntime(m_loaded.Instance.Vrm.Expression.Aa); + m_lipIh.ApplyRuntime(m_loaded.Instance.Vrm.Expression.Ih); + m_lipOu.ApplyRuntime(m_loaded.Instance.Vrm.Expression.Ou); + m_lipEe.ApplyRuntime(m_loaded.Instance.Vrm.Expression.Ee); + m_lipOh.ApplyRuntime(m_loaded.Instance.Vrm.Expression.Oh); + m_blink.ApplyRuntime(m_loaded.Instance.Vrm.Expression.Blink); - if (m_enableLipSync.isOn) - { - vrm.Runtime.Expression.SetWeight(ExpressionKey.Aa, m_autoLipsync.Aa); - vrm.Runtime.Expression.SetWeight(ExpressionKey.Ih, m_autoLipsync.Ih); - vrm.Runtime.Expression.SetWeight(ExpressionKey.Ou, m_autoLipsync.Ou); - vrm.Runtime.Expression.SetWeight(ExpressionKey.Ee, m_autoLipsync.Ee); - vrm.Runtime.Expression.SetWeight(ExpressionKey.Oh, m_autoLipsync.Oh); - m_lipAa.m_expression.SetValueWithoutNotify(m_autoLipsync.Aa); - m_lipIh.m_expression.SetValueWithoutNotify(m_autoLipsync.Ih); - m_lipOu.m_expression.SetValueWithoutNotify(m_autoLipsync.Ou); - m_lipEe.m_expression.SetValueWithoutNotify(m_autoLipsync.Ee); - m_lipOh.m_expression.SetValueWithoutNotify(m_autoLipsync.Oh); - } - else - { - vrm.Runtime.Expression.SetWeight(ExpressionKey.Aa, m_lipAa.m_expression.value); - vrm.Runtime.Expression.SetWeight(ExpressionKey.Ih, m_lipIh.m_expression.value); - vrm.Runtime.Expression.SetWeight(ExpressionKey.Ou, m_lipOu.m_expression.value); - vrm.Runtime.Expression.SetWeight(ExpressionKey.Ee, m_lipEe.m_expression.value); - vrm.Runtime.Expression.SetWeight(ExpressionKey.Oh, m_lipOh.m_expression.value); - } + if (m_enableAutoExpression.isOn) + { + vrm.Runtime.Expression.SetWeight(ExpressionKey.Happy, m_autoEmotion.Happy); + vrm.Runtime.Expression.SetWeight(ExpressionKey.Angry, m_autoEmotion.Angry); + vrm.Runtime.Expression.SetWeight(ExpressionKey.Sad, m_autoEmotion.Sad); + vrm.Runtime.Expression.SetWeight(ExpressionKey.Relaxed, m_autoEmotion.Relaxed); + vrm.Runtime.Expression.SetWeight(ExpressionKey.Surprised, m_autoEmotion.Surprised); + m_happy.m_expression.SetValueWithoutNotify(m_autoEmotion.Happy); + m_angry.m_expression.SetValueWithoutNotify(m_autoEmotion.Angry); + m_sad.m_expression.SetValueWithoutNotify(m_autoEmotion.Sad); + m_relaxed.m_expression.SetValueWithoutNotify(m_autoEmotion.Relaxed); + m_surprised.m_expression.SetValueWithoutNotify(m_autoEmotion.Surprised); + } + else + { + vrm.Runtime.Expression.SetWeight(ExpressionKey.Happy, m_happy.m_expression.value); + vrm.Runtime.Expression.SetWeight(ExpressionKey.Angry, m_angry.m_expression.value); + vrm.Runtime.Expression.SetWeight(ExpressionKey.Sad, m_sad.m_expression.value); + vrm.Runtime.Expression.SetWeight(ExpressionKey.Relaxed, m_relaxed.m_expression.value); + vrm.Runtime.Expression.SetWeight(ExpressionKey.Surprised, m_surprised.m_expression.value); + } - if (m_enableAutoBlink.isOn) - { - vrm.Runtime.Expression.SetWeight(ExpressionKey.Blink, m_autoBlink.BlinkValue); - m_blink.m_expression.SetValueWithoutNotify(m_autoBlink.BlinkValue); - } - else - { - vrm.Runtime.Expression.SetWeight(ExpressionKey.Blink, m_blink.m_expression.value); - } + if (m_enableLipSync.isOn) + { + vrm.Runtime.Expression.SetWeight(ExpressionKey.Aa, m_autoLipsync.Aa); + vrm.Runtime.Expression.SetWeight(ExpressionKey.Ih, m_autoLipsync.Ih); + vrm.Runtime.Expression.SetWeight(ExpressionKey.Ou, m_autoLipsync.Ou); + vrm.Runtime.Expression.SetWeight(ExpressionKey.Ee, m_autoLipsync.Ee); + vrm.Runtime.Expression.SetWeight(ExpressionKey.Oh, m_autoLipsync.Oh); + m_lipAa.m_expression.SetValueWithoutNotify(m_autoLipsync.Aa); + m_lipIh.m_expression.SetValueWithoutNotify(m_autoLipsync.Ih); + m_lipOu.m_expression.SetValueWithoutNotify(m_autoLipsync.Ou); + m_lipEe.m_expression.SetValueWithoutNotify(m_autoLipsync.Ee); + m_lipOh.m_expression.SetValueWithoutNotify(m_autoLipsync.Oh); + } + else + { + vrm.Runtime.Expression.SetWeight(ExpressionKey.Aa, m_lipAa.m_expression.value); + vrm.Runtime.Expression.SetWeight(ExpressionKey.Ih, m_lipIh.m_expression.value); + vrm.Runtime.Expression.SetWeight(ExpressionKey.Ou, m_lipOu.m_expression.value); + vrm.Runtime.Expression.SetWeight(ExpressionKey.Ee, m_lipEe.m_expression.value); + vrm.Runtime.Expression.SetWeight(ExpressionKey.Oh, m_lipOh.m_expression.value); + } - if (m_useLookAtTarget.isOn) - { - var (yaw, pitch) = vrm.Runtime.LookAt.CalculateYawPitchFromLookAtPosition(m_lookAtTarget.transform.position); - vrm.Runtime.LookAt.SetYawPitchManually(yaw, pitch); - m_yaw.value = yaw; - m_pitch.value = pitch; - } - else - { - vrm.Runtime.LookAt.SetYawPitchManually(m_yaw.value, m_pitch.value); - } + if (m_enableAutoBlink.isOn) + { + vrm.Runtime.Expression.SetWeight(ExpressionKey.Blink, m_autoBlink.BlinkValue); + m_blink.m_expression.SetValueWithoutNotify(m_autoBlink.BlinkValue); + } + else + { + vrm.Runtime.Expression.SetWeight(ExpressionKey.Blink, m_blink.m_expression.value); + } - if (vrm.TryGetBoneTransform(HumanBodyBones.Head, out var head)) - { - var initLocarlRotation = vrm.DefaultTransformStates[head].LocalRotation; - var r = head.rotation * Quaternion.Inverse(initLocarlRotation); - var pos = head.position - + (r * Vector3.forward * 0.7f) - + (r * Vector3.up * 0.07f) - ; - m_faceCamera.position = pos; - m_faceCamera.rotation = r; + if (m_useLookAtTarget.isOn) + { + var (yaw, pitch) = vrm.Runtime.LookAt.CalculateYawPitchFromLookAtPosition(m_lookAtTarget.transform.position); + vrm.Runtime.LookAt.SetYawPitchManually(yaw, pitch); + m_yaw.value = yaw; + m_pitch.value = pitch; + } + else + { + vrm.Runtime.LookAt.SetYawPitchManually(m_yaw.value, m_pitch.value); + } + + if (vrm.TryGetBoneTransform(HumanBodyBones.Head, out var head)) + { + var initLocarlRotation = vrm.DefaultTransformStates[head].LocalRotation; + var r = head.rotation * Quaternion.Inverse(initLocarlRotation); + var pos = head.position + + (r * Vector3.forward * 0.7f) + + (r * Vector3.up * 0.07f) + ; + m_faceCamera.position = pos; + m_faceCamera.rotation = r; + } } } } @@ -657,10 +679,10 @@ namespace UniVRM10.VRM10Viewer string FileDialog() { -#if UNITY_EDITOR - return UnityEditor.EditorUtility.OpenFilePanel("Open VRM", "", "vrm"); +#if UNITY_EDITOR + return UnityEditor.EditorUtility.OpenFilePanel("Open VRM", "", "vrm,glb,gltf,zip"); #elif UNITY_STANDALONE_WIN - return VRM10FileDialogForWindows.FileDialog("open VRM", "vrm"); + return VRM10FileDialogForWindows.FileDialog("open VRM", "vrm", "glb", "gltf", "zip"); #elif UNITY_WEBGL // Open WebGL_VRM10_VRM10Viewer_FileDialog // see: Assets/UniGLTF/Runtime/Utils/Plugins/OpenFile.jslib @@ -675,19 +697,7 @@ namespace UniVRM10.VRM10Viewer void OnOpenModelClicked() { var path = FileDialog(); - if (string.IsNullOrEmpty(path)) - { - return; - } - - var ext = Path.GetExtension(path).ToLower(); - if (ext != ".vrm") - { - UniGLTFLogger.Warning($"{path} is not vrm"); - return; - } - - _ = LoadModel(path); + _ = LoadModelPath(path); } /// @@ -704,15 +714,15 @@ namespace UniVRM10.VRM10Viewer { var www = new WWW(url); yield return www; - var _ = LoadModel("WebGL.vrm", www.bytes); + var _ = LoadModelBytes("WebGL.vrm", www.bytes); } async void OnOpenMotionClicked() { -#if UNITY_STANDALONE_WIN +#if UNITY_EDITOR + var path = UnityEditor.EditorUtility.OpenFilePanel("Open Motion", "", "bvh,gltf,glb,vrma"); +#elif UNITY_STANDALONE_WIN var path = VRM10FileDialogForWindows.FileDialog("open Motion", "bvh", "gltf", "glb", "vrma"); -#elif UNITY_EDITOR - var path = UnityEditor.EditorUtility.OpenFilePanel("Open Motion", "", "bvh"); #else var path = Application.dataPath + "/default.bvh"; #endif @@ -780,23 +790,11 @@ namespace UniVRM10.VRM10Viewer } } - static IMaterialDescriptorGenerator GetVrmMaterialDescriptorGenerator(bool useUrp) - { - if (useUrp) - { - return new UrpVrm10MaterialDescriptorGenerator(); - } - else - { - return new BuiltInVrm10MaterialDescriptorGenerator(); - } - } - IMaterialDescriptorGenerator GetMaterialDescriptorGenerator() { if (m_useCustomMaterial.isOn) { - return new TinyPbrDescriptorGenerator(m_customMaterial); + return new OrderedMaterialDescriptorGenerator(m_mtoonImporter, m_unlitImporter, m_pbrImporter); } else { @@ -808,11 +806,14 @@ namespace UniVRM10.VRM10Viewer { if (m_useAsync.isOn) { -#if UNITY_WEBGL - return new RuntimeOnlyNoThreadAwaitCaller(); -#else - return new RuntimeOnlyAwaitCaller(); -#endif + if (Application.platform == RuntimePlatform.WebGLPlayer) + { + return new RuntimeOnlyNoThreadAwaitCaller(); + } + else + { + return new RuntimeOnlyAwaitCaller(); + } } else { @@ -820,13 +821,13 @@ namespace UniVRM10.VRM10Viewer } } - async Task LoadModel(string path) + async Task LoadModelPath(string path) { var bytes = await File.ReadAllBytesAsync(path); - await LoadModel(path, bytes); + await LoadModelBytes(path, bytes); } - async Task LoadModel(string path, byte[] bytes) + async Task LoadModelBytes(string path, byte[] bytes) { // cleanup m_loaded?.Dispose(); @@ -837,6 +838,9 @@ namespace UniVRM10.VRM10Viewer try { + // + // try VRM + // UniGLTFLogger.Log($"{path}"); var vrm10Instance = await Vrm10.LoadBytesAsync(bytes, canLoadVrm0X: true, @@ -876,16 +880,34 @@ namespace UniVRM10.VRM10Viewer m_lipOh.OnLoad(m_loaded.Instance.Vrm.Expression.Oh); m_blink.OnLoad(m_loaded.Instance.Vrm.Expression.Blink); } - catch (Exception ex) + catch (Exception) { - if (ex is OperationCanceledException) + try { - UniGLTFLogger.Warning($"Canceled to Load: {path}"); + // + // fallback gltf + // + var instance = await GltfUtility.LoadBytesAsync(path, bytes, + awaitCaller: GetIAwaitCaller(), + materialGenerator: GetMaterialDescriptorGenerator() + ); + + instance.ShowMeshes(); + instance.EnableUpdateWhenOffscreen(); + m_loaded = new Loaded(instance); + m_showBoxMan.isOn = false; } - else + catch (Exception ex) { - UniGLTFLogger.Error($"Failed to Load: {path}"); - UniGLTFLogger.Exception(ex); + if (ex is OperationCanceledException) + { + UniGLTFLogger.Warning($"Canceled to Load: {path}"); + } + else + { + UniGLTFLogger.Error($"Failed to Load: {path}"); + UniGLTFLogger.Exception(ex); + } } } } diff --git a/Assets/VRM10/package.json b/Assets/VRM10/package.json index d3110637e..cc640104a 100644 --- a/Assets/VRM10/package.json +++ b/Assets/VRM10/package.json @@ -1,6 +1,6 @@ { "name": "com.vrmc.vrm", - "version": "0.128.1", + "version": "0.128.2", "displayName": "VRM-1.0", "description": "VRM-1.0 importer", "unity": "2021.3", @@ -14,7 +14,7 @@ "name": "VRM Consortium" }, "dependencies": { - "com.vrmc.gltf": "0.128.1" + "com.vrmc.gltf": "0.128.2" }, "samples": [ { From 1007fe4539a3936024acffb24b2c9105a10339fe Mon Sep 17 00:00:00 2001 From: Masataka SUMI Date: Sun, 16 Feb 2025 02:13:05 +0900 Subject: [PATCH 19/56] MToonOutlineRenderFeature supports RenderGraph. --- .../MToon10/Runtime/MToonOutlineRenderFeature.cs | 14 ++++++++++++++ .../MToon10/Runtime/MToonOutlineRenderPass.cs | 5 +---- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/Assets/VRM10/MToon10/Runtime/MToonOutlineRenderFeature.cs b/Assets/VRM10/MToon10/Runtime/MToonOutlineRenderFeature.cs index 760b40692..ba4d8a4b1 100644 --- a/Assets/VRM10/MToon10/Runtime/MToonOutlineRenderFeature.cs +++ b/Assets/VRM10/MToon10/Runtime/MToonOutlineRenderFeature.cs @@ -6,13 +6,27 @@ namespace VRM10.MToon10 { public sealed class MToonOutlineRenderFeature : ScriptableRendererFeature { +#if UNITY_6000_0_OR_NEWER + private RenderObjectsPass _opaquePass; + private RenderObjectsPass _transparentPass; +#else private MToonOutlineRenderPass _opaquePass; private MToonOutlineRenderPass _transparentPass; +#endif public override void Create() { +#if UNITY_6000_0_OR_NEWER + var profilerTagName = nameof(MToonOutlineRenderFeature); + var shaderTags = new[] {"MToonOutline"}; + var layerMask = -1; + var cameraSettings = new RenderObjects.CustomCameraSettings(); + _opaquePass = new RenderObjectsPass(profilerTagName, RenderPassEvent.AfterRenderingOpaques, shaderTags, RenderQueueType.Opaque, layerMask, cameraSettings); + _transparentPass = new RenderObjectsPass(profilerTagName, RenderPassEvent.BeforeRenderingTransparents, shaderTags, RenderQueueType.Transparent, layerMask, cameraSettings); +#else _opaquePass = new MToonOutlineRenderPass(RenderPassEvent.AfterRenderingOpaques, RenderQueueRange.opaque); _transparentPass = new MToonOutlineRenderPass(RenderPassEvent.BeforeRenderingTransparents, RenderQueueRange.transparent); +#endif } public override void AddRenderPasses(ScriptableRenderer renderer, ref RenderingData renderingData) diff --git a/Assets/VRM10/MToon10/Runtime/MToonOutlineRenderPass.cs b/Assets/VRM10/MToon10/Runtime/MToonOutlineRenderPass.cs index 8529aca07..4e4227b0d 100644 --- a/Assets/VRM10/MToon10/Runtime/MToonOutlineRenderPass.cs +++ b/Assets/VRM10/MToon10/Runtime/MToonOutlineRenderPass.cs @@ -1,4 +1,4 @@ -#if MTOON_URP +#if MTOON_URP && !UNITY_6000_0_OR_NEWER using UnityEngine.Rendering; using UnityEngine.Rendering.Universal; @@ -17,9 +17,6 @@ namespace VRM10.MToon10 this.renderPassEvent = renderPassEvent; } -#if UNITY_6000_0_OR_NEWER - [System.Obsolete] -#endif public override void Execute(ScriptableRenderContext context, ref RenderingData renderingData) { var cmd = CommandBufferPool.Get(); From a76a11c330bda11af584e19d9fb8333396ee2fd8 Mon Sep 17 00:00:00 2001 From: ousttrue Date: Mon, 17 Feb 2025 15:10:06 +0900 Subject: [PATCH 20/56] fix Vrm10Viewer when RenderPipeLine is built-in. --- .../VRM10_Samples/VRM10Viewer/VRM10ViewerUI.cs | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/Assets/VRM10_Samples/VRM10Viewer/VRM10ViewerUI.cs b/Assets/VRM10_Samples/VRM10Viewer/VRM10ViewerUI.cs index c6e7bd2f9..87193c97e 100644 --- a/Assets/VRM10_Samples/VRM10Viewer/VRM10ViewerUI.cs +++ b/Assets/VRM10_Samples/VRM10Viewer/VRM10ViewerUI.cs @@ -499,8 +499,14 @@ namespace UniVRM10.VRM10Viewer private void Start() { - m_mtoonImporter = new(m_mtoonMaterialOpaque, m_mtoonMaterialAlphaBlend); - m_pbrImporter = new(m_pbrOpaqueMaterial, m_pbrAlphaBlendMaterial); + if (m_mtoonMaterialOpaque != null && m_mtoonMaterialAlphaBlend != null) + { + m_mtoonImporter = new(m_mtoonMaterialOpaque, m_mtoonMaterialAlphaBlend); + } + if (m_pbrOpaqueMaterial != null && m_pbrAlphaBlendMaterial != null) + { + m_pbrImporter = new(m_pbrOpaqueMaterial, m_pbrAlphaBlendMaterial); + } m_autoEmotion = gameObject.AddComponent(); m_autoBlink = gameObject.AddComponent(); @@ -520,7 +526,10 @@ namespace UniVRM10.VRM10Viewer Motion = BvhMotion.LoadBvhFromText(m_motion.text); if (m_useCustomMaterial.isOn) { - Motion.SetBoxManMaterial(Instantiate(m_pbrOpaqueMaterial)); + if (m_pbrAlphaBlendMaterial != null) + { + Motion.SetBoxManMaterial(Instantiate(m_pbrOpaqueMaterial)); + } } } @@ -792,7 +801,7 @@ namespace UniVRM10.VRM10Viewer IMaterialDescriptorGenerator GetMaterialDescriptorGenerator() { - if (m_useCustomMaterial.isOn) + if (m_useCustomMaterial.isOn && (m_mtoonImporter != null || m_pbrImporter != null)) { return new OrderedMaterialDescriptorGenerator(m_mtoonImporter, m_unlitImporter, m_pbrImporter); } From 25a42f8de827a604da27bdbe2e97707c4a8dadca Mon Sep 17 00:00:00 2001 From: ousttrue Date: Mon, 17 Feb 2025 15:54:46 +0900 Subject: [PATCH 21/56] =?UTF-8?q?copy=20=E5=BF=98=E3=82=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../VRM10/Samples~/VRM10Viewer/VRM10ViewerUI.cs | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/Assets/VRM10/Samples~/VRM10Viewer/VRM10ViewerUI.cs b/Assets/VRM10/Samples~/VRM10Viewer/VRM10ViewerUI.cs index c6e7bd2f9..87193c97e 100644 --- a/Assets/VRM10/Samples~/VRM10Viewer/VRM10ViewerUI.cs +++ b/Assets/VRM10/Samples~/VRM10Viewer/VRM10ViewerUI.cs @@ -499,8 +499,14 @@ namespace UniVRM10.VRM10Viewer private void Start() { - m_mtoonImporter = new(m_mtoonMaterialOpaque, m_mtoonMaterialAlphaBlend); - m_pbrImporter = new(m_pbrOpaqueMaterial, m_pbrAlphaBlendMaterial); + if (m_mtoonMaterialOpaque != null && m_mtoonMaterialAlphaBlend != null) + { + m_mtoonImporter = new(m_mtoonMaterialOpaque, m_mtoonMaterialAlphaBlend); + } + if (m_pbrOpaqueMaterial != null && m_pbrAlphaBlendMaterial != null) + { + m_pbrImporter = new(m_pbrOpaqueMaterial, m_pbrAlphaBlendMaterial); + } m_autoEmotion = gameObject.AddComponent(); m_autoBlink = gameObject.AddComponent(); @@ -520,7 +526,10 @@ namespace UniVRM10.VRM10Viewer Motion = BvhMotion.LoadBvhFromText(m_motion.text); if (m_useCustomMaterial.isOn) { - Motion.SetBoxManMaterial(Instantiate(m_pbrOpaqueMaterial)); + if (m_pbrAlphaBlendMaterial != null) + { + Motion.SetBoxManMaterial(Instantiate(m_pbrOpaqueMaterial)); + } } } @@ -792,7 +801,7 @@ namespace UniVRM10.VRM10Viewer IMaterialDescriptorGenerator GetMaterialDescriptorGenerator() { - if (m_useCustomMaterial.isOn) + if (m_useCustomMaterial.isOn && (m_mtoonImporter != null || m_pbrImporter != null)) { return new OrderedMaterialDescriptorGenerator(m_mtoonImporter, m_unlitImporter, m_pbrImporter); } From 8d6f5f5fde013d5921e1e8c3e9c55816226940bf Mon Sep 17 00:00:00 2001 From: ousttrue Date: Tue, 18 Feb 2025 17:49:07 +0900 Subject: [PATCH 22/56] show runtime LookAt info --- Assets/VRM10/Editor/Vrm10InstanceEditor.cs | 79 ++++++++++++++++++++-- 1 file changed, 75 insertions(+), 4 deletions(-) diff --git a/Assets/VRM10/Editor/Vrm10InstanceEditor.cs b/Assets/VRM10/Editor/Vrm10InstanceEditor.cs index 906398682..233efce13 100644 --- a/Assets/VRM10/Editor/Vrm10InstanceEditor.cs +++ b/Assets/VRM10/Editor/Vrm10InstanceEditor.cs @@ -24,6 +24,8 @@ namespace UniVRM10 LookAt, SpringBone, } + static Tab s_selected = default; + static bool s_foldRuntimeLookAt = false; Vrm10Instance m_instance; @@ -226,7 +228,7 @@ namespace UniVRM10 root.Add(s); } - var tabs = new EnumField("select UI", default(Tab)); + var tabs = new EnumField("select UI", s_selected); root.Add(tabs); var body = new VisualElement(); @@ -239,7 +241,7 @@ namespace UniVRM10 foreach (var (tab, content) in contents) { // content.visible = tab == Tab.VrmInstance; - content.style.display = tab == Tab.VrmInstance + content.style.display = tab == s_selected ? DisplayStyle.Flex : DisplayStyle.None ; @@ -249,11 +251,11 @@ namespace UniVRM10 tabs.RegisterValueChangedCallback(e => { - var selected = (Tab)e.newValue; + s_selected = (Tab)e.newValue; foreach (var (tab, content) in contents) { // content.visible = tab == selected; - content.style.display = tab == selected + content.style.display = tab == s_selected ? DisplayStyle.Flex : DisplayStyle.None ; @@ -277,11 +279,80 @@ namespace UniVRM10 void GUILookAt() { + if (!target) + { + return; + } serializedObject.Update(); EditorGUILayout.PropertyField(m_drawLookatGizmo); EditorGUILayout.PropertyField(m_lookatTarget); EditorGUILayout.PropertyField(m_lookatTargetType); serializedObject.ApplyModifiedProperties(); + + // lookat info + if (Application.isPlaying) + { + EditorGUILayout.Space(); + s_foldRuntimeLookAt = EditorGUILayout.Foldout(s_foldRuntimeLookAt, "RuntimeInfo"); + if (s_foldRuntimeLookAt) + { + var enabled = GUI.enabled; + GUI.enabled = false; + EditorGUILayout.Slider("yaw(-180 ~ +180)", m_instance.Runtime.LookAt.Yaw, -180, 180); + EditorGUILayout.Slider("pitch(-90 ~ +90)", m_instance.Runtime.LookAt.Pitch, -90, 90); + if (m_instance.Runtime.LookAt.EyeDirectionApplicable is LookAtEyeDirectionApplicableToBone) + { + EditorGUILayout.LabelField("BoneTYpe"); + } + else if (m_instance.Runtime.LookAt.EyeDirectionApplicable is LookAtEyeDirectionApplicableToExpression) + { + EditorGUILayout.LabelField("ExpressionType"); + var w = m_instance.Runtime.Expression.ActualWeights; + // left + if (w.TryGetValue(ExpressionKey.LookLeft, out var left)) + { + EditorGUILayout.Slider("left", left, 0, 1); + } + else + { + EditorGUILayout.TextField("left"); + } + // right + if (w.TryGetValue(ExpressionKey.LookRight, out var right)) + { + EditorGUILayout.Slider("right", right, 0, 1); + } + else + { + EditorGUILayout.TextField("right"); + } + // up + if (w.TryGetValue(ExpressionKey.LookUp, out var up)) + { + EditorGUILayout.Slider("up", up, 0, 1); + } + else + { + EditorGUILayout.TextField("up"); + } + // down + if (w.TryGetValue(ExpressionKey.LookDown, out var down)) + { + EditorGUILayout.Slider("down", down, 0, 1); + } + else + { + EditorGUILayout.TextField("down"); + } + } + else + { + EditorGUILayout.LabelField($"UnknownTYpe: {m_instance.Runtime.LookAt.EyeDirectionApplicable}"); + } + GUI.enabled = enabled; + Repaint(); + } + } } VisualElement GUISpringBone() From ca59e1912bded7ea7f7afc17d8f2ea4e8310b0b7 Mon Sep 17 00:00:00 2001 From: ousttrue Date: Tue, 18 Feb 2025 17:49:30 +0900 Subject: [PATCH 23/56] stop if not enabled --- .../VRM10_Samples/VRM10Viewer/VRM10TargetMover.cs | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/Assets/VRM10_Samples/VRM10Viewer/VRM10TargetMover.cs b/Assets/VRM10_Samples/VRM10Viewer/VRM10TargetMover.cs index 9311c436f..7ee334b1f 100644 --- a/Assets/VRM10_Samples/VRM10Viewer/VRM10TargetMover.cs +++ b/Assets/VRM10_Samples/VRM10Viewer/VRM10TargetMover.cs @@ -24,13 +24,16 @@ namespace UniVRM10.VRM10Viewer while (true) { - angle += m_angularVelocity * Time.deltaTime * Mathf.Deg2Rad; + if (this.enabled) + { + angle += m_angularVelocity * Time.deltaTime * Mathf.Deg2Rad; - var x = Mathf.Cos(angle) * m_radius; - var z = Mathf.Sin(angle) * m_radius; - var y = m_y + m_height * Mathf.Cos(angle / 3); + var x = Mathf.Cos(angle) * m_radius; + var z = Mathf.Sin(angle) * m_radius; + var y = m_y + m_height * Mathf.Cos(angle / 3); - transform.localPosition = new Vector3(x, y, z); + transform.localPosition = new Vector3(x, y, z); + } yield return null; } From dcc6d09635ace9618d0514d081b48bfe18a8d71f Mon Sep 17 00:00:00 2001 From: ousttrue Date: Tue, 25 Feb 2025 16:24:01 +0900 Subject: [PATCH 24/56] Vrm10RuntimeExpression.Dispose. offset,scale --- Assets/VRM10/Editor/Vrm10InstanceEditor.cs | 42 +++++++++++++++++++ .../Components/Vrm10Runtime/Vrm10Runtime.cs | 1 + .../Vrm10Runtime/Vrm10RuntimeExpression.cs | 9 ++-- 3 files changed, 46 insertions(+), 6 deletions(-) diff --git a/Assets/VRM10/Editor/Vrm10InstanceEditor.cs b/Assets/VRM10/Editor/Vrm10InstanceEditor.cs index 233efce13..8c591ce01 100644 --- a/Assets/VRM10/Editor/Vrm10InstanceEditor.cs +++ b/Assets/VRM10/Editor/Vrm10InstanceEditor.cs @@ -28,6 +28,7 @@ namespace UniVRM10 static bool s_foldRuntimeLookAt = false; Vrm10Instance m_instance; + private Dictionary m_materials = new(); SerializedProperty m_script; SerializedProperty m_vrmObject; @@ -42,6 +43,14 @@ namespace UniVRM10 void OnEnable() { m_instance = (Vrm10Instance)target; + m_materials.Clear(); + foreach (var r in m_instance.GetComponentsInChildren()) + { + foreach (var m in r.sharedMaterials) + { + m_materials.TryAdd(m.name, m); + } + } m_script = serializedObject.FindProperty("m_Script"); m_vrmObject = serializedObject.FindProperty(nameof(m_instance.Vrm)); @@ -277,6 +286,33 @@ namespace UniVRM10 serializedObject.ApplyModifiedProperties(); } + void showuv(ExpressionPreset preset) + { + EditorGUI.indentLevel++; + try + { + var (_, clip) = m_instance.Vrm.Expression.Clips.FirstOrDefault(x => x.Preset == preset); + if (clip != null) + { + foreach (var b in clip.MaterialUVBindings) + { + if (m_materials.TryGetValue(b.MaterialName, out var m)) + { + EditorGUILayout.TextField(b.MaterialName, $"{b.Offset},${b.Scaling} => {m.mainTextureOffset},{m.mainTextureScale}"); + } + else + { + EditorGUILayout.TextField(b.MaterialName, "not found"); + } + } + } + } + finally + { + EditorGUI.indentLevel--; + } + } + void GUILookAt() { if (!target) @@ -312,6 +348,7 @@ namespace UniVRM10 if (w.TryGetValue(ExpressionKey.LookLeft, out var left)) { EditorGUILayout.Slider("left", left, 0, 1); + showuv(ExpressionPreset.lookLeft); } else { @@ -321,6 +358,7 @@ namespace UniVRM10 if (w.TryGetValue(ExpressionKey.LookRight, out var right)) { EditorGUILayout.Slider("right", right, 0, 1); + showuv(ExpressionPreset.lookRight); } else { @@ -330,6 +368,7 @@ namespace UniVRM10 if (w.TryGetValue(ExpressionKey.LookUp, out var up)) { EditorGUILayout.Slider("up", up, 0, 1); + showuv(ExpressionPreset.lookUp); } else { @@ -339,11 +378,14 @@ namespace UniVRM10 if (w.TryGetValue(ExpressionKey.LookDown, out var down)) { EditorGUILayout.Slider("down", down, 0, 1); + showuv(ExpressionPreset.lookDown); } else { EditorGUILayout.TextField("down"); } + + } else { diff --git a/Assets/VRM10/Runtime/Components/Vrm10Runtime/Vrm10Runtime.cs b/Assets/VRM10/Runtime/Components/Vrm10Runtime/Vrm10Runtime.cs index d8673594a..c1d9ea8a4 100644 --- a/Assets/VRM10/Runtime/Components/Vrm10Runtime/Vrm10Runtime.cs +++ b/Assets/VRM10/Runtime/Components/Vrm10Runtime/Vrm10Runtime.cs @@ -72,6 +72,7 @@ namespace UniVRM10 public void Dispose() { + Expression.Dispose(); ControlRig?.Dispose(); SpringBone.Dispose(); } diff --git a/Assets/VRM10/Runtime/Components/Vrm10Runtime/Vrm10RuntimeExpression.cs b/Assets/VRM10/Runtime/Components/Vrm10Runtime/Vrm10RuntimeExpression.cs index 71ec15f9e..1a4f747ce 100644 --- a/Assets/VRM10/Runtime/Components/Vrm10Runtime/Vrm10RuntimeExpression.cs +++ b/Assets/VRM10/Runtime/Components/Vrm10Runtime/Vrm10RuntimeExpression.cs @@ -1,9 +1,10 @@ +using System; using System.Collections.Generic; using System.Linq; namespace UniVRM10 { - public sealed class Vrm10RuntimeExpression + public sealed class Vrm10RuntimeExpression : IDisposable { public static IExpressionValidatorFactory ExpressionValidatorFactory = new DefaultExpressionValidator.Factory(); @@ -22,12 +23,8 @@ namespace UniVRM10 public float LookAtOverrideRate { get; private set; } public float MouthOverrideRate { get; private set; } - int m_debugCount; - internal Vrm10RuntimeExpression(Vrm10Instance target, ILookAtEyeDirectionApplicable eyeDirectionApplicable) { - Restore(); - _merger = new ExpressionMerger(target.Vrm.Expression, target.transform); _keys = target.Vrm.Expression.Clips .Select(x => target.Vrm.Expression.CreateKey(x.Clip)) @@ -52,7 +49,7 @@ namespace UniVRM10 _eyeDirectionApplicable = eyeDirectionApplicable; } - internal void Restore() + public void Dispose() { _merger?.RestoreMaterialInitialValues(); _merger = null; From 059e691aca1dc31bcce438935bb7c6d680c33a55 Mon Sep 17 00:00:00 2001 From: ousttrue Date: Tue, 25 Feb 2025 23:22:07 +0900 Subject: [PATCH 25/56] Vrm10Instance.DisposeRuntime --- .../Components/Vrm10Instance/Vrm10Instance.cs | 5 + Assets/VRM10/Tests/ExpressionTests.cs | 105 ++++++++++++++++++ 2 files changed, 110 insertions(+) diff --git a/Assets/VRM10/Runtime/Components/Vrm10Instance/Vrm10Instance.cs b/Assets/VRM10/Runtime/Components/Vrm10Instance/Vrm10Instance.cs index 1c9fbecfb..5ee3fc67e 100644 --- a/Assets/VRM10/Runtime/Components/Vrm10Instance/Vrm10Instance.cs +++ b/Assets/VRM10/Runtime/Components/Vrm10Instance/Vrm10Instance.cs @@ -215,6 +215,11 @@ namespace UniVRM10 } private void OnDestroy() + { + DisposeRuntime(); + } + + public void DisposeRuntime() { if (m_runtime != null) { diff --git a/Assets/VRM10/Tests/ExpressionTests.cs b/Assets/VRM10/Tests/ExpressionTests.cs index c849e17c0..b104c151e 100644 --- a/Assets/VRM10/Tests/ExpressionTests.cs +++ b/Assets/VRM10/Tests/ExpressionTests.cs @@ -1,6 +1,7 @@ using System.Linq; using NUnit.Framework; using UnityEngine; +using UnityEngine.TestTools.Utils; namespace UniVRM10.Test { @@ -58,5 +59,109 @@ namespace UniVRM10.Test // ok if no exception var r = controller.MakeRuntime(useControlRig: false); } + + [Test] + public void MaterialUVBindings() + { + var controller = TestAsset.LoadAlicia(); + + var renderers = controller.GetComponentsInChildren(); + var r = renderers[0]; + var m = r.sharedMaterials[0]; + + // make expression + controller.Vrm.Expression.Neutral = null; + controller.Vrm.Expression.Aa = null; + controller.Vrm.Expression.Ih = null; + controller.Vrm.Expression.Ou = null; + controller.Vrm.Expression.Ee = null; + controller.Vrm.Expression.Oh = null; + controller.Vrm.Expression.Blink = null; + controller.Vrm.Expression.BlinkLeft = null; + controller.Vrm.Expression.BlinkRight = null; + controller.Vrm.Expression.Happy = null; + controller.Vrm.Expression.Angry = null; + controller.Vrm.Expression.Sad = null; + controller.Vrm.Expression.Relaxed = null; + controller.Vrm.Expression.Surprised = null; + + controller.Vrm.LookAt.LookAtType = UniGLTF.Extensions.VRMC_vrm.LookAtType.expression; + controller.Vrm.LookAt.HorizontalInner = new CurveMapper(90, 10); + controller.Vrm.LookAt.HorizontalOuter = new CurveMapper(90, 10); + controller.Vrm.LookAt.VerticalDown = new CurveMapper(90, 10); + controller.Vrm.LookAt.VerticalUp = new CurveMapper(90, 10); + var left = new Vector2(0.33f, 0); + AddUvOffset(ref controller.Vrm.Expression.LookLeft.MaterialUVBindings, m.name, left); + var right = new Vector2(-0.33f, 0); + AddUvOffset(ref controller.Vrm.Expression.LookRight.MaterialUVBindings, m.name, right); + var up = new Vector2(0, 0.33f); + AddUvOffset(ref controller.Vrm.Expression.LookUp.MaterialUVBindings, m.name, up); + var down = new Vector2(0, -0.33f); + AddUvOffset(ref controller.Vrm.Expression.LookDown.MaterialUVBindings, m.name, down); + + controller.Vrm.Expression.LookLeft.IsBinary = true; + controller.Vrm.Expression.LookRight.IsBinary = true; + controller.Vrm.Expression.LookUp.IsBinary = true; + controller.Vrm.Expression.LookDown.IsBinary = true; + + // recreate expression + controller.DisposeRuntime(); + + { + // left + var yaw = -Mathf.PI * 0.5f; + var pitch = 0; + controller.Runtime.Expression.Process(new LookAtEyeDirection(yaw, pitch)); + Assert.That(m.mainTextureOffset, Is.EqualTo(left).Using(Vector2ComparerWithEqualsOperator.Instance)); + } + { + // right + var yaw = Mathf.PI * 0.5f; + var pitch = 0; + controller.Runtime.Expression.Process(new LookAtEyeDirection(yaw, pitch)); + Assert.That(m.mainTextureOffset, Is.EqualTo(right).Using(Vector2ComparerWithEqualsOperator.Instance)); + } + + { + // up + var yaw = 0; + var pitch = Mathf.PI * 0.5f; + controller.Runtime.Expression.Process(new LookAtEyeDirection(yaw, pitch)); + Assert.That(m.mainTextureOffset, Is.EqualTo(up).Using(Vector2ComparerWithEqualsOperator.Instance)); + } + + { + // down + var yaw = 0; + var pitch = -Mathf.PI * 0.5f; + controller.Runtime.Expression.Process(new LookAtEyeDirection(yaw, pitch)); + Assert.That(m.mainTextureOffset, Is.EqualTo(down).Using(Vector2ComparerWithEqualsOperator.Instance)); + } + + { + // left + up + var yaw = -Mathf.PI * 0.5f; + var pitch = Mathf.PI * 0.5f; ; + controller.Runtime.Expression.Process(new LookAtEyeDirection(yaw, pitch)); + Assert.That(m.mainTextureOffset, Is.EqualTo(left + up).Using(Vector2ComparerWithEqualsOperator.Instance)); + } + } + + void AddUvOffset(ref MaterialUVBinding[] array, string materialName, in Vector2 offset) + { + array = AddBinding(array, new MaterialUVBinding + { + MaterialName = materialName, + Offset = offset, + }); + + } + + private MaterialUVBinding[] AddBinding(MaterialUVBinding[] bindings, MaterialUVBinding binding) + { + var list = bindings.ToList(); + list.Add(binding); + return list.ToArray(); + } } } From c7301a12871aaa04dc444bc34ae4048fdc89c945 Mon Sep 17 00:00:00 2001 From: ousttrue Date: Tue, 25 Feb 2025 23:55:22 +0900 Subject: [PATCH 26/56] show if not Application.isPlaying --- Assets/VRM10/Editor/Vrm10InstanceEditor.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/Assets/VRM10/Editor/Vrm10InstanceEditor.cs b/Assets/VRM10/Editor/Vrm10InstanceEditor.cs index 8c591ce01..2d07a69fa 100644 --- a/Assets/VRM10/Editor/Vrm10InstanceEditor.cs +++ b/Assets/VRM10/Editor/Vrm10InstanceEditor.cs @@ -326,7 +326,6 @@ namespace UniVRM10 serializedObject.ApplyModifiedProperties(); // lookat info - if (Application.isPlaying) { EditorGUILayout.Space(); s_foldRuntimeLookAt = EditorGUILayout.Foldout(s_foldRuntimeLookAt, "RuntimeInfo"); From b79333673b074ab6a69f7fd42ac37d25efd33495 Mon Sep 17 00:00:00 2001 From: ousttrue Date: Tue, 25 Feb 2025 23:56:35 +0900 Subject: [PATCH 27/56] remove PreviewMaterialItem.RestoreInitialValues. use PreviewMaterialItem.Clear --- .../Components/Expression/MaterialValueBindingMerger.cs | 2 +- .../Runtime/Components/Expression/PreviewMaterialItem.cs | 8 -------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/Assets/VRM10/Runtime/Components/Expression/MaterialValueBindingMerger.cs b/Assets/VRM10/Runtime/Components/Expression/MaterialValueBindingMerger.cs index bdd6b20bd..495ccfd90 100644 --- a/Assets/VRM10/Runtime/Components/Expression/MaterialValueBindingMerger.cs +++ b/Assets/VRM10/Runtime/Components/Expression/MaterialValueBindingMerger.cs @@ -115,7 +115,7 @@ namespace UniVRM10 { foreach (var kv in m_materialMap) { - kv.Value.RestoreInitialValues(); + kv.Value.Clear(); } } #endregion diff --git a/Assets/VRM10/Runtime/Components/Expression/PreviewMaterialItem.cs b/Assets/VRM10/Runtime/Components/Expression/PreviewMaterialItem.cs index 707223bf4..ae98b9a77 100644 --- a/Assets/VRM10/Runtime/Components/Expression/PreviewMaterialItem.cs +++ b/Assets/VRM10/Runtime/Components/Expression/PreviewMaterialItem.cs @@ -71,14 +71,6 @@ namespace UniVRM10 set; } - public void RestoreInitialValues() - { - foreach (var prop in PropMap) - { - Material.SetColor(prop.Value.Name, prop.Value.DefaultValues); - } - } - public static readonly string COLOR_PROPERTY = MToon10Prop.BaseColorFactor.ToUnityShaderLabName(); public static readonly string EMISSION_COLOR_PROPERTY = MToon10Prop.EmissiveFactor.ToUnityShaderLabName(); public static readonly string RIM_COLOR_PROPERTY = MToon10Prop.ParametricRimColorFactor.ToUnityShaderLabName(); From 4a40f0015b7921b19b4b033e3a4ba81348758d72 Mon Sep 17 00:00:00 2001 From: ousttrue Date: Tue, 25 Feb 2025 23:56:51 +0900 Subject: [PATCH 28/56] TestIsBinary --- Assets/VRM10/Tests/ExpressionTests.cs | 66 ++++++++++++++++++++++++--- 1 file changed, 59 insertions(+), 7 deletions(-) diff --git a/Assets/VRM10/Tests/ExpressionTests.cs b/Assets/VRM10/Tests/ExpressionTests.cs index b104c151e..dcda4199c 100644 --- a/Assets/VRM10/Tests/ExpressionTests.cs +++ b/Assets/VRM10/Tests/ExpressionTests.cs @@ -64,12 +64,6 @@ namespace UniVRM10.Test public void MaterialUVBindings() { var controller = TestAsset.LoadAlicia(); - - var renderers = controller.GetComponentsInChildren(); - var r = renderers[0]; - var m = r.sharedMaterials[0]; - - // make expression controller.Vrm.Expression.Neutral = null; controller.Vrm.Expression.Aa = null; controller.Vrm.Expression.Ih = null; @@ -85,6 +79,10 @@ namespace UniVRM10.Test controller.Vrm.Expression.Relaxed = null; controller.Vrm.Expression.Surprised = null; + // setup expression for Uv Lookat + isBinary + var renderers = controller.GetComponentsInChildren(); + var r = renderers[0]; + var m = r.sharedMaterials[0]; controller.Vrm.LookAt.LookAtType = UniGLTF.Extensions.VRMC_vrm.LookAtType.expression; controller.Vrm.LookAt.HorizontalInner = new CurveMapper(90, 10); controller.Vrm.LookAt.HorizontalOuter = new CurveMapper(90, 10); @@ -98,7 +96,6 @@ namespace UniVRM10.Test AddUvOffset(ref controller.Vrm.Expression.LookUp.MaterialUVBindings, m.name, up); var down = new Vector2(0, -0.33f); AddUvOffset(ref controller.Vrm.Expression.LookDown.MaterialUVBindings, m.name, down); - controller.Vrm.Expression.LookLeft.IsBinary = true; controller.Vrm.Expression.LookRight.IsBinary = true; controller.Vrm.Expression.LookUp.IsBinary = true; @@ -163,5 +160,60 @@ namespace UniVRM10.Test list.Add(binding); return list.ToArray(); } + + [Test] + public void TestIsBinary() + { + var controller = TestAsset.LoadAlicia(); + controller.Vrm.Expression.Neutral = null; + controller.Vrm.Expression.Aa = null; + controller.Vrm.Expression.Ih = null; + controller.Vrm.Expression.Ou = null; + controller.Vrm.Expression.Ee = null; + controller.Vrm.Expression.Oh = null; + controller.Vrm.Expression.Blink = null; + controller.Vrm.Expression.BlinkLeft = null; + controller.Vrm.Expression.BlinkRight = null; + // controller.Vrm.Expression.Happy = null; + controller.Vrm.Expression.Angry = null; + controller.Vrm.Expression.Sad = null; + controller.Vrm.Expression.Relaxed = null; + controller.Vrm.Expression.Surprised = null; + controller.Vrm.Expression.LookDown = null; + controller.Vrm.Expression.LookLeft = null; + controller.Vrm.Expression.LookRight = null; + controller.Vrm.Expression.LookUp = null; + + // setup expression for Uv Lookat + isBinary + controller.Vrm.Expression.Happy.IsBinary = true; + + // recreate expression + controller.DisposeRuntime(); + + { + // 0 + controller.Runtime.Expression.SetWeight(ExpressionKey.Happy, 0); + controller.Runtime.Expression.Process(new LookAtEyeDirection()); + Assert.That(controller.Runtime.Expression.ActualWeights[ExpressionKey.Happy], Is.EqualTo(0).Using(FloatEqualityComparer.Instance)); + } + { + // 1 + controller.Runtime.Expression.SetWeight(ExpressionKey.Happy, 1); + controller.Runtime.Expression.Process(new LookAtEyeDirection()); + Assert.That(controller.Runtime.Expression.ActualWeights[ExpressionKey.Happy], Is.EqualTo(1).Using(FloatEqualityComparer.Instance)); + } + { + // 0.5 + controller.Runtime.Expression.SetWeight(ExpressionKey.Happy, 0.5f); + controller.Runtime.Expression.Process(new LookAtEyeDirection()); + Assert.That(controller.Runtime.Expression.ActualWeights[ExpressionKey.Happy], Is.EqualTo(0).Using(FloatEqualityComparer.Instance)); + } + { + // 0.5 + controller.Runtime.Expression.SetWeight(ExpressionKey.Happy, 0.51f); + controller.Runtime.Expression.Process(new LookAtEyeDirection()); + Assert.That(controller.Runtime.Expression.ActualWeights[ExpressionKey.Happy], Is.EqualTo(1).Using(FloatEqualityComparer.Instance)); + } + } } } From 0dc81ba7a1c309bbb714ecaef7de98fb8ce1cb13 Mon Sep 17 00:00:00 2001 From: ousttrue Date: Wed, 26 Feb 2025 19:42:34 +0900 Subject: [PATCH 29/56] =?UTF-8?q?LookAt=20=E3=81=AF=20DefaultExpressionVal?= =?UTF-8?q?idator.Validate=20=E3=82=88=E3=82=8A=E3=81=82=E3=81=A8=E3=81=A7?= =?UTF-8?q?=E5=87=A6=E7=90=86=E3=81=95=E3=82=8C=E3=81=A6=20IsBinary=20?= =?UTF-8?q?=E3=81=AE=E9=96=BE=E5=80=A4=E3=81=8C=200=20=E3=81=A7=E3=81=82?= =?UTF-8?q?=E3=81=A3=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit see DefaultExpressionValidator.Validate var weight = expression.IsBinary ? Mathf.Round(inputWeights[key]) : inputWeights[key]; --- Assets/VRM10/Runtime/Components/Expression/ExpressionMerger.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/VRM10/Runtime/Components/Expression/ExpressionMerger.cs b/Assets/VRM10/Runtime/Components/Expression/ExpressionMerger.cs index 61cded5fc..791397b22 100644 --- a/Assets/VRM10/Runtime/Components/Expression/ExpressionMerger.cs +++ b/Assets/VRM10/Runtime/Components/Expression/ExpressionMerger.cs @@ -63,7 +63,7 @@ namespace UniVRM10 if (clip.IsBinary) { - value = value > 0 ? 1 : 0; + value = value > 0.5f ? 1 : 0; } m_morphTargetBindingMerger.AccumulateValue(key, value); From b5f2ce60fff56cf99b2a70b479ff10aa8388cecb Mon Sep 17 00:00:00 2001 From: ousttrue Date: Wed, 26 Feb 2025 19:43:14 +0900 Subject: [PATCH 30/56] fix, comment --- .../Components/LookAt/Matrix4x4Extensions.cs | 6 +- .../Vrm10Runtime/Vrm10RuntimeLookAt.cs | 2 + Assets/VRM10/Tests/ExpressionTests.cs | 74 +++++++++++-------- 3 files changed, 52 insertions(+), 30 deletions(-) diff --git a/Assets/VRM10/Runtime/Components/LookAt/Matrix4x4Extensions.cs b/Assets/VRM10/Runtime/Components/LookAt/Matrix4x4Extensions.cs index f88b4905c..6269d7c85 100644 --- a/Assets/VRM10/Runtime/Components/LookAt/Matrix4x4Extensions.cs +++ b/Assets/VRM10/Runtime/Components/LookAt/Matrix4x4Extensions.cs @@ -12,7 +12,7 @@ namespace UniVRM10 /// /// /// - /// + /// yaw, pitch degree public static (float Yaw, float Pitch) CalcYawPitch(this Matrix4x4 m, Vector3 target) { var localPosition = m.inverse.MultiplyPoint(target); @@ -67,6 +67,10 @@ namespace UniVRM10 /// pitch: 上が+ /// という仕様。vrm-0.x から据え置き /// + /// + /// + /// Degree + /// eegree public static void CalcYawPitch(this Matrix4x4 m, Vector3 target, out float yaw, out float pitch) { var z = Vector3.Dot(target, m.GetColumn(2)); diff --git a/Assets/VRM10/Runtime/Components/Vrm10Runtime/Vrm10RuntimeLookAt.cs b/Assets/VRM10/Runtime/Components/Vrm10Runtime/Vrm10RuntimeLookAt.cs index 85412e6db..bdd550fc8 100644 --- a/Assets/VRM10/Runtime/Components/Vrm10Runtime/Vrm10RuntimeLookAt.cs +++ b/Assets/VRM10/Runtime/Components/Vrm10Runtime/Vrm10RuntimeLookAt.cs @@ -92,6 +92,8 @@ namespace UniVRM10 LookAtInput = new LookAtInput { YawPitch = new LookAtEyeDirection(yaw, pitch) }; } + /// + /// Degree public (float Yaw, float Pitch) CalculateYawPitchFromLookAtPosition(Vector3 lookAtWorldPosition) { var localPosition = LookAtOriginTransform.worldToLocalMatrix.MultiplyPoint(lookAtWorldPosition); diff --git a/Assets/VRM10/Tests/ExpressionTests.cs b/Assets/VRM10/Tests/ExpressionTests.cs index dcda4199c..82a8a83cd 100644 --- a/Assets/VRM10/Tests/ExpressionTests.cs +++ b/Assets/VRM10/Tests/ExpressionTests.cs @@ -61,7 +61,7 @@ namespace UniVRM10.Test } [Test] - public void MaterialUVBindings() + public void TestIsBinaryUV() { var controller = TestAsset.LoadAlicia(); controller.Vrm.Expression.Neutral = null; @@ -84,10 +84,10 @@ namespace UniVRM10.Test var r = renderers[0]; var m = r.sharedMaterials[0]; controller.Vrm.LookAt.LookAtType = UniGLTF.Extensions.VRMC_vrm.LookAtType.expression; - controller.Vrm.LookAt.HorizontalInner = new CurveMapper(90, 10); - controller.Vrm.LookAt.HorizontalOuter = new CurveMapper(90, 10); - controller.Vrm.LookAt.VerticalDown = new CurveMapper(90, 10); - controller.Vrm.LookAt.VerticalUp = new CurveMapper(90, 10); + controller.Vrm.LookAt.HorizontalInner = new CurveMapper(90, 1); + controller.Vrm.LookAt.HorizontalOuter = new CurveMapper(90, 1); + controller.Vrm.LookAt.VerticalDown = new CurveMapper(90, 1); + controller.Vrm.LookAt.VerticalUp = new CurveMapper(90, 1); var left = new Vector2(0.33f, 0); AddUvOffset(ref controller.Vrm.Expression.LookLeft.MaterialUVBindings, m.name, left); var right = new Vector2(-0.33f, 0); @@ -104,41 +104,57 @@ namespace UniVRM10.Test // recreate expression controller.DisposeRuntime(); + // { + // // left + // var yaw = -90; + // var pitch = 0; + // controller.Runtime.Expression.Process(new LookAtEyeDirection(yaw, pitch)); + // Assert.That(m.mainTextureOffset, Is.EqualTo(left).Using(Vector2ComparerWithEqualsOperator.Instance)); + // } { + // 0.5 以下 => 0 // left - var yaw = -Mathf.PI * 0.5f; + var yaw = -45.0f; + var pitch = 0; + controller.Runtime.Expression.Process(new LookAtEyeDirection(yaw, pitch)); + Assert.That(m.mainTextureOffset, Is.EqualTo(Vector2.zero).Using(Vector2ComparerWithEqualsOperator.Instance)); + } + { + // 0.5 を超える => 1 + // left + var yaw = -46.0f; var pitch = 0; controller.Runtime.Expression.Process(new LookAtEyeDirection(yaw, pitch)); Assert.That(m.mainTextureOffset, Is.EqualTo(left).Using(Vector2ComparerWithEqualsOperator.Instance)); } - { - // right - var yaw = Mathf.PI * 0.5f; - var pitch = 0; - controller.Runtime.Expression.Process(new LookAtEyeDirection(yaw, pitch)); - Assert.That(m.mainTextureOffset, Is.EqualTo(right).Using(Vector2ComparerWithEqualsOperator.Instance)); - } + // { + // // right + // var yaw = 90; + // var pitch = 0; + // controller.Runtime.Expression.Process(new LookAtEyeDirection(yaw, pitch)); + // Assert.That(m.mainTextureOffset, Is.EqualTo(right).Using(Vector2ComparerWithEqualsOperator.Instance)); + // } - { - // up - var yaw = 0; - var pitch = Mathf.PI * 0.5f; - controller.Runtime.Expression.Process(new LookAtEyeDirection(yaw, pitch)); - Assert.That(m.mainTextureOffset, Is.EqualTo(up).Using(Vector2ComparerWithEqualsOperator.Instance)); - } + // { + // // up + // var yaw = 0; + // var pitch = 90; + // controller.Runtime.Expression.Process(new LookAtEyeDirection(yaw, pitch)); + // Assert.That(m.mainTextureOffset, Is.EqualTo(up).Using(Vector2ComparerWithEqualsOperator.Instance)); + // } - { - // down - var yaw = 0; - var pitch = -Mathf.PI * 0.5f; - controller.Runtime.Expression.Process(new LookAtEyeDirection(yaw, pitch)); - Assert.That(m.mainTextureOffset, Is.EqualTo(down).Using(Vector2ComparerWithEqualsOperator.Instance)); - } + // { + // // down + // var yaw = 0; + // var pitch = -90; + // controller.Runtime.Expression.Process(new LookAtEyeDirection(yaw, pitch)); + // Assert.That(m.mainTextureOffset, Is.EqualTo(down).Using(Vector2ComparerWithEqualsOperator.Instance)); + // } { // left + up - var yaw = -Mathf.PI * 0.5f; - var pitch = Mathf.PI * 0.5f; ; + var yaw = -90; + var pitch = 90; controller.Runtime.Expression.Process(new LookAtEyeDirection(yaw, pitch)); Assert.That(m.mainTextureOffset, Is.EqualTo(left + up).Using(Vector2ComparerWithEqualsOperator.Instance)); } From a9696a37b2d6d8da92c3ec1948da57f1ced131e3 Mon Sep 17 00:00:00 2001 From: ousttrue Date: Thu, 27 Feb 2025 00:37:14 +0900 Subject: [PATCH 31/56] VRM10ObjectLookAtEditor --- .../Editor/Components/VRM10ObjectEditor.cs | 4 +- .../Components/VRM10ObjectLookAtEditor.cs | 89 +++++++++++++++++++ .../VRM10ObjectLookAtEditor.cs.meta | 11 +++ 3 files changed, 102 insertions(+), 2 deletions(-) create mode 100644 Assets/VRM10/Editor/Components/VRM10ObjectLookAtEditor.cs create mode 100644 Assets/VRM10/Editor/Components/VRM10ObjectLookAtEditor.cs.meta diff --git a/Assets/VRM10/Editor/Components/VRM10ObjectEditor.cs b/Assets/VRM10/Editor/Components/VRM10ObjectEditor.cs index 55efce643..95b9d17fb 100644 --- a/Assets/VRM10/Editor/Components/VRM10ObjectEditor.cs +++ b/Assets/VRM10/Editor/Components/VRM10ObjectEditor.cs @@ -22,7 +22,7 @@ namespace UniVRM10 // for SerializedProperty SerializedPropertyEditor m_expression; SerializedPropertyEditor m_meta; - SerializedPropertyEditor m_lookAt; + VRM10ObjectLookAtEditor m_lookAt; SerializedPropertyEditor m_firstPerson; SerializedProperty m_prefab; @@ -36,7 +36,7 @@ namespace UniVRM10 m_expression = SerializedPropertyEditor.Create(serializedObject, nameof(m_target.Expression)); m_meta = VRM10MetaEditor.Create(serializedObject); - m_lookAt = SerializedPropertyEditor.Create(serializedObject, nameof(m_target.LookAt)); + m_lookAt = new(serializedObject); m_firstPerson = SerializedPropertyEditor.Create(serializedObject, nameof(m_target.FirstPerson)); m_prefab = serializedObject.FindProperty("m_prefab"); diff --git a/Assets/VRM10/Editor/Components/VRM10ObjectLookAtEditor.cs b/Assets/VRM10/Editor/Components/VRM10ObjectLookAtEditor.cs new file mode 100644 index 000000000..45576c5bb --- /dev/null +++ b/Assets/VRM10/Editor/Components/VRM10ObjectLookAtEditor.cs @@ -0,0 +1,89 @@ +using UniGLTF.Extensions.VRMC_vrm; +using UnityEditor; + +namespace UniVRM10 +{ + public class VRM10ObjectLookAtEditor + { + private readonly SerializedObject _serializedObject; + private readonly SerializedProperty _OffsetFromHead; + private readonly SerializedProperty _LookAtType; + + + class CurveMapEditor + { + private readonly SerializedProperty _CurveXRangeDegree; + private readonly SerializedProperty _CurveYRangeDegree; + private readonly string _name; + + public CurveMapEditor(SerializedObject serializedObject, string name) + { + _CurveXRangeDegree = serializedObject.FindProperty($"LookAt.{name}.CurveXRangeDegree"); + _CurveYRangeDegree = serializedObject.FindProperty($"LookAt.{name}.CurveYRangeDegree"); + _name = name; + } + + public void OnInspectorGUI(float yMax) + { + EditorGUILayout.LabelField(_name); + EditorGUI.indentLevel++; + // EditorGUILayout.PropertyField(_CurveXRangeDegree); + _CurveXRangeDegree.floatValue = EditorGUILayout.Slider("CurveXRangeDegree", _CurveXRangeDegree.floatValue, 0, 90.0f); + // EditorGUILayout.PropertyField(_CurveYRangeDegree); + _CurveYRangeDegree.floatValue = EditorGUILayout.Slider("CurveYRangeDegree", _CurveYRangeDegree.floatValue, 0, yMax); + EditorGUI.indentLevel--; + EditorGUILayout.Space(); + } + } + private readonly CurveMapEditor _HorizontalOuter; + private readonly CurveMapEditor _HorizontalInner; + private readonly CurveMapEditor _VerticalDown; + private readonly CurveMapEditor _VerticalUp; + + public VRM10ObjectLookAtEditor(SerializedObject serializedObject) + { + _serializedObject = serializedObject; + _OffsetFromHead = serializedObject.FindProperty("LookAt.OffsetFromHead"); + _LookAtType = serializedObject.FindProperty("LookAt.LookAtType"); + _HorizontalOuter = new(serializedObject, "HorizontalOuter"); + _HorizontalInner = new(serializedObject, "HorizontalInner"); + _VerticalDown = new(serializedObject, "VerticalDown"); + _VerticalUp = new(serializedObject, "VerticalUp"); + } + + public void OnInspectorGUI() + { + EditorGUILayout.PropertyField(_OffsetFromHead); + EditorGUILayout.PropertyField(_LookAtType); + EditorGUILayout.Space(); + + switch ((LookAtType)_LookAtType.enumValueIndex) + { + case LookAtType.bone: + { + EditorGUILayout.HelpBox("Degree Input (0-90) => EyeBone Degree(0-90)", MessageType.Info); + _HorizontalOuter.OnInspectorGUI(90); + _HorizontalInner.OnInspectorGUI(90); + _VerticalDown.OnInspectorGUI(90); + _VerticalUp.OnInspectorGUI(90); + } + break; + + case LookAtType.expression: + { + EditorGUILayout.HelpBox("Degree Input (0-90) => Expression Weight(0-1.0)", MessageType.Info); + _HorizontalOuter.OnInspectorGUI(1); + _HorizontalInner.OnInspectorGUI(1); + _VerticalDown.OnInspectorGUI(1); + _VerticalUp.OnInspectorGUI(1); + } + break; + + default: + break; + } + + _serializedObject.ApplyModifiedProperties(); + } + } +} \ No newline at end of file diff --git a/Assets/VRM10/Editor/Components/VRM10ObjectLookAtEditor.cs.meta b/Assets/VRM10/Editor/Components/VRM10ObjectLookAtEditor.cs.meta new file mode 100644 index 000000000..db73ba5ee --- /dev/null +++ b/Assets/VRM10/Editor/Components/VRM10ObjectLookAtEditor.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: d31d0e4c86e078746b74b86dc473e15a +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: From fb59c601ab289f04b8938adbbf731954296db9f2 Mon Sep 17 00:00:00 2001 From: ousttrue Date: Thu, 27 Feb 2025 13:00:45 +0900 Subject: [PATCH 32/56] Vrm10EditorUtility.LimitBreakSlider --- .../SpringBone/VRM10SpringBoneJointEditor.cs | 53 +----------------- .../Components/VRM10ObjectLookAtEditor.cs | 6 +- Assets/VRM10/Editor/Vrm10EditorUtility.cs | 55 +++++++++++++++++++ .../VRM10/Editor/Vrm10EditorUtility.cs.meta | 11 ++++ .../Runtime/Components/LookAt/CurveMapper.cs | 14 ++++- 5 files changed, 83 insertions(+), 56 deletions(-) create mode 100644 Assets/VRM10/Editor/Vrm10EditorUtility.cs create mode 100644 Assets/VRM10/Editor/Vrm10EditorUtility.cs.meta diff --git a/Assets/VRM10/Editor/Components/SpringBone/VRM10SpringBoneJointEditor.cs b/Assets/VRM10/Editor/Components/SpringBone/VRM10SpringBoneJointEditor.cs index 8d7699112..2bb0fbd61 100644 --- a/Assets/VRM10/Editor/Components/SpringBone/VRM10SpringBoneJointEditor.cs +++ b/Assets/VRM10/Editor/Components/SpringBone/VRM10SpringBoneJointEditor.cs @@ -59,12 +59,12 @@ namespace UniVRM10 m_showJointSettings = EditorGUILayout.Foldout(m_showJointSettings, "Joint Settings"); if (m_showJointSettings) { - LimitBreakSlider(m_stiffnessForceProp, 0.0f, 4.0f, 0.0f, Mathf.Infinity); - LimitBreakSlider(m_gravityPowerProp, 0.0f, 2.0f, 0.0f, Mathf.Infinity); + Vrm10EditorUtility.LimitBreakSlider(m_stiffnessForceProp, 0.0f, 4.0f, 0.0f, Mathf.Infinity); + Vrm10EditorUtility.LimitBreakSlider(m_gravityPowerProp, 0.0f, 2.0f, 0.0f, Mathf.Infinity); EditorGUILayout.PropertyField(m_gravityDirProp); EditorGUILayout.PropertyField(m_dragForceProp); EditorGUILayout.Space(); - LimitBreakSlider(m_jointRadiusProp, 0.0f, 0.5f, 0.0f, Mathf.Infinity); + Vrm10EditorUtility.LimitBreakSlider(m_jointRadiusProp, 0.0f, 0.5f, 0.0f, Mathf.Infinity); } if (serializedObject.ApplyModifiedProperties()) @@ -143,53 +143,6 @@ namespace UniVRM10 return jointIndex == (spring.Joints.Count - 1); } - /// - /// スライダーと数値入力で限界値の違う、所謂「限界突破スライダー」を作成する - /// `EditorGUILayout.PropertyField` の代替として利用する - /// - private static void LimitBreakSlider(SerializedProperty property, float sliderLeft, float sliderRight, float numberLeft, float numberRight) - { - var label = new GUIContent(property.displayName); - var currentValue = property.floatValue; - - var rect = EditorGUILayout.GetControlRect(); - - EditorGUI.BeginProperty(rect, label, property); - - rect = EditorGUI.PrefixLabel(rect, label); - - // slider - { - EditorGUI.BeginChangeCheck(); - - var sliderRect = rect; - sliderRect.width -= 55.0f; - rect.xMin += rect.width - 50.0f; - - var clampedvalue = Mathf.Clamp(currentValue, sliderLeft, sliderRight); - var sliderValue = GUI.HorizontalSlider(sliderRect, clampedvalue, sliderLeft, sliderRight); - - if (EditorGUI.EndChangeCheck()) - { - property.floatValue = sliderValue; - } - } - - // number - { - EditorGUI.BeginChangeCheck(); - - var numberValue = Mathf.Clamp(EditorGUI.FloatField(rect, currentValue), numberLeft, numberRight); - - if (EditorGUI.EndChangeCheck()) - { - property.floatValue = numberValue; - } - } - - EditorGUI.EndProperty(); - } - void OnSceneGUI() { if (m_root == null) diff --git a/Assets/VRM10/Editor/Components/VRM10ObjectLookAtEditor.cs b/Assets/VRM10/Editor/Components/VRM10ObjectLookAtEditor.cs index 45576c5bb..3e53763af 100644 --- a/Assets/VRM10/Editor/Components/VRM10ObjectLookAtEditor.cs +++ b/Assets/VRM10/Editor/Components/VRM10ObjectLookAtEditor.cs @@ -27,10 +27,8 @@ namespace UniVRM10 { EditorGUILayout.LabelField(_name); EditorGUI.indentLevel++; - // EditorGUILayout.PropertyField(_CurveXRangeDegree); - _CurveXRangeDegree.floatValue = EditorGUILayout.Slider("CurveXRangeDegree", _CurveXRangeDegree.floatValue, 0, 90.0f); - // EditorGUILayout.PropertyField(_CurveYRangeDegree); - _CurveYRangeDegree.floatValue = EditorGUILayout.Slider("CurveYRangeDegree", _CurveYRangeDegree.floatValue, 0, yMax); + Vrm10EditorUtility.LimitBreakSlider(_CurveXRangeDegree, 0, 90.0f, 0, 90.0f); + Vrm10EditorUtility.LimitBreakSlider(_CurveYRangeDegree, 0, yMax, 0, 90.0f); EditorGUI.indentLevel--; EditorGUILayout.Space(); } diff --git a/Assets/VRM10/Editor/Vrm10EditorUtility.cs b/Assets/VRM10/Editor/Vrm10EditorUtility.cs new file mode 100644 index 000000000..4df9bfba3 --- /dev/null +++ b/Assets/VRM10/Editor/Vrm10EditorUtility.cs @@ -0,0 +1,55 @@ +using UnityEditor; +using UnityEngine; + +namespace UniVRM10 +{ + public static class Vrm10EditorUtility + { + /// + /// スライダーと数値入力で限界値の違う、所謂「限界突破スライダー」を作成する + /// `EditorGUILayout.PropertyField` の代替として利用する + /// + public static void LimitBreakSlider(SerializedProperty property, float sliderLeft, float sliderRight, float numberLeft, float numberRight) + { + var label = new GUIContent(property.displayName); + var currentValue = property.floatValue; + + var rect = EditorGUILayout.GetControlRect(); + + EditorGUI.BeginProperty(rect, label, property); + + rect = EditorGUI.PrefixLabel(rect, label); + + // slider + { + EditorGUI.BeginChangeCheck(); + + var sliderRect = rect; + sliderRect.width -= 55.0f; + rect.xMin += rect.width - 50.0f; + + var clampedvalue = Mathf.Clamp(currentValue, sliderLeft, sliderRight); + var sliderValue = GUI.HorizontalSlider(sliderRect, clampedvalue, sliderLeft, sliderRight); + + if (EditorGUI.EndChangeCheck()) + { + property.floatValue = sliderValue; + } + } + + // number + { + EditorGUI.BeginChangeCheck(); + + var numberValue = Mathf.Clamp(EditorGUI.FloatField(rect, currentValue), numberLeft, numberRight); + + if (EditorGUI.EndChangeCheck()) + { + property.floatValue = numberValue; + } + } + + EditorGUI.EndProperty(); + } + } +} \ No newline at end of file diff --git a/Assets/VRM10/Editor/Vrm10EditorUtility.cs.meta b/Assets/VRM10/Editor/Vrm10EditorUtility.cs.meta new file mode 100644 index 000000000..2517d5419 --- /dev/null +++ b/Assets/VRM10/Editor/Vrm10EditorUtility.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 4b75cffea6a5f03418a9a698a32c15cb +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/VRM10/Runtime/Components/LookAt/CurveMapper.cs b/Assets/VRM10/Runtime/Components/LookAt/CurveMapper.cs index 1e7109d2a..b7f0508d8 100644 --- a/Assets/VRM10/Runtime/Components/LookAt/CurveMapper.cs +++ b/Assets/VRM10/Runtime/Components/LookAt/CurveMapper.cs @@ -7,10 +7,20 @@ namespace UniVRM10 [Serializable] public class CurveMapper { - [Range(20.0f, 90.0f)] + /// + /// v0.128.3 VRM10ObjectLookAtEditor + /// + /// DegreeINput 0-90 + /// public float CurveXRangeDegree; - [Range(0, 90.0f)] + /// + /// v0.128.3 VRM10ObjectLookAtEditor + /// + /// EyeBoneDegree 0-90 + /// or + /// ExpressionWeight 0-1.0 + /// public float CurveYRangeDegree; public CurveMapper(float xRange, float yRange) From 21082a1b05649a8db3f0cdec84f76988b3015980 Mon Sep 17 00:00:00 2001 From: ousttrue Date: Thu, 27 Feb 2025 16:24:05 +0900 Subject: [PATCH 33/56] ground metallic/roughness --- Assets/VRM10_Samples/VRM10Viewer/VRM10VisualPrimitive.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Assets/VRM10_Samples/VRM10Viewer/VRM10VisualPrimitive.cs b/Assets/VRM10_Samples/VRM10Viewer/VRM10VisualPrimitive.cs index f6bc44257..b87a30f79 100644 --- a/Assets/VRM10_Samples/VRM10Viewer/VRM10VisualPrimitive.cs +++ b/Assets/VRM10_Samples/VRM10Viewer/VRM10VisualPrimitive.cs @@ -36,7 +36,10 @@ namespace UniVRM10.VRM10Viewer { if (_urpMaterialForGrayscale != null) { - visual.GetComponent().material = Instantiate(_urpMaterialForGrayscale); + var m = Instantiate(_urpMaterialForGrayscale); + m.SetFloat("_Metallic", 0); + m.SetFloat("_Roughness", 1); + visual.GetComponent().material = m; } } } From 6a92f38064981ea5153f14ec46ba95ca895fdfd1 Mon Sep 17 00:00:00 2001 From: ousttrue Date: Thu, 27 Feb 2025 19:55:24 +0900 Subject: [PATCH 34/56] _ShadingShiftFactor --- .../Assets/TinyMToonAlphaBlend.shadergraph | 126 +++++++- .../Assets/TinyMToonOpaque.shadergraph | 134 +++++++- .../Assets/TinyMToon_SubGraph.shadersubgraph | 296 ++++++++++++++++-- .../VRM10Viewer/TinyMToonMaterialContext.cs | 6 + .../VRM10Viewer/TinyMToonMaterialImporter.cs | 1 + .../VRM10Viewer/VRM10VisualPrimitive.cs | 4 +- 6 files changed, 526 insertions(+), 41 deletions(-) diff --git a/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyMToonAlphaBlend.shadergraph b/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyMToonAlphaBlend.shadergraph index 146731b20..beef056c3 100644 --- a/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyMToonAlphaBlend.shadergraph +++ b/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyMToonAlphaBlend.shadergraph @@ -17,6 +17,9 @@ }, { "m_Id": "025d73c9fe2e47b3853bf9a00d126af4" + }, + { + "m_Id": "245594752a2f40a9a0b592ea1d772667" } ], "m_Keywords": [], @@ -59,6 +62,9 @@ }, { "m_Id": "df96d56bdf664324a1b96c21e76b4a17" + }, + { + "m_Id": "9e996b1a054f4a0caf78c639f3d104ac" } ], "m_GroupDatas": [], @@ -134,6 +140,20 @@ "m_SlotId": 2016068918 } }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "9e996b1a054f4a0caf78c639f3d104ac" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "0776e82cf5bc4372962108bf3847d1d0" + }, + "m_SlotId": 592166105 + } + }, { "m_OutputSlot": { "m_Node": { @@ -362,6 +382,9 @@ { "m_Id": "ead31769aa464a4e8aae7a3cfa026b2c" }, + { + "m_Id": "5fe8cab7980244fcaefd3eaf8f1b4057" + }, { "m_Id": "e6c1845b1ff7420192f4e36917f71689" }, @@ -383,14 +406,16 @@ "d2495ca0-f5eb-484a-bd18-dca0589774e3", "916faab9-cc1c-4621-84b8-9c47171bf8e8", "ad5cc3fe-a5f8-4a48-9956-35d13519f07e", - "fa354438-5a66-4424-a53f-da950e75c488" + "fa354438-5a66-4424-a53f-da950e75c488", + "d3263a66-e96d-45f6-bbbd-9b3869d2008d" ], "m_PropertyIds": [ 1340748427, -643094866, 2016068918, 1221667242, - -1559276299 + -1559276299, + 592166105 ], "m_Dropdowns": [], "m_DropdownSelectedEntries": [] @@ -432,6 +457,34 @@ } } +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty", + "m_ObjectId": "245594752a2f40a9a0b592ea1d772667", + "m_Guid": { + "m_GuidSerialized": "8664794b-d0c4-43d3-831d-d05580ae7250" + }, + "m_Name": "ShadingShiftFactor", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "ShadingShiftFactor", + "m_DefaultReferenceName": "_ShadingShiftFactor", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": 0.0, + "m_FloatType": 0, + "m_RangeValues": { + "x": 0.0, + "y": 1.0 + } +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", @@ -629,6 +682,21 @@ "m_DefaultType": 0 } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "5fe8cab7980244fcaefd3eaf8f1b4057", + "m_Id": 592166105, + "m_DisplayName": "ShadingShiftFactor", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "_ShadingShiftFactor", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", @@ -716,6 +784,9 @@ }, { "m_Id": "025d73c9fe2e47b3853bf9a00d126af4" + }, + { + "m_Id": "245594752a2f40a9a0b592ea1d772667" } ] } @@ -846,6 +917,57 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "9e996b1a054f4a0caf78c639f3d104ac", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -16.0, + "y": 258.0, + "width": 176.66668701171876, + "height": 36.0 + } + }, + "m_Slots": [ + { + "m_Id": "ac0a28cfdb9d4ec78f68744c66110f8d" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "245594752a2f40a9a0b592ea1d772667" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "ac0a28cfdb9d4ec78f68744c66110f8d", + "m_Id": 0, + "m_DisplayName": "ShadingShiftFactor", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.PropertyNode", diff --git a/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyMToonOpaque.shadergraph b/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyMToonOpaque.shadergraph index 6bcdfb896..8ae490825 100644 --- a/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyMToonOpaque.shadergraph +++ b/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyMToonOpaque.shadergraph @@ -23,6 +23,9 @@ }, { "m_Id": "d39873e6759a47c2a923dde640e6f4f6" + }, + { + "m_Id": "f0d45de1f0c94cd794a750a329950f35" } ], "m_Keywords": [], @@ -77,6 +80,9 @@ }, { "m_Id": "9096c7ad43b94e54b6b3240398f1dab5" + }, + { + "m_Id": "2f23a09054324cf1aaa3cf24eb9c7df9" } ], "m_GroupDatas": [], @@ -152,6 +158,20 @@ "m_SlotId": -1559276299 } }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "2f23a09054324cf1aaa3cf24eb9c7df9" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "0776e82cf5bc4372962108bf3847d1d0" + }, + "m_SlotId": 592166105 + } + }, { "m_OutputSlot": { "m_Node": { @@ -437,10 +457,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": 240.66665649414063, - "y": 95.33334350585938, - "width": 265.3334045410156, - "height": 377.3332824707031 + "x": 231.33335876464845, + "y": 77.33333587646485, + "width": 265.33331298828127, + "height": 401.33331298828127 } }, "m_Slots": [ @@ -459,6 +479,9 @@ { "m_Id": "ead31769aa464a4e8aae7a3cfa026b2c" }, + { + "m_Id": "7392f5e248684e5c93520870021f5631" + }, { "m_Id": "7207d851d0d54d9dbec558d8350cbcf5" }, @@ -480,14 +503,16 @@ "d2495ca0-f5eb-484a-bd18-dca0589774e3", "916faab9-cc1c-4621-84b8-9c47171bf8e8", "ad5cc3fe-a5f8-4a48-9956-35d13519f07e", - "fa354438-5a66-4424-a53f-da950e75c488" + "fa354438-5a66-4424-a53f-da950e75c488", + "d3263a66-e96d-45f6-bbbd-9b3869d2008d" ], "m_PropertyIds": [ 1340748427, -643094866, 2016068918, 1221667242, - -1559276299 + -1559276299, + 592166105 ], "m_Dropdowns": [], "m_DropdownSelectedEntries": [] @@ -594,6 +619,42 @@ "m_Labels": [] } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "2f23a09054324cf1aaa3cf24eb9c7df9", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -16.0, + "y": 258.0, + "width": 176.6666717529297, + "height": 36.00006103515625 + } + }, + "m_Slots": [ + { + "m_Id": "d053c162e1e64e7b8ff3f91b45ecc824" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "f0d45de1f0c94cd794a750a329950f35" + } +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.ColorRGBMaterialSlot", @@ -875,6 +936,21 @@ "m_Labels": [] } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "7392f5e248684e5c93520870021f5631", + "m_Id": 592166105, + "m_DisplayName": "ShadingShiftFactor", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "_ShadingShiftFactor", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", @@ -953,6 +1029,9 @@ }, { "m_Id": "d39873e6759a47c2a923dde640e6f4f6" + }, + { + "m_Id": "f0d45de1f0c94cd794a750a329950f35" } ] } @@ -1373,6 +1452,21 @@ "m_ObjectId": "cd81c525151142c89a6af7f574fd628b" } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "d053c162e1e64e7b8ff3f91b45ecc824", + "m_Id": 0, + "m_DisplayName": "ShadingShiftFactor", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", @@ -1533,6 +1627,34 @@ "m_Labels": [] } +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty", + "m_ObjectId": "f0d45de1f0c94cd794a750a329950f35", + "m_Guid": { + "m_GuidSerialized": "d7b412ec-0586-4bd1-ad66-16ccf23249fb" + }, + "m_Name": "ShadingShiftFactor", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "ShadingShiftFactor", + "m_DefaultReferenceName": "_ShadingShiftFactor", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": 0.0, + "m_FloatType": 0, + "m_RangeValues": { + "x": 0.0, + "y": 1.0 + } +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.PositionMaterialSlot", diff --git a/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyMToon_SubGraph.shadersubgraph b/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyMToon_SubGraph.shadersubgraph index 462a1b670..55e89168d 100644 --- a/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyMToon_SubGraph.shadersubgraph +++ b/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyMToon_SubGraph.shadersubgraph @@ -17,6 +17,9 @@ }, { "m_Id": "22a4bb49b85e452a8db5595bcbeb91c5" + }, + { + "m_Id": "7e09a1dd20fa45cfb744461ff4274fe3" } ], "m_Keywords": [], @@ -86,6 +89,12 @@ }, { "m_Id": "4efbc3bbf016413e94e4c9ac65dd4789" + }, + { + "m_Id": "564e3bc994554c0895bbd2cba3c0915d" + }, + { + "m_Id": "e97ebd89b37649bbbbb6bce779b31161" } ], "m_GroupDatas": [], @@ -100,21 +109,7 @@ }, "m_InputSlot": { "m_Node": { - "m_Id": "9e8ee3e30f75499087e513eaac81b463" - }, - "m_SlotId": 1 - } - }, - { - "m_OutputSlot": { - "m_Node": { - "m_Id": "193173a2eded42af802f4085a1ba700a" - }, - "m_SlotId": 0 - }, - "m_InputSlot": { - "m_Node": { - "m_Id": "ac0d7130cca947dfa64b9b4e4869b270" + "m_Id": "564e3bc994554c0895bbd2cba3c0915d" }, "m_SlotId": 0 } @@ -175,6 +170,34 @@ "m_SlotId": 0 } }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "564e3bc994554c0895bbd2cba3c0915d" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "9e8ee3e30f75499087e513eaac81b463" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "564e3bc994554c0895bbd2cba3c0915d" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "ac0d7130cca947dfa64b9b4e4869b270" + }, + "m_SlotId": 0 + } + }, { "m_OutputSlot": { "m_Node": { @@ -399,6 +422,20 @@ "m_SlotId": 1 } }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "e97ebd89b37649bbbbb6bce779b31161" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "564e3bc994554c0895bbd2cba3c0915d" + }, + "m_SlotId": 1 + } + }, { "m_OutputSlot": { "m_Node": { @@ -591,10 +628,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": -241.3332977294922, - "y": 66.00003051757813, - "width": 185.33326721191407, - "height": 36.000022888183597 + "x": -352.0, + "y": 290.6667175292969, + "width": 185.33334350585938, + "height": 35.999969482421878 } }, "m_Slots": [ @@ -919,6 +956,30 @@ "m_Labels": [] } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "365fece80463494f884dfba1ea141896", + "m_Id": 0, + "m_DisplayName": "A", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", @@ -979,10 +1040,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": -241.3332977294922, - "y": -6.000007152557373, - "width": 148.66659545898438, - "height": 36.00001907348633 + "x": -240.6666717529297, + "y": -167.99998474121095, + "width": 148.6666717529297, + "height": 36.0 } }, "m_Slots": [ @@ -1250,10 +1311,56 @@ }, { "m_Id": "22a4bb49b85e452a8db5595bcbeb91c5" + }, + { + "m_Id": "7e09a1dd20fa45cfb744461ff4274fe3" } ] } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.AddNode", + "m_ObjectId": "564e3bc994554c0895bbd2cba3c0915d", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Add", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -131.99998474121095, + "y": 266.6667175292969, + "width": 127.33331298828125, + "height": 120.00003051757813 + } + }, + "m_Slots": [ + { + "m_Id": "365fece80463494f884dfba1ea141896" + }, + { + "m_Id": "9809a78c448345959ba93247b69dd7bc" + }, + { + "m_Id": "d43d943ea3ac4cf3955a6aff64035bcc" + } + ], + "synonyms": [ + "addition", + "sum", + "plus" + ], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", @@ -1535,6 +1642,34 @@ "m_Labels": [] } +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty", + "m_ObjectId": "7e09a1dd20fa45cfb744461ff4274fe3", + "m_Guid": { + "m_GuidSerialized": "d3263a66-e96d-45f6-bbbd-9b3869d2008d" + }, + "m_Name": "ShadingShiftFactor", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "ShadingShiftFactor", + "m_DefaultReferenceName": "_ShadingShiftFactor", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": 0.0, + "m_FloatType": 0, + "m_RangeValues": { + "x": 0.0, + "y": 1.0 + } +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.MultiplyNode", @@ -1717,6 +1852,30 @@ "m_Labels": [] } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "9809a78c448345959ba93247b69dd7bc", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", @@ -1890,10 +2049,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": 38.66663360595703, - "y": 242.66673278808595, - "width": 129.3333740234375, - "height": 95.99998474121094 + "x": 38.666690826416019, + "y": 194.66668701171876, + "width": 129.33331298828126, + "height": 96.00003051757813 } }, "m_Slots": [ @@ -2144,6 +2303,21 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "c586599eb94844e8852ace67749001b7", + "m_Id": 0, + "m_DisplayName": "ShadingShiftFactor", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.MainLightDirectionNode", @@ -2349,6 +2523,30 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "d43d943ea3ac4cf3955a6aff64035bcc", + "m_Id": 2, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", @@ -2385,10 +2583,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": -241.3332977294922, - "y": 30.00001335144043, - "width": 177.99990844726563, - "height": 36.00001525878906 + "x": -240.6666717529297, + "y": -119.9999771118164, + "width": 178.0, + "height": 35.999969482421878 } }, "m_Slots": [ @@ -2686,6 +2884,42 @@ "m_Labels": [] } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "e97ebd89b37649bbbbb6bce779b31161", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -352.0, + "y": 326.66668701171877, + "width": 102.66665649414063, + "height": 36.000030517578128 + } + }, + "m_Slots": [ + { + "m_Id": "c586599eb94844e8852ace67749001b7" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "7e09a1dd20fa45cfb744461ff4274fe3" + } +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.PropertyNode", diff --git a/Assets/VRM10_Samples/VRM10Viewer/TinyMToonMaterialContext.cs b/Assets/VRM10_Samples/VRM10Viewer/TinyMToonMaterialContext.cs index d74440732..09c162aab 100644 --- a/Assets/VRM10_Samples/VRM10Viewer/TinyMToonMaterialContext.cs +++ b/Assets/VRM10_Samples/VRM10Viewer/TinyMToonMaterialContext.cs @@ -22,6 +22,7 @@ namespace UniVRM10.VRM10Viewer private static readonly int ShadingColorFactorProp = Shader.PropertyToID("_ShadingColor"); private static readonly int ShadingMapProp = Shader.PropertyToID("_ShadingMap"); private static readonly int ShadingToonyFactorProp = Shader.PropertyToID("_ShadingToonyFactor"); + private static readonly int ShadingShiftFactorProp = Shader.PropertyToID("_ShadingShiftFactor"); /// /// float = 1.0 @@ -92,6 +93,11 @@ namespace UniVRM10.VRM10Viewer get => Material.GetFloat(ShadingToonyFactorProp); set => Material.SetFloat(ShadingToonyFactorProp, value); } + public float ShadingShiftFactor + { + get => Material.GetFloat(ShadingShiftFactorProp); + set => Material.SetFloat(ShadingShiftFactorProp, value); + } public float BumpScale { diff --git a/Assets/VRM10_Samples/VRM10Viewer/TinyMToonMaterialImporter.cs b/Assets/VRM10_Samples/VRM10Viewer/TinyMToonMaterialImporter.cs index bd467cd5d..b1a5c381b 100644 --- a/Assets/VRM10_Samples/VRM10Viewer/TinyMToonMaterialImporter.cs +++ b/Assets/VRM10_Samples/VRM10Viewer/TinyMToonMaterialImporter.cs @@ -101,6 +101,7 @@ namespace UniVRM10.VRM10Viewer } context.ShadingToonyFactor = mtoon.ShadingToonyFactor.GetValueOrDefault(); + context.ShadingShiftFactor = mtoon.ShadingToonyFactor.GetValueOrDefault(); var shadeColor = mtoon.ShadeColorFactor?.ToColor3(UniGLTF.ColorSpace.Linear, UniGLTF.ColorSpace.sRGB); context.ShadingColorFactorSrgb = shadeColor.GetValueOrDefault(Color.white); if (mtoon is { ShadeMultiplyTexture: { Index: >= 0 } }) diff --git a/Assets/VRM10_Samples/VRM10Viewer/VRM10VisualPrimitive.cs b/Assets/VRM10_Samples/VRM10Viewer/VRM10VisualPrimitive.cs index b87a30f79..668701c3b 100644 --- a/Assets/VRM10_Samples/VRM10Viewer/VRM10VisualPrimitive.cs +++ b/Assets/VRM10_Samples/VRM10Viewer/VRM10VisualPrimitive.cs @@ -37,8 +37,8 @@ namespace UniVRM10.VRM10Viewer if (_urpMaterialForGrayscale != null) { var m = Instantiate(_urpMaterialForGrayscale); - m.SetFloat("_Metallic", 0); - m.SetFloat("_Roughness", 1); + // m.SetFloat("_Metallic", 0); + // m.SetFloat("_Roughness", 1); visual.GetComponent().material = m; } } From 98a16e81a98bb63bfdc43307ccc95c3fb4edadd4 Mon Sep 17 00:00:00 2001 From: ousttrue Date: Thu, 27 Feb 2025 20:50:12 +0900 Subject: [PATCH 35/56] NormalMap --- .../Assets/TinyMToon_SubGraph.shadersubgraph | 120 +++++++++++------- .../VRM10Viewer/TinyMToonMaterialImporter.cs | 16 ++- .../VRM10Viewer/VRM10VisualPrimitive.cs | 4 +- 3 files changed, 88 insertions(+), 52 deletions(-) diff --git a/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyMToon_SubGraph.shadersubgraph b/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyMToon_SubGraph.shadersubgraph index 55e89168d..69f825c2f 100644 --- a/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyMToon_SubGraph.shadersubgraph +++ b/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyMToon_SubGraph.shadersubgraph @@ -1040,10 +1040,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": -240.6666717529297, - "y": -167.99998474121095, - "width": 148.6666717529297, - "height": 36.0 + "x": -250.0, + "y": -129.3333740234375, + "width": 148.6666259765625, + "height": 35.99998474121094 } }, "m_Slots": [ @@ -1251,9 +1251,9 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": 41.33331298828125, - "y": -774.6666870117188, - "width": 129.33340454101563, + "x": 29.33331871032715, + "y": -714.666748046875, + "width": 129.33334350585938, "height": 126.66668701171875 } }, @@ -1564,10 +1564,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": -30.666671752929689, - "y": -480.6666259765625, - "width": 184.66668701171876, - "height": 254.66665649414063 + "x": -42.66670608520508, + "y": -420.66668701171877, + "width": 184.66665649414063, + "height": 254.6667022705078 } }, "m_Slots": [ @@ -1682,10 +1682,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": 191.83334350585938, - "y": -719.625, - "width": 209.33334350585938, - "height": 304.0 + "x": 180.0, + "y": -660.0, + "width": 209.33328247070313, + "height": 303.99993896484377 } }, "m_Slots": [ @@ -1976,10 +1976,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": -16.666717529296876, - "y": -131.99996948242188, - "width": 184.66671752929688, - "height": 254.6666717529297 + "x": -26.000001907348634, + "y": -93.33338928222656, + "width": 184.66665649414063, + "height": 254.66668701171876 } }, "m_Slots": [ @@ -2088,10 +2088,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": 445.9999694824219, - "y": -225.99998474121095, + "x": 443.3333435058594, + "y": -192.66668701171876, "width": 209.33328247070313, - "height": 328.0000305175781 + "height": 327.99993896484377 } }, "m_Slots": [ @@ -2224,10 +2224,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": 189.33331298828126, - "y": -207.33331298828126, - "width": 209.33331298828126, - "height": 304.0 + "x": 180.0, + "y": -168.6667022705078, + "width": 209.33328247070313, + "height": 303.99993896484377 } }, "m_Slots": [ @@ -2437,9 +2437,9 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": -113.33329010009766, - "y": -795.3333740234375, - "width": 120.66663360595703, + "x": -125.33336639404297, + "y": -735.3333740234375, + "width": 120.66670989990235, "height": 150.66668701171876 } }, @@ -2499,10 +2499,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": -277.33331298828127, - "y": -756.0, - "width": 132.00001525878907, - "height": 36.0 + "x": -289.3334045410156, + "y": -696.0000610351563, + "width": 132.00006103515626, + "height": 36.00006103515625 } }, "m_Slots": [ @@ -2583,10 +2583,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": -240.6666717529297, - "y": -119.9999771118164, - "width": 178.0, - "height": 35.999969482421878 + "x": -250.0, + "y": -81.3333969116211, + "width": 177.9999542236328, + "height": 35.99997329711914 } }, "m_Slots": [ @@ -2631,6 +2631,29 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", + "m_ObjectId": "da1f526e56c749649fdde4460e6ab70e", + "m_Id": 3, + "m_DisplayName": "Normal", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Normal", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [] +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.SamplerStateMaterialSlot", @@ -2791,10 +2814,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": 714.6666870117188, - "y": -428.6665954589844, - "width": 110.00006103515625, - "height": 102.6666259765625 + "x": 724.0000610351563, + "y": -192.66668701171876, + "width": 110.0, + "height": 126.66663360595703 } }, "m_Slots": [ @@ -2803,6 +2826,9 @@ }, { "m_Id": "eb34d529e298407aa3606f9cbcdc7819" + }, + { + "m_Id": "da1f526e56c749649fdde4460e6ab70e" } ], "synonyms": [], @@ -2932,9 +2958,9 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": -278.6666259765625, - "y": -451.9999694824219, - "width": 133.33328247070313, + "x": -290.66668701171877, + "y": -392.00006103515627, + "width": 133.33334350585938, "height": 36.0 } }, @@ -2983,10 +3009,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": 271.3333435058594, - "y": -402.6666259765625, + "x": 259.33331298828127, + "y": -342.6666564941406, "width": 127.33328247070313, - "height": 120.00003051757813 + "height": 119.99992370605469 } }, "m_Slots": [ diff --git a/Assets/VRM10_Samples/VRM10Viewer/TinyMToonMaterialImporter.cs b/Assets/VRM10_Samples/VRM10Viewer/TinyMToonMaterialImporter.cs index b1a5c381b..b5f5003e0 100644 --- a/Assets/VRM10_Samples/VRM10Viewer/TinyMToonMaterialImporter.cs +++ b/Assets/VRM10_Samples/VRM10Viewer/TinyMToonMaterialImporter.cs @@ -55,9 +55,7 @@ namespace UniVRM10.VRM10Viewer ImportSurfaceSettings(src, context); await ImportBaseShadeColorAsync(data, src, mtoon, context, getTextureAsync, awaitCaller); - // await ImportMetallicRoughnessAsync(data, src, context, getTextureAsync, awaitCaller); - // await ImportOcclusionAsync(data, src, context, getTextureAsync, awaitCaller); - // await ImportNormalAsync(data, src, context, getTextureAsync, awaitCaller); + await ImportNormalAsync(data, src, context, getTextureAsync, awaitCaller); // await ImportEmissionAsync(data, src, context, getTextureAsync, awaitCaller); // context.Validate(); @@ -112,5 +110,17 @@ namespace UniVRM10.VRM10Viewer } } } + + private static async Task ImportNormalAsync(GltfData data, glTFMaterial src, TinyMToonMaterialContext context, GetTextureAsyncFunc getTextureAsync, IAwaitCaller awaitCaller) + { + if (src.normalTexture is { index: >= 0 }) + { + if (GltfPbrTextureImporter.TryNormalTexture(data, src, out _, out var desc)) + { + context.BumpMap = await getTextureAsync(desc, awaitCaller); + context.BumpScale = src.normalTexture.scale; + } + } + } } } \ No newline at end of file diff --git a/Assets/VRM10_Samples/VRM10Viewer/VRM10VisualPrimitive.cs b/Assets/VRM10_Samples/VRM10Viewer/VRM10VisualPrimitive.cs index 668701c3b..b87a30f79 100644 --- a/Assets/VRM10_Samples/VRM10Viewer/VRM10VisualPrimitive.cs +++ b/Assets/VRM10_Samples/VRM10Viewer/VRM10VisualPrimitive.cs @@ -37,8 +37,8 @@ namespace UniVRM10.VRM10Viewer if (_urpMaterialForGrayscale != null) { var m = Instantiate(_urpMaterialForGrayscale); - // m.SetFloat("_Metallic", 0); - // m.SetFloat("_Roughness", 1); + m.SetFloat("_Metallic", 0); + m.SetFloat("_Roughness", 1); visual.GetComponent().material = m; } } From 360195d7ae54fee2b974c9c6d3aeb7d73a268d00 Mon Sep 17 00:00:00 2001 From: ousttrue Date: Fri, 28 Feb 2025 14:03:59 +0900 Subject: [PATCH 36/56] emission bloom --- .../Assets/PostProcess Profile.asset | 63 ++ .../Assets/PostProcess Profile.asset.meta | 8 + .../Assets/TinyMToonAlphaBlend.shadergraph | 279 ++++++- .../Assets/TinyMToonOpaque.shadergraph | 279 ++++++- .../Assets/TinyMToon_SubGraph.shadersubgraph | 678 +++++++++++++++++- 5 files changed, 1296 insertions(+), 11 deletions(-) create mode 100644 Assets/VRM10_Samples/VRM10Viewer/Assets/PostProcess Profile.asset create mode 100644 Assets/VRM10_Samples/VRM10Viewer/Assets/PostProcess Profile.asset.meta diff --git a/Assets/VRM10_Samples/VRM10Viewer/Assets/PostProcess Profile.asset b/Assets/VRM10_Samples/VRM10Viewer/Assets/PostProcess Profile.asset new file mode 100644 index 000000000..8e3c91d76 --- /dev/null +++ b/Assets/VRM10_Samples/VRM10Viewer/Assets/PostProcess Profile.asset @@ -0,0 +1,63 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!114 &11400000 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: d7fd9488000d3734a9e00ee676215985, type: 3} + m_Name: PostProcess Profile + m_EditorClassIdentifier: + components: + - {fileID: 4092932147052232957} +--- !u!114 &4092932147052232957 +MonoBehaviour: + m_ObjectHideFlags: 3 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 0b2db86121404754db890f4c8dfe81b2, type: 3} + m_Name: Bloom + m_EditorClassIdentifier: + active: 1 + skipIterations: + m_OverrideState: 0 + m_Value: 1 + threshold: + m_OverrideState: 0 + m_Value: 0.9 + intensity: + m_OverrideState: 0 + m_Value: 0 + scatter: + m_OverrideState: 0 + m_Value: 0.7 + clamp: + m_OverrideState: 0 + m_Value: 65472 + tint: + m_OverrideState: 0 + m_Value: {r: 1, g: 1, b: 1, a: 1} + highQualityFiltering: + m_OverrideState: 0 + m_Value: 0 + downscale: + m_OverrideState: 0 + m_Value: 0 + maxIterations: + m_OverrideState: 0 + m_Value: 6 + dirtTexture: + m_OverrideState: 0 + m_Value: {fileID: 0} + dimension: 1 + dirtIntensity: + m_OverrideState: 0 + m_Value: 0 diff --git a/Assets/VRM10_Samples/VRM10Viewer/Assets/PostProcess Profile.asset.meta b/Assets/VRM10_Samples/VRM10Viewer/Assets/PostProcess Profile.asset.meta new file mode 100644 index 000000000..b750f3872 --- /dev/null +++ b/Assets/VRM10_Samples/VRM10Viewer/Assets/PostProcess Profile.asset.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 74977177c881c8a449d9f981e53acc0c +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 11400000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyMToonAlphaBlend.shadergraph b/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyMToonAlphaBlend.shadergraph index beef056c3..f8cf167e4 100644 --- a/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyMToonAlphaBlend.shadergraph +++ b/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyMToonAlphaBlend.shadergraph @@ -20,6 +20,12 @@ }, { "m_Id": "245594752a2f40a9a0b592ea1d772667" + }, + { + "m_Id": "562743730bee4e7d884999358d07eff8" + }, + { + "m_Id": "0742cd72e9334a03a596f3bf845e52cf" } ], "m_Keywords": [], @@ -65,6 +71,12 @@ }, { "m_Id": "9e996b1a054f4a0caf78c639f3d104ac" + }, + { + "m_Id": "d60c8ebae6a34276a9c940ce0c22e7f1" + }, + { + "m_Id": "4ca5e0de823c4b5f890216a9a1d28ced" } ], "m_GroupDatas": [], @@ -126,6 +138,20 @@ "m_SlotId": -1559276299 } }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "4ca5e0de823c4b5f890216a9a1d28ced" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "0776e82cf5bc4372962108bf3847d1d0" + }, + "m_SlotId": 490756011 + } + }, { "m_OutputSlot": { "m_Node": { @@ -181,6 +207,20 @@ }, "m_SlotId": 1221667242 } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "d60c8ebae6a34276a9c940ce0c22e7f1" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "0776e82cf5bc4372962108bf3847d1d0" + }, + "m_SlotId": 287326672 + } } ], "m_VertexContext": { @@ -348,6 +388,34 @@ } } +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty", + "m_ObjectId": "0742cd72e9334a03a596f3bf845e52cf", + "m_Guid": { + "m_GuidSerialized": "cd38a38b-22cd-403b-92df-6fccc9a67d6b" + }, + "m_Name": "BumpScale", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "BumpScale", + "m_DefaultReferenceName": "_BumpScale", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": 0.0, + "m_FloatType": 0, + "m_RangeValues": { + "x": 0.0, + "y": 1.0 + } +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.SubGraphNode", @@ -385,11 +453,20 @@ { "m_Id": "5fe8cab7980244fcaefd3eaf8f1b4057" }, + { + "m_Id": "e55ec74ec60f474d9580d5ed52bfb4aa" + }, + { + "m_Id": "102c2a8fcff94efdad15054c1e4a4392" + }, { "m_Id": "e6c1845b1ff7420192f4e36917f71689" }, { "m_Id": "5411d859ca084103badb8b7863988cb2" + }, + { + "m_Id": "a835f0ec85a0423d8d95a4c24e21c10b" } ], "synonyms": [], @@ -407,7 +484,10 @@ "916faab9-cc1c-4621-84b8-9c47171bf8e8", "ad5cc3fe-a5f8-4a48-9956-35d13519f07e", "fa354438-5a66-4424-a53f-da950e75c488", - "d3263a66-e96d-45f6-bbbd-9b3869d2008d" + "d3263a66-e96d-45f6-bbbd-9b3869d2008d", + "23fc4c5e-606f-4623-9fc8-c425baf7c621", + "fc02a70c-3be1-403c-8f2b-a3d7b2f6bd7a", + "7739fffb-53c8-4ab8-b490-2f422c6bee62" ], "m_PropertyIds": [ 1340748427, @@ -415,12 +495,30 @@ 2016068918, 1221667242, -1559276299, - 592166105 + 592166105, + 1641878292, + 287326672, + 490756011 ], "m_Dropdowns": [], "m_DropdownSelectedEntries": [] } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "102c2a8fcff94efdad15054c1e4a4392", + "m_Id": 287326672, + "m_DisplayName": "NormalStrength", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "_NormalStrength", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.PropertyNode", @@ -485,6 +583,19 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DMaterialSlot", + "m_ObjectId": "2b256c71e9934914bee19f91ac9400a9", + "m_Id": 0, + "m_DisplayName": "BumpMap", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_BareResource": false +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", @@ -607,6 +718,42 @@ "m_BareResource": false } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "4ca5e0de823c4b5f890216a9a1d28ced", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 22.666664123535158, + "y": 294.0, + "width": 138.0, + "height": 36.0 + } + }, + "m_Slots": [ + { + "m_Id": "2b256c71e9934914bee19f91ac9400a9" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "562743730bee4e7d884999358d07eff8" + } +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Internal.Texture2DShaderProperty", @@ -652,6 +799,36 @@ "m_Labels": [] } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Internal.Texture2DShaderProperty", + "m_ObjectId": "562743730bee4e7d884999358d07eff8", + "m_Guid": { + "m_GuidSerialized": "dcb3e785-f2ae-444a-a6c2-35c400d8b8fe" + }, + "m_Name": "BumpMap", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "BumpMap", + "m_DefaultReferenceName": "_BumpMap", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": { + "m_SerializedTexture": "", + "m_Guid": "" + }, + "isMainTexture": false, + "useTilingAndOffset": false, + "m_Modifiable": true, + "m_DefaultType": 3 +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Internal.Texture2DShaderProperty", @@ -787,6 +964,12 @@ }, { "m_Id": "245594752a2f40a9a0b592ea1d772667" + }, + { + "m_Id": "562743730bee4e7d884999358d07eff8" + }, + { + "m_Id": "0742cd72e9334a03a596f3bf845e52cf" } ] } @@ -953,6 +1136,29 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", + "m_ObjectId": "a835f0ec85a0423d8d95a4c24e21c10b", + "m_Id": 3, + "m_DisplayName": "Normal", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Normal", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [] +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", @@ -1147,6 +1353,57 @@ "m_Labels": [] } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "d60c8ebae6a34276a9c940ce0c22e7f1", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 26.0, + "y": 330.0, + "width": 134.6666717529297, + "height": 36.0 + } + }, + "m_Slots": [ + { + "m_Id": "d8f073174a9440d4b4b45d696b8f81d0" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "0742cd72e9334a03a596f3bf845e52cf" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "d8f073174a9440d4b4b45d696b8f81d0", + "m_Id": 0, + "m_DisplayName": "BumpScale", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.BlockNode", @@ -1215,6 +1472,24 @@ "m_SerializedDescriptor": "SurfaceDescription.BaseColor" } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", + "m_ObjectId": "e55ec74ec60f474d9580d5ed52bfb4aa", + "m_Id": 490756011, + "m_DisplayName": "NormalMap", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "_NormalMap", + "m_StageCapability": 2, + "m_BareResource": false, + "m_Texture": { + "m_SerializedTexture": "", + "m_Guid": "" + }, + "m_DefaultType": 0 +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", diff --git a/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyMToonOpaque.shadergraph b/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyMToonOpaque.shadergraph index 8ae490825..18f51158f 100644 --- a/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyMToonOpaque.shadergraph +++ b/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyMToonOpaque.shadergraph @@ -26,6 +26,12 @@ }, { "m_Id": "f0d45de1f0c94cd794a750a329950f35" + }, + { + "m_Id": "768ef8d819804d919b966c240e815700" + }, + { + "m_Id": "b1faea9e904b4eab8c5266d6c0565f0d" } ], "m_Keywords": [], @@ -83,6 +89,12 @@ }, { "m_Id": "2f23a09054324cf1aaa3cf24eb9c7df9" + }, + { + "m_Id": "730d19702af74ab0a460870e52ee93b1" + }, + { + "m_Id": "4ad616c1aab04122abdd5700f5e65735" } ], "m_GroupDatas": [], @@ -172,6 +184,34 @@ "m_SlotId": 592166105 } }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "4ad616c1aab04122abdd5700f5e65735" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "0776e82cf5bc4372962108bf3847d1d0" + }, + "m_SlotId": 490756011 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "730d19702af74ab0a460870e52ee93b1" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "0776e82cf5bc4372962108bf3847d1d0" + }, + "m_SlotId": 287326672 + } + }, { "m_OutputSlot": { "m_Node": { @@ -482,11 +522,20 @@ { "m_Id": "7392f5e248684e5c93520870021f5631" }, + { + "m_Id": "d8c467fa94be4293a923f302733693da" + }, + { + "m_Id": "4afd8280877340cf8f37960bba00cd70" + }, { "m_Id": "7207d851d0d54d9dbec558d8350cbcf5" }, { "m_Id": "8dee648ae25449838a2cc7261ec55970" + }, + { + "m_Id": "3e70c875940e45098805f075861a86a2" } ], "synonyms": [], @@ -504,7 +553,10 @@ "916faab9-cc1c-4621-84b8-9c47171bf8e8", "ad5cc3fe-a5f8-4a48-9956-35d13519f07e", "fa354438-5a66-4424-a53f-da950e75c488", - "d3263a66-e96d-45f6-bbbd-9b3869d2008d" + "d3263a66-e96d-45f6-bbbd-9b3869d2008d", + "23fc4c5e-606f-4623-9fc8-c425baf7c621", + "fc02a70c-3be1-403c-8f2b-a3d7b2f6bd7a", + "7739fffb-53c8-4ab8-b490-2f422c6bee62" ], "m_PropertyIds": [ 1340748427, @@ -512,7 +564,10 @@ 2016068918, 1221667242, -1559276299, - 592166105 + 592166105, + 1641878292, + 287326672, + 490756011 ], "m_Dropdowns": [], "m_DropdownSelectedEntries": [] @@ -685,6 +740,29 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", + "m_ObjectId": "3e70c875940e45098805f075861a86a2", + "m_Id": 3, + "m_DisplayName": "Normal", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Normal", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [] +} + { "m_SGVersion": 3, "m_Type": "UnityEditor.ShaderGraph.Internal.ColorShaderProperty", @@ -757,6 +835,42 @@ "m_DefaultValue": false } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "4ad616c1aab04122abdd5700f5e65735", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 22.666664123535158, + "y": 293.9999694824219, + "width": 138.00003051757813, + "height": 36.0 + } + }, + "m_Slots": [ + { + "m_Id": "70a8e0bdfe3e4717a57111e48e056afc" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "768ef8d819804d919b966c240e815700" + } +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.BlockNode", @@ -791,6 +905,21 @@ "m_SerializedDescriptor": "VertexDescription.Tangent" } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "4afd8280877340cf8f37960bba00cd70", + "m_Id": 287326672, + "m_DisplayName": "NormalStrength", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "_NormalStrength", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Texture2DMaterialSlot", @@ -913,6 +1042,19 @@ "m_SerializedDescriptor": "SurfaceDescription.Alpha" } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DMaterialSlot", + "m_ObjectId": "70a8e0bdfe3e4717a57111e48e056afc", + "m_Id": 0, + "m_DisplayName": "BumpMap", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_BareResource": false +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", @@ -936,6 +1078,42 @@ "m_Labels": [] } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "730d19702af74ab0a460870e52ee93b1", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 27.333335876464845, + "y": 329.9999694824219, + "width": 134.66665649414063, + "height": 36.0 + } + }, + "m_Slots": [ + { + "m_Id": "a5c728807e084c5d9adba57613ac10b3" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "b1faea9e904b4eab8c5266d6c0565f0d" + } +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", @@ -951,6 +1129,36 @@ "m_Labels": [] } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Internal.Texture2DShaderProperty", + "m_ObjectId": "768ef8d819804d919b966c240e815700", + "m_Guid": { + "m_GuidSerialized": "f652e6b3-5210-4d68-aef2-ffe08a7be1e4" + }, + "m_Name": "BumpMap", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "BumpMap", + "m_DefaultReferenceName": "_BumpMap", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": { + "m_SerializedTexture": "", + "m_Guid": "" + }, + "isMainTexture": false, + "useTilingAndOffset": false, + "m_Modifiable": true, + "m_DefaultType": 3 +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", @@ -1032,6 +1240,12 @@ }, { "m_Id": "f0d45de1f0c94cd794a750a329950f35" + }, + { + "m_Id": "768ef8d819804d919b966c240e815700" + }, + { + "m_Id": "b1faea9e904b4eab8c5266d6c0565f0d" } ] } @@ -1223,6 +1437,21 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "a5c728807e084c5d9adba57613ac10b3", + "m_Id": 0, + "m_DisplayName": "BumpScale", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", @@ -1247,6 +1476,34 @@ } } +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty", + "m_ObjectId": "b1faea9e904b4eab8c5266d6c0565f0d", + "m_Guid": { + "m_GuidSerialized": "58bcb52a-51f5-424c-9517-b18584cbb4c3" + }, + "m_Name": "BumpScale", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "BumpScale", + "m_DefaultReferenceName": "_BumpScale", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": 0.0, + "m_FloatType": 0, + "m_RangeValues": { + "x": 0.0, + "y": 1.0 + } +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.PropertyNode", @@ -1515,6 +1772,24 @@ "m_Value": false } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", + "m_ObjectId": "d8c467fa94be4293a923f302733693da", + "m_Id": 490756011, + "m_DisplayName": "NormalMap", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "_NormalMap", + "m_StageCapability": 2, + "m_BareResource": false, + "m_Texture": { + "m_SerializedTexture": "", + "m_Guid": "" + }, + "m_DefaultType": 0 +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", diff --git a/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyMToon_SubGraph.shadersubgraph b/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyMToon_SubGraph.shadersubgraph index 69f825c2f..44d0e1c34 100644 --- a/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyMToon_SubGraph.shadersubgraph +++ b/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyMToon_SubGraph.shadersubgraph @@ -20,6 +20,12 @@ }, { "m_Id": "7e09a1dd20fa45cfb744461ff4274fe3" + }, + { + "m_Id": "80d7033fb26d4150afc7e381325e548b" + }, + { + "m_Id": "2e2ceb974f5b4c829366c88514f74c46" } ], "m_Keywords": [], @@ -95,6 +101,21 @@ }, { "m_Id": "e97ebd89b37649bbbbb6bce779b31161" + }, + { + "m_Id": "2dca18a425c24ef996f41d99f41f944f" + }, + { + "m_Id": "4cd8ff51123a4571aec4742c647d03e2" + }, + { + "m_Id": "a9167087f1b545f493408946cc06fa67" + }, + { + "m_Id": "de30e03340034417b8e6ae35c3fe8445" + }, + { + "m_Id": "33b1b5fde65e408db84dc8b2041d1f96" } ], "m_GroupDatas": [], @@ -114,6 +135,34 @@ "m_SlotId": 0 } }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "2dca18a425c24ef996f41d99f41f944f" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "4157f6d98e8f4cff8948bb4a108c6c31" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "33b1b5fde65e408db84dc8b2041d1f96" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "de30e03340034417b8e6ae35c3fe8445" + }, + "m_SlotId": 1 + } + }, { "m_OutputSlot": { "m_Node": { @@ -156,6 +205,20 @@ "m_SlotId": 2 } }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "4cd8ff51123a4571aec4742c647d03e2" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "2dca18a425c24ef996f41d99f41f944f" + }, + "m_SlotId": 1 + } + }, { "m_OutputSlot": { "m_Node": { @@ -207,9 +270,9 @@ }, "m_InputSlot": { "m_Node": { - "m_Id": "4157f6d98e8f4cff8948bb4a108c6c31" + "m_Id": "2dca18a425c24ef996f41d99f41f944f" }, - "m_SlotId": 1 + "m_SlotId": 0 } }, { @@ -282,6 +345,20 @@ "m_SlotId": 1 } }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "a9167087f1b545f493408946cc06fa67" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "4cd8ff51123a4571aec4742c647d03e2" + }, + "m_SlotId": 1 + } + }, { "m_OutputSlot": { "m_Node": { @@ -422,6 +499,20 @@ "m_SlotId": 1 } }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "de30e03340034417b8e6ae35c3fe8445" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "4cd8ff51123a4571aec4742c647d03e2" + }, + "m_SlotId": 0 + } + }, { "m_OutputSlot": { "m_Node": { @@ -675,6 +766,57 @@ "m_Labels": [] } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "1ef8e98871764425805d3d5d00cafd2c", + "m_Id": 0, + "m_DisplayName": "NormalStrength", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", + "m_ObjectId": "20e1731fba3c4e4abbcceaca20e43546", + "m_Id": 0, + "m_DisplayName": "In", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "In", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 1.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DMaterialSlot", + "m_ObjectId": "2172df51dc264e95a47d86247aeb738b", + "m_Id": 0, + "m_DisplayName": "NormalMap", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_BareResource": false +} + { "m_SGVersion": 1, "m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty", @@ -911,6 +1053,89 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.NormalBlendNode", + "m_ObjectId": "2dca18a425c24ef996f41d99f41f944f", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Normal Blend", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -517.3333129882813, + "y": 455.3333435058594, + "width": 209.33331298828126, + "height": 340.0000305175781 + } + }, + "m_Slots": [ + { + "m_Id": "6cc074d28a2248ec94c00b73180098ed" + }, + { + "m_Id": "abc7ac9e69c2400d907864143f74f526" + }, + { + "m_Id": "d8b989079b4b416e96bad77427cfc855" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_BlendMode": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Internal.Texture2DShaderProperty", + "m_ObjectId": "2e2ceb974f5b4c829366c88514f74c46", + "m_Guid": { + "m_GuidSerialized": "7739fffb-53c8-4ab8-b490-2f422c6bee62" + }, + "m_Name": "NormalMap", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "NormalMap", + "m_DefaultReferenceName": "_NormalMap", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": { + "m_SerializedTexture": "", + "m_Guid": "" + }, + "isMainTexture": false, + "useTilingAndOffset": false, + "m_Modifiable": true, + "m_DefaultType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SamplerStateMaterialSlot", + "m_ObjectId": "30ae7f93002e407386dbdc4f76bf9d08", + "m_Id": 3, + "m_DisplayName": "Sampler", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Sampler", + "m_StageCapability": 3, + "m_BareResource": false +} + { "m_SGVersion": 3, "m_Type": "UnityEditor.ShaderGraph.Internal.ColorShaderProperty", @@ -941,6 +1166,42 @@ "m_ColorMode": 0 } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "33b1b5fde65e408db84dc8b2041d1f96", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -1214.6666259765625, + "y": 536.6665649414063, + "width": 145.333251953125, + "height": 36.00006103515625 + } + }, + "m_Slots": [ + { + "m_Id": "2172df51dc264e95a47d86247aeb738b" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "2e2ceb974f5b4c829366c88514f74c46" + } +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", @@ -1158,6 +1419,21 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "4842fbf2d7044c75a39ca30c7d366a77", + "m_Id": 1, + "m_DisplayName": "Strength", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Strength", + "m_StageCapability": 3, + "m_Value": 1.0, + "m_DefaultValue": 1.0, + "m_Labels": [] +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", @@ -1197,6 +1473,47 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.NormalStrengthNode", + "m_ObjectId": "4cd8ff51123a4571aec4742c647d03e2", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Normal Strength", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -788.0, + "y": 497.33331298828127, + "width": 209.333251953125, + "height": 304.0 + } + }, + "m_Slots": [ + { + "m_Id": "20e1731fba3c4e4abbcceaca20e43546" + }, + { + "m_Id": "4842fbf2d7044c75a39ca30c7d366a77" + }, + { + "m_Id": "59f25b85991649f591b5ef62203138c8" + } + ], + "synonyms": [ + "intensity" + ], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", @@ -1314,6 +1631,12 @@ }, { "m_Id": "7e09a1dd20fa45cfb744461ff4274fe3" + }, + { + "m_Id": "2e2ceb974f5b4c829366c88514f74c46" + }, + { + "m_Id": "80d7033fb26d4150afc7e381325e548b" } ] } @@ -1386,6 +1709,44 @@ "m_Labels": [] } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "588c76b41cf84cb6a672821bc73de249", + "m_Id": 4, + "m_DisplayName": "R", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "R", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", + "m_ObjectId": "59f25b85991649f591b5ef62203138c8", + "m_Id": 2, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [] +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", @@ -1516,6 +1877,44 @@ "m_Labels": [] } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", + "m_ObjectId": "6cc074d28a2248ec94c00b73180098ed", + "m_Id": 0, + "m_DisplayName": "A", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 1.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "6f6041b20d494af4ac63813f1711fb75", + "m_Id": 5, + "m_DisplayName": "G", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "G", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.NormalVectorNode", @@ -1528,10 +1927,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": -517.3333129882813, - "y": 478.0000915527344, - "width": 209.33334350585938, - "height": 318.6664733886719 + "x": -823.3333740234375, + "y": 326.66668701171877, + "width": 207.3333740234375, + "height": 134.66671752929688 } }, "m_Slots": [ @@ -1543,7 +1942,7 @@ "surface direction" ], "m_Precision": 0, - "m_PreviewExpanded": true, + "m_PreviewExpanded": false, "m_DismissedVersion": 0, "m_PreviewMode": 2, "m_CustomColors": { @@ -1670,6 +2069,34 @@ } } +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty", + "m_ObjectId": "80d7033fb26d4150afc7e381325e548b", + "m_Guid": { + "m_GuidSerialized": "fc02a70c-3be1-403c-8f2b-a3d7b2f6bd7a" + }, + "m_Name": "NormalStrength", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "NormalStrength", + "m_DefaultReferenceName": "_NormalStrength", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": 0.0, + "m_FloatType": 0, + "m_RangeValues": { + "x": 0.0, + "y": 1.0 + } +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.MultiplyNode", @@ -1776,6 +2203,31 @@ "m_Labels": [] } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "8ab402d6dc9e49e7b456f140264432a3", + "m_Id": 0, + "m_DisplayName": "RGBA", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "RGBA", + "m_StageCapability": 2, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_Labels": [] +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", @@ -2037,6 +2489,65 @@ "m_BareResource": false } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "a9167087f1b545f493408946cc06fa67", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -1214.6666259765625, + "y": 581.3333129882813, + "width": 159.333251953125, + "height": 35.99993896484375 + } + }, + "m_Slots": [ + { + "m_Id": "1ef8e98871764425805d3d5d00cafd2c" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "80d7033fb26d4150afc7e381325e548b" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", + "m_ObjectId": "abc7ac9e69c2400d907864143f74f526", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 1.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [] +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.NegateNode", @@ -2353,6 +2864,28 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.UVMaterialSlot", + "m_ObjectId": "c9ac6a4a126c410098a495cd60816b70", + "m_Id": 2, + "m_DisplayName": "UV", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "UV", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0 + }, + "m_Labels": [], + "m_Channel": 0 +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", @@ -2487,6 +3020,21 @@ "m_Labels": [] } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "cffab61eda8744239e70de29379c6ade", + "m_Id": 6, + "m_DisplayName": "B", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.PropertyNode", @@ -2523,6 +3071,21 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "d39135f347fc40a6b5bfa35ddcc61bde", + "m_Id": 7, + "m_DisplayName": "A", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", @@ -2547,6 +3110,24 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", + "m_ObjectId": "d65f1545e6c64629a81b1ef5f473aadb", + "m_Id": 1, + "m_DisplayName": "Texture", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Texture", + "m_StageCapability": 3, + "m_BareResource": false, + "m_Texture": { + "m_SerializedTexture": "", + "m_Guid": "" + }, + "m_DefaultType": 0 +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", @@ -2631,6 +3212,29 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", + "m_ObjectId": "d8b989079b4b416e96bad77427cfc855", + "m_Id": 2, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [] +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", @@ -2715,6 +3319,66 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SampleTexture2DNode", + "m_ObjectId": "de30e03340034417b8e6ae35c3fe8445", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Sample Texture 2D", + "m_DrawState": { + "m_Expanded": false, + "m_Position": { + "serializedVersion": "2", + "x": -1005.3333129882813, + "y": 497.3333435058594, + "width": 182.0, + "height": 158.66665649414063 + } + }, + "m_Slots": [ + { + "m_Id": "8ab402d6dc9e49e7b456f140264432a3" + }, + { + "m_Id": "588c76b41cf84cb6a672821bc73de249" + }, + { + "m_Id": "6f6041b20d494af4ac63813f1711fb75" + }, + { + "m_Id": "cffab61eda8744239e70de29379c6ade" + }, + { + "m_Id": "d39135f347fc40a6b5bfa35ddcc61bde" + }, + { + "m_Id": "d65f1545e6c64629a81b1ef5f473aadb" + }, + { + "m_Id": "c9ac6a4a126c410098a495cd60816b70" + }, + { + "m_Id": "30ae7f93002e407386dbdc4f76bf9d08" + } + ], + "synonyms": [ + "tex2d" + ], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_TextureType": 0, + "m_NormalMapSpace": 0, + "m_EnableGlobalMipBias": true, + "m_MipSamplingMode": 0 +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", From e3bf41178222145b7365ffcf4b81d44539e603ee Mon Sep 17 00:00:00 2001 From: Masataka SUMI Date: Mon, 3 Mar 2025 20:08:40 +0900 Subject: [PATCH 37/56] revert a part of #2540 --- Assets/VRM10/MToon10/Shaders/vrmc_materials_mtoon.shader | 2 +- Assets/VRM10/MToon10/Shaders/vrmc_materials_mtoon_urp.shader | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Assets/VRM10/MToon10/Shaders/vrmc_materials_mtoon.shader b/Assets/VRM10/MToon10/Shaders/vrmc_materials_mtoon.shader index 82d476f83..2a2f8f632 100644 --- a/Assets/VRM10/MToon10/Shaders/vrmc_materials_mtoon.shader +++ b/Assets/VRM10/MToon10/Shaders/vrmc_materials_mtoon.shader @@ -29,7 +29,7 @@ Shader "VRM10/MToon10" _EmissionMap ("emissiveTexture", 2D) = "white" {} // Unity specified name // Rim Lighting - _MatcapColor ("mtoon.matcapFactor", Color) = (1, 1, 1, 1) + _MatcapColor ("mtoon.matcapFactor", Color) = (0, 0, 0, 1) _MatcapTex ("mtoon.matcapTexture", 2D) = "black" {} _RimColor ("mtoon.parametricRimColorFactor", Color) = (0, 0, 0, 1) _RimFresnelPower ("mtoon.parametricRimFresnelPowerFactor", Range(0, 100)) = 5.0 diff --git a/Assets/VRM10/MToon10/Shaders/vrmc_materials_mtoon_urp.shader b/Assets/VRM10/MToon10/Shaders/vrmc_materials_mtoon_urp.shader index 059953096..6b5be5799 100644 --- a/Assets/VRM10/MToon10/Shaders/vrmc_materials_mtoon_urp.shader +++ b/Assets/VRM10/MToon10/Shaders/vrmc_materials_mtoon_urp.shader @@ -29,7 +29,7 @@ Shader "VRM10/Universal Render Pipeline/MToon10" _EmissionMap ("emissiveTexture", 2D) = "white" {} // Unity specified name // Rim Lighting - _MatcapColor ("mtoon.matcapFactor", Color) = (1, 1, 1, 1) + _MatcapColor ("mtoon.matcapFactor", Color) = (0, 0, 0, 1) _MatcapTex ("mtoon.matcapTexture", 2D) = "black" {} _RimColor ("mtoon.parametricRimColorFactor", Color) = (0, 0, 0, 1) _RimFresnelPower ("mtoon.parametricRimFresnelPowerFactor", Range(0, 100)) = 5.0 From f2fc164af66a2630c9e4769d1cf237d26bfb6115 Mon Sep 17 00:00:00 2001 From: Masataka SUMI Date: Mon, 3 Mar 2025 20:11:24 +0900 Subject: [PATCH 38/56] comment --- Assets/VRM10/MToon10/Shaders/vrmc_materials_mtoon.shader | 2 +- Assets/VRM10/MToon10/Shaders/vrmc_materials_mtoon_urp.shader | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Assets/VRM10/MToon10/Shaders/vrmc_materials_mtoon.shader b/Assets/VRM10/MToon10/Shaders/vrmc_materials_mtoon.shader index 2a2f8f632..469a34000 100644 --- a/Assets/VRM10/MToon10/Shaders/vrmc_materials_mtoon.shader +++ b/Assets/VRM10/MToon10/Shaders/vrmc_materials_mtoon.shader @@ -29,7 +29,7 @@ Shader "VRM10/MToon10" _EmissionMap ("emissiveTexture", 2D) = "white" {} // Unity specified name // Rim Lighting - _MatcapColor ("mtoon.matcapFactor", Color) = (0, 0, 0, 1) + _MatcapColor ("mtoon.matcapFactor", Color) = (0, 0, 0, 1) // 仕様のデフォルト値は白だが、過去の仕様違反 UniVRM 実装アプリケーションのために黒とする。 https://github.com/vrm-c/UniVRM/pull/2594 _MatcapTex ("mtoon.matcapTexture", 2D) = "black" {} _RimColor ("mtoon.parametricRimColorFactor", Color) = (0, 0, 0, 1) _RimFresnelPower ("mtoon.parametricRimFresnelPowerFactor", Range(0, 100)) = 5.0 diff --git a/Assets/VRM10/MToon10/Shaders/vrmc_materials_mtoon_urp.shader b/Assets/VRM10/MToon10/Shaders/vrmc_materials_mtoon_urp.shader index 6b5be5799..881ea9aa0 100644 --- a/Assets/VRM10/MToon10/Shaders/vrmc_materials_mtoon_urp.shader +++ b/Assets/VRM10/MToon10/Shaders/vrmc_materials_mtoon_urp.shader @@ -29,7 +29,7 @@ Shader "VRM10/Universal Render Pipeline/MToon10" _EmissionMap ("emissiveTexture", 2D) = "white" {} // Unity specified name // Rim Lighting - _MatcapColor ("mtoon.matcapFactor", Color) = (0, 0, 0, 1) + _MatcapColor ("mtoon.matcapFactor", Color) = (0, 0, 0, 1) // 仕様のデフォルト値は白だが、過去の仕様違反 UniVRM 実装アプリケーションのために黒とする。 https://github.com/vrm-c/UniVRM/pull/2594 _MatcapTex ("mtoon.matcapTexture", 2D) = "black" {} _RimColor ("mtoon.parametricRimColorFactor", Color) = (0, 0, 0, 1) _RimFresnelPower ("mtoon.parametricRimFresnelPowerFactor", Range(0, 100)) = 5.0 From f692ffbaad53de0fbb0f85e3bda615ca4d9da53f Mon Sep 17 00:00:00 2001 From: ousttrue Date: Mon, 3 Mar 2025 21:53:13 +0900 Subject: [PATCH 39/56] update shadergraph --- .../Import/IMaterialDescriptorGenerator.cs | 3 +- .../Assets/PostProcess Profile.asset | 8 +- .../Assets/TinyMToonAlphaBlend.shadergraph | 275 +++++- .../Assets/TinyMToonOpaque.shadergraph | 275 +++++- .../Assets/TinyMToon_SubGraph.shadersubgraph | 901 ++++++++++++++++-- .../Assets/TinyPbrAlphaBlend.shadergraph | 86 +- .../Assets/TinyPbrOpaque.shadergraph | 2 +- .../Assets/TinyPbr_SubGraph.shadersubgraph | 232 ++++- 8 files changed, 1639 insertions(+), 143 deletions(-) diff --git a/Assets/UniGLTF/Runtime/UniGLTF/IO/MaterialIO/Import/IMaterialDescriptorGenerator.cs b/Assets/UniGLTF/Runtime/UniGLTF/IO/MaterialIO/Import/IMaterialDescriptorGenerator.cs index 6ba99e4d2..f9cf47e42 100644 --- a/Assets/UniGLTF/Runtime/UniGLTF/IO/MaterialIO/Import/IMaterialDescriptorGenerator.cs +++ b/Assets/UniGLTF/Runtime/UniGLTF/IO/MaterialIO/Import/IMaterialDescriptorGenerator.cs @@ -1,8 +1,7 @@ namespace UniGLTF { /// - /// 指定の index の glTFMaterial から Import できる Material の生成情報を生成する。 - /// glTFMaterial と Unity Material は 1:1 対応する。 + /// generate a unity Material from a glTFMaterial. /// public interface IMaterialDescriptorGenerator { diff --git a/Assets/VRM10_Samples/VRM10Viewer/Assets/PostProcess Profile.asset b/Assets/VRM10_Samples/VRM10Viewer/Assets/PostProcess Profile.asset index 8e3c91d76..8311d90c1 100644 --- a/Assets/VRM10_Samples/VRM10Viewer/Assets/PostProcess Profile.asset +++ b/Assets/VRM10_Samples/VRM10Viewer/Assets/PostProcess Profile.asset @@ -31,11 +31,11 @@ MonoBehaviour: m_OverrideState: 0 m_Value: 1 threshold: - m_OverrideState: 0 - m_Value: 0.9 + m_OverrideState: 1 + m_Value: 1 intensity: - m_OverrideState: 0 - m_Value: 0 + m_OverrideState: 1 + m_Value: 1 scatter: m_OverrideState: 0 m_Value: 0.7 diff --git a/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyMToonAlphaBlend.shadergraph b/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyMToonAlphaBlend.shadergraph index f8cf167e4..999910b99 100644 --- a/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyMToonAlphaBlend.shadergraph +++ b/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyMToonAlphaBlend.shadergraph @@ -26,6 +26,12 @@ }, { "m_Id": "0742cd72e9334a03a596f3bf845e52cf" + }, + { + "m_Id": "974a754cac90444da383dd520d43725f" + }, + { + "m_Id": "732138fff95a49b4ac254e0ddf11bc94" } ], "m_Keywords": [], @@ -77,6 +83,12 @@ }, { "m_Id": "4ca5e0de823c4b5f890216a9a1d28ced" + }, + { + "m_Id": "bea6ff10b4da44caa50af89cba32211e" + }, + { + "m_Id": "70539d01b9d6429691a5db24f5e65c7d" } ], "m_GroupDatas": [], @@ -152,6 +164,20 @@ "m_SlotId": 490756011 } }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "70539d01b9d6429691a5db24f5e65c7d" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "0776e82cf5bc4372962108bf3847d1d0" + }, + "m_SlotId": 889685277 + } + }, { "m_OutputSlot": { "m_Node": { @@ -194,6 +220,20 @@ "m_SlotId": 1340748427 } }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "bea6ff10b4da44caa50af89cba32211e" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "0776e82cf5bc4372962108bf3847d1d0" + }, + "m_SlotId": -2125782034 + } + }, { "m_OutputSlot": { "m_Node": { @@ -311,6 +351,24 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", + "m_ObjectId": "0127c13240d544acbd50c531c02d37dc", + "m_Id": 889685277, + "m_DisplayName": "EmissionMap", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "_EmissionMap", + "m_StageCapability": 2, + "m_BareResource": false, + "m_Texture": { + "m_SerializedTexture": "", + "m_Guid": "" + }, + "m_DefaultType": 0 +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", @@ -459,6 +517,12 @@ { "m_Id": "102c2a8fcff94efdad15054c1e4a4392" }, + { + "m_Id": "3d07bb566f064af3859a145f3ba3c45a" + }, + { + "m_Id": "0127c13240d544acbd50c531c02d37dc" + }, { "m_Id": "e6c1845b1ff7420192f4e36917f71689" }, @@ -487,7 +551,9 @@ "d3263a66-e96d-45f6-bbbd-9b3869d2008d", "23fc4c5e-606f-4623-9fc8-c425baf7c621", "fc02a70c-3be1-403c-8f2b-a3d7b2f6bd7a", - "7739fffb-53c8-4ab8-b490-2f422c6bee62" + "7739fffb-53c8-4ab8-b490-2f422c6bee62", + "317ea6aa-c51a-4f75-976a-f291c92ab26e", + "4771a75d-cc06-4d5b-afd1-6afbe93f47c4" ], "m_PropertyIds": [ 1340748427, @@ -498,7 +564,9 @@ 592166105, 1641878292, 287326672, - 490756011 + 490756011, + -2125782034, + 889685277 ], "m_Dropdowns": [], "m_DropdownSelectedEntries": [] @@ -641,6 +709,31 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "3d07bb566f064af3859a145f3ba3c45a", + "m_Id": -2125782034, + "m_DisplayName": "EmissionColor", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "_EmissionColor", + "m_StageCapability": 2, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_Labels": [] +} + { "m_SGVersion": 3, "m_Type": "UnityEditor.ShaderGraph.Internal.ColorShaderProperty", @@ -889,6 +982,72 @@ "m_Labels": [] } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "70539d01b9d6429691a5db24f5e65c7d", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 6.666666507720947, + "y": 402.0000305175781, + "width": 154.0, + "height": 35.999969482421878 + } + }, + "m_Slots": [ + { + "m_Id": "f4e7136123c9483cb7d91305c33ddbd1" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "732138fff95a49b4ac254e0ddf11bc94" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Internal.Texture2DShaderProperty", + "m_ObjectId": "732138fff95a49b4ac254e0ddf11bc94", + "m_Guid": { + "m_GuidSerialized": "370eb310-6a74-497d-99d7-55d5e9f7683e" + }, + "m_Name": "EmissionMap", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "EmissionMap", + "m_DefaultReferenceName": "_EmissionMap", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": { + "m_SerializedTexture": "{\"texture\":{\"fileID\":2800000,\"guid\":\"09e6225be3a2a43489e11a41cb198377\",\"type\":3}}", + "m_Guid": "" + }, + "isMainTexture": false, + "useTilingAndOffset": false, + "m_Modifiable": true, + "m_DefaultType": 0 +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", @@ -970,6 +1129,12 @@ }, { "m_Id": "0742cd72e9334a03a596f3bf845e52cf" + }, + { + "m_Id": "974a754cac90444da383dd520d43725f" + }, + { + "m_Id": "732138fff95a49b4ac254e0ddf11bc94" } ] } @@ -1046,6 +1211,36 @@ "m_Labels": [] } +{ + "m_SGVersion": 3, + "m_Type": "UnityEditor.ShaderGraph.Internal.ColorShaderProperty", + "m_ObjectId": "974a754cac90444da383dd520d43725f", + "m_Guid": { + "m_GuidSerialized": "5952bd85-d232-41b9-a39b-8dfad6219580" + }, + "m_Name": "EmissionColor", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "EmissionColor", + "m_DefaultReferenceName": "_EmissionColor", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": { + "r": 0.0, + "g": 0.0, + "b": 0.0, + "a": 0.0 + }, + "isMainColor": false, + "m_ColorMode": 1 +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", @@ -1234,6 +1429,42 @@ "m_Space": 0 } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "bea6ff10b4da44caa50af89cba32211e", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 8.000003814697266, + "y": 366.0000305175781, + "width": 152.6666717529297, + "height": 36.0 + } + }, + "m_Slots": [ + { + "m_Id": "ec80a33b78a3474cbdfd861f8ed21802" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "974a754cac90444da383dd520d43725f" + } +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.PropertyNode", @@ -1294,7 +1525,7 @@ "r": 1.0, "g": 1.0, "b": 1.0, - "a": 0.0 + "a": 1.0 }, "isMainColor": true, "m_ColorMode": 0 @@ -1528,6 +1759,31 @@ "m_Labels": [] } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "ec80a33b78a3474cbdfd861f8ed21802", + "m_Id": 0, + "m_DisplayName": "EmissionColor", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_Labels": [] +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.PositionMaterialSlot", @@ -1552,6 +1808,19 @@ "m_Space": 0 } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DMaterialSlot", + "m_ObjectId": "f4e7136123c9483cb7d91305c33ddbd1", + "m_Id": 0, + "m_DisplayName": "EmissionMap", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_BareResource": false +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", diff --git a/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyMToonOpaque.shadergraph b/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyMToonOpaque.shadergraph index 18f51158f..7d244214c 100644 --- a/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyMToonOpaque.shadergraph +++ b/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyMToonOpaque.shadergraph @@ -32,6 +32,12 @@ }, { "m_Id": "b1faea9e904b4eab8c5266d6c0565f0d" + }, + { + "m_Id": "708e3009785c4aa69f6e0985da3b277d" + }, + { + "m_Id": "a70c5ed980b14805943aca6a4dac34d0" } ], "m_Keywords": [], @@ -95,6 +101,12 @@ }, { "m_Id": "4ad616c1aab04122abdd5700f5e65735" + }, + { + "m_Id": "fe0e2c9b1312432cbe511bdccc98a1dc" + }, + { + "m_Id": "0167e9468c5d410d961d2b009ad33255" } ], "m_GroupDatas": [], @@ -114,6 +126,20 @@ "m_SlotId": -643094866 } }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "0167e9468c5d410d961d2b009ad33255" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "0776e82cf5bc4372962108bf3847d1d0" + }, + "m_SlotId": -2125782034 + } + }, { "m_OutputSlot": { "m_Node": { @@ -281,6 +307,20 @@ }, "m_SlotId": 1 } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "fe0e2c9b1312432cbe511bdccc98a1dc" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "0776e82cf5bc4372962108bf3847d1d0" + }, + "m_SlotId": 889685277 + } } ], "m_VertexContext": { @@ -374,6 +414,42 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "0167e9468c5d410d961d2b009ad33255", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 8.0, + "y": 366.0, + "width": 152.66668701171876, + "height": 36.0 + } + }, + "m_Slots": [ + { + "m_Id": "d09ad54764c84f3aab56efa384981cea" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "708e3009785c4aa69f6e0985da3b277d" + } +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", @@ -528,6 +604,12 @@ { "m_Id": "4afd8280877340cf8f37960bba00cd70" }, + { + "m_Id": "a6126f44bb5c428fb710bb2cd7d6587f" + }, + { + "m_Id": "a73f6944d5794d408169a6ae86da40ce" + }, { "m_Id": "7207d851d0d54d9dbec558d8350cbcf5" }, @@ -556,7 +638,9 @@ "d3263a66-e96d-45f6-bbbd-9b3869d2008d", "23fc4c5e-606f-4623-9fc8-c425baf7c621", "fc02a70c-3be1-403c-8f2b-a3d7b2f6bd7a", - "7739fffb-53c8-4ab8-b490-2f422c6bee62" + "7739fffb-53c8-4ab8-b490-2f422c6bee62", + "317ea6aa-c51a-4f75-976a-f291c92ab26e", + "4771a75d-cc06-4d5b-afd1-6afbe93f47c4" ], "m_PropertyIds": [ 1340748427, @@ -567,7 +651,9 @@ 592166105, 1641878292, 287326672, - 490756011 + 490756011, + -2125782034, + 889685277 ], "m_Dropdowns": [], "m_DropdownSelectedEntries": [] @@ -1042,6 +1128,36 @@ "m_SerializedDescriptor": "SurfaceDescription.Alpha" } +{ + "m_SGVersion": 3, + "m_Type": "UnityEditor.ShaderGraph.Internal.ColorShaderProperty", + "m_ObjectId": "708e3009785c4aa69f6e0985da3b277d", + "m_Guid": { + "m_GuidSerialized": "9212fba3-cb0b-4fc7-80f7-cba5204379dd" + }, + "m_Name": "EmissionColor", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "EmissionColor", + "m_DefaultReferenceName": "_EmissionColor", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": { + "r": 0.0, + "g": 0.0, + "b": 0.0, + "a": 0.0 + }, + "isMainColor": false, + "m_ColorMode": 1 +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Texture2DMaterialSlot", @@ -1246,6 +1362,12 @@ }, { "m_Id": "b1faea9e904b4eab8c5266d6c0565f0d" + }, + { + "m_Id": "708e3009785c4aa69f6e0985da3b277d" + }, + { + "m_Id": "a70c5ed980b14805943aca6a4dac34d0" } ] } @@ -1452,6 +1574,79 @@ "m_Labels": [] } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "a6126f44bb5c428fb710bb2cd7d6587f", + "m_Id": -2125782034, + "m_DisplayName": "EmissionColor", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "_EmissionColor", + "m_StageCapability": 2, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Internal.Texture2DShaderProperty", + "m_ObjectId": "a70c5ed980b14805943aca6a4dac34d0", + "m_Guid": { + "m_GuidSerialized": "384f5731-3f0b-49cf-9452-a49898a1db5f" + }, + "m_Name": "EmissionMap", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "EmissionMap", + "m_DefaultReferenceName": "_EmissionMap", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": { + "m_SerializedTexture": "{\"texture\":{\"fileID\":2800000,\"guid\":\"09e6225be3a2a43489e11a41cb198377\",\"type\":3}}", + "m_Guid": "" + }, + "isMainTexture": false, + "useTilingAndOffset": false, + "m_Modifiable": true, + "m_DefaultType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", + "m_ObjectId": "a73f6944d5794d408169a6ae86da40ce", + "m_Id": 889685277, + "m_DisplayName": "EmissionMap", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "_EmissionMap", + "m_StageCapability": 2, + "m_BareResource": false, + "m_Texture": { + "m_SerializedTexture": "", + "m_Guid": "" + }, + "m_DefaultType": 0 +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", @@ -1639,7 +1834,7 @@ "r": 1.0, "g": 1.0, "b": 1.0, - "a": 0.0 + "a": 1.0 }, "isMainColor": true, "m_ColorMode": 0 @@ -1703,6 +1898,19 @@ "m_SupportVFX": false } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DMaterialSlot", + "m_ObjectId": "cd0a74ac28974fdead1bf17f9d8a7751", + "m_Id": 0, + "m_DisplayName": "EmissionMap", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_BareResource": false +} + { "m_SGVersion": 2, "m_Type": "UnityEditor.Rendering.Universal.ShaderGraph.UniversalUnlitSubTarget", @@ -1724,6 +1932,31 @@ "m_Labels": [] } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "d09ad54764c84f3aab56efa384981cea", + "m_Id": 0, + "m_DisplayName": "EmissionColor", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_Labels": [] +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", @@ -1979,3 +2212,39 @@ "m_Labels": [] } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "fe0e2c9b1312432cbe511bdccc98a1dc", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 6.6666717529296879, + "y": 402.0, + "width": 154.00001525878907, + "height": 36.0 + } + }, + "m_Slots": [ + { + "m_Id": "cd0a74ac28974fdead1bf17f9d8a7751" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "a70c5ed980b14805943aca6a4dac34d0" + } +} + diff --git a/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyMToon_SubGraph.shadersubgraph b/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyMToon_SubGraph.shadersubgraph index 44d0e1c34..3f3e63b53 100644 --- a/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyMToon_SubGraph.shadersubgraph +++ b/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyMToon_SubGraph.shadersubgraph @@ -26,6 +26,12 @@ }, { "m_Id": "2e2ceb974f5b4c829366c88514f74c46" + }, + { + "m_Id": "21a9aae9b5764a25996c4db9113b01a8" + }, + { + "m_Id": "9283ec1a1dd24b3b905fa64aeb451295" } ], "m_Keywords": [], @@ -116,6 +122,21 @@ }, { "m_Id": "33b1b5fde65e408db84dc8b2041d1f96" + }, + { + "m_Id": "25269285c9b544969a3690ac48194e8f" + }, + { + "m_Id": "528bfcabf30e4aa5b664cebd5172b79a" + }, + { + "m_Id": "c4b56b3a517448c7958db7acb0aca67a" + }, + { + "m_Id": "324d4e7e67db46f19b82f83d5d11bf31" + }, + { + "m_Id": "d50c97dd3c324b959458d512f51d5024" } ], "m_GroupDatas": [], @@ -135,6 +156,20 @@ "m_SlotId": 0 } }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "25269285c9b544969a3690ac48194e8f" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "d50c97dd3c324b959458d512f51d5024" + }, + "m_SlotId": 1 + } + }, { "m_OutputSlot": { "m_Node": { @@ -149,6 +184,20 @@ "m_SlotId": 1 } }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "324d4e7e67db46f19b82f83d5d11bf31" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "25269285c9b544969a3690ac48194e8f" + }, + "m_SlotId": 0 + } + }, { "m_OutputSlot": { "m_Node": { @@ -233,6 +282,20 @@ "m_SlotId": 0 } }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "528bfcabf30e4aa5b664cebd5172b79a" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "324d4e7e67db46f19b82f83d5d11bf31" + }, + "m_SlotId": 1 + } + }, { "m_OutputSlot": { "m_Node": { @@ -382,9 +445,9 @@ }, "m_InputSlot": { "m_Node": { - "m_Id": "e14d05fc892148ad9baf9d7558e2cb5a" + "m_Id": "d50c97dd3c324b959458d512f51d5024" }, - "m_SlotId": 1 + "m_SlotId": 0 } }, { @@ -401,6 +464,20 @@ "m_SlotId": 1 } }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "c4b56b3a517448c7958db7acb0aca67a" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "25269285c9b544969a3690ac48194e8f" + }, + "m_SlotId": 1 + } + }, { "m_OutputSlot": { "m_Node": { @@ -485,6 +562,20 @@ "m_SlotId": 0 } }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "d50c97dd3c324b959458d512f51d5024" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "e14d05fc892148ad9baf9d7558e2cb5a" + }, + "m_SlotId": 1 + } + }, { "m_OutputSlot": { "m_Node": { @@ -587,6 +678,24 @@ "m_ActiveTargets": [] } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", + "m_ObjectId": "06adf733b79c4db1a4f520425ec78c8c", + "m_Id": 1, + "m_DisplayName": "Texture", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Texture", + "m_StageCapability": 3, + "m_BareResource": false, + "m_Texture": { + "m_SerializedTexture": "", + "m_Guid": "" + }, + "m_DefaultType": 0 +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", @@ -743,6 +852,45 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "1b9eb67026d94c05b291aa278dcf6e79", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "1c46ed8b238344cbaf1f06214775f449", + "m_Id": 5, + "m_DisplayName": "G", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "G", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", @@ -781,6 +929,30 @@ "m_Labels": [] } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "200a2d12772a4be99acb3b79635016dd", + "m_Id": 0, + "m_DisplayName": "A", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", @@ -817,6 +989,36 @@ "m_BareResource": false } +{ + "m_SGVersion": 3, + "m_Type": "UnityEditor.ShaderGraph.Internal.ColorShaderProperty", + "m_ObjectId": "21a9aae9b5764a25996c4db9113b01a8", + "m_Guid": { + "m_GuidSerialized": "317ea6aa-c51a-4f75-976a-f291c92ab26e" + }, + "m_Name": "EmissionColor", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "EmissionColor", + "m_DefaultReferenceName": "_EmissionColor", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": { + "r": 0.0, + "g": 0.0, + "b": 0.0, + "a": 0.0 + }, + "isMainColor": false, + "m_ColorMode": 0 +} + { "m_SGVersion": 1, "m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty", @@ -868,6 +1070,49 @@ "m_Labels": [] } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.MultiplyNode", + "m_ObjectId": "25269285c9b544969a3690ac48194e8f", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Multiply", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 744.6665649414063, + "y": 128.66665649414063, + "width": 209.33331298828126, + "height": 304.0 + } + }, + "m_Slots": [ + { + "m_Id": "e4c63d5bd4a74dd99b49586c54e51114" + }, + { + "m_Id": "34fac29a29ce4637b03b69d8b2b9cd80" + }, + { + "m_Id": "a9812c2c078e43f0995ff7d99c9c9af4" + } + ], + "synonyms": [ + "multiplication", + "times", + "x" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.SamplerStateMaterialSlot", @@ -896,6 +1141,21 @@ "m_Labels": [] } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "269c31d2473a4316ae01db3ad32ecf77", + "m_Id": 4, + "m_DisplayName": "R", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "R", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", @@ -1136,6 +1396,66 @@ "m_BareResource": false } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SampleTexture2DNode", + "m_ObjectId": "324d4e7e67db46f19b82f83d5d11bf31", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Sample Texture 2D", + "m_DrawState": { + "m_Expanded": false, + "m_Position": { + "serializedVersion": "2", + "x": 531.9999389648438, + "y": 128.66665649414063, + "width": 182.0001220703125, + "height": 157.33328247070313 + } + }, + "m_Slots": [ + { + "m_Id": "3a5f7dd7df4e4f2283ae645991a95fe6" + }, + { + "m_Id": "269c31d2473a4316ae01db3ad32ecf77" + }, + { + "m_Id": "1c46ed8b238344cbaf1f06214775f449" + }, + { + "m_Id": "a72f683783f3403686e3df672e47744b" + }, + { + "m_Id": "d6846e47db7c4e5a9e01e55b5aa86b44" + }, + { + "m_Id": "06adf733b79c4db1a4f520425ec78c8c" + }, + { + "m_Id": "7ed1d6f1cff142c9ba18a7d237791baa" + }, + { + "m_Id": "fc668553d3f145bf9dcca58208602109" + } + ], + "synonyms": [ + "tex2d" + ], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_TextureType": 0, + "m_NormalMapSpace": 0, + "m_EnableGlobalMipBias": true, + "m_MipSamplingMode": 0 +} + { "m_SGVersion": 3, "m_Type": "UnityEditor.ShaderGraph.Internal.ColorShaderProperty", @@ -1202,6 +1522,54 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "34fac29a29ce4637b03b69d8b2b9cd80", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": { + "e00": 2.0, + "e01": 2.0, + "e02": 2.0, + "e03": 2.0, + "e10": 2.0, + "e11": 2.0, + "e12": 2.0, + "e13": 2.0, + "e20": 2.0, + "e21": 2.0, + "e22": 2.0, + "e23": 2.0, + "e30": 2.0, + "e31": 2.0, + "e32": 2.0, + "e33": 2.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", @@ -1289,6 +1657,31 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "3a5f7dd7df4e4f2283ae645991a95fe6", + "m_Id": 0, + "m_DisplayName": "RGBA", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "RGBA", + "m_StageCapability": 2, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_Labels": [] +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.PropertyNode", @@ -1301,10 +1694,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": -250.0, - "y": -129.3333740234375, - "width": 148.6666259765625, - "height": 35.99998474121094 + "x": -398.6666564941406, + "y": -162.00003051757813, + "width": 148.6667022705078, + "height": 36.000022888183597 } }, "m_Slots": [ @@ -1568,10 +1961,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": 29.33331871032715, - "y": -714.666748046875, - "width": 129.33334350585938, - "height": 126.66668701171875 + "x": -119.33338165283203, + "y": -747.3333740234375, + "width": 129.3333740234375, + "height": 126.6666259765625 } }, "m_Slots": [ @@ -1637,10 +2030,52 @@ }, { "m_Id": "80d7033fb26d4150afc7e381325e548b" + }, + { + "m_Id": "21a9aae9b5764a25996c4db9113b01a8" + }, + { + "m_Id": "9283ec1a1dd24b3b905fa64aeb451295" } ] } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "528bfcabf30e4aa5b664cebd5172b79a", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 338.66668701171877, + "y": 168.66664123535157, + "width": 153.99996948242188, + "height": 36.00001525878906 + } + }, + "m_Slots": [ + { + "m_Id": "9bf595e3b8a54631af32ea69b6284f78" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "9283ec1a1dd24b3b905fa64aeb451295" + } +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.AddNode", @@ -1795,6 +2230,30 @@ "m_Labels": [] } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "5d93dfc32bb54c279421d10a134c5e8e", + "m_Id": 2, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + { "m_SGVersion": 3, "m_Type": "UnityEditor.ShaderGraph.Internal.ColorShaderProperty", @@ -1963,10 +2422,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": -42.66670608520508, - "y": -420.66668701171877, - "width": 184.66665649414063, - "height": 254.6667022705078 + "x": -191.33331298828126, + "y": -453.3333740234375, + "width": 184.66661071777345, + "height": 254.66665649414063 } }, "m_Slots": [ @@ -2069,6 +2528,28 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.UVMaterialSlot", + "m_ObjectId": "7ed1d6f1cff142c9ba18a7d237791baa", + "m_Id": 2, + "m_DisplayName": "UV", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "UV", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0 + }, + "m_Labels": [], + "m_Channel": 0 +} + { "m_SGVersion": 1, "m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty", @@ -2109,10 +2590,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": 180.0, - "y": -660.0, - "width": 209.33328247070313, - "height": 303.99993896484377 + "x": 110.66669464111328, + "y": -692.6666870117188, + "width": 209.33331298828126, + "height": 303.9999694824219 } }, "m_Slots": [ @@ -2276,6 +2757,36 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Internal.Texture2DShaderProperty", + "m_ObjectId": "9283ec1a1dd24b3b905fa64aeb451295", + "m_Guid": { + "m_GuidSerialized": "4771a75d-cc06-4d5b-afd1-6afbe93f47c4" + }, + "m_Name": "EmissionMap", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "EmissionMap", + "m_DefaultReferenceName": "_EmissionMap", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": { + "m_SerializedTexture": "", + "m_Guid": "" + }, + "isMainTexture": false, + "useTilingAndOffset": false, + "m_Modifiable": true, + "m_DefaultType": 0 +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Texture2DMaterialSlot", @@ -2328,6 +2839,19 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DMaterialSlot", + "m_ObjectId": "9bf595e3b8a54631af32ea69b6284f78", + "m_Id": 0, + "m_DisplayName": "EmissionMap", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_BareResource": false +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", @@ -2416,6 +2940,31 @@ "m_FunctionBody": "Out = saturate( ( t - a ) / ( b - a ) );" } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "9f3deceed8cf4669ba2dafa7ab4c2b76", + "m_Id": 0, + "m_DisplayName": "EmissionColor", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_Labels": [] +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.SampleTexture2DNode", @@ -2428,10 +2977,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": -26.000001907348634, - "y": -93.33338928222656, - "width": 184.66665649414063, - "height": 254.66668701171876 + "x": -174.6666259765625, + "y": -126.00000762939453, + "width": 184.66661071777345, + "height": 254.66665649414063 } }, "m_Slots": [ @@ -2476,6 +3025,21 @@ "m_MipSamplingMode": 0 } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "a72f683783f3403686e3df672e47744b", + "m_Id": 6, + "m_DisplayName": "B", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Texture2DMaterialSlot", @@ -2525,6 +3089,54 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "a9812c2c078e43f0995ff7d99c9c9af4", + "m_Id": 2, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "e00": 0.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 0.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 0.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 0.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", @@ -2599,10 +3211,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": 443.3333435058594, - "y": -192.66668701171876, - "width": 209.33328247070313, - "height": 327.99993896484377 + "x": 294.6666564941406, + "y": -225.33340454101563, + "width": 209.33331298828126, + "height": 328.0000305175781 } }, "m_Slots": [ @@ -2735,10 +3347,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": 180.0, - "y": -168.6667022705078, - "width": 209.33328247070313, - "height": 303.99993896484377 + "x": 31.333293914794923, + "y": -201.33334350585938, + "width": 209.33331298828126, + "height": 303.9999694824219 } }, "m_Slots": [ @@ -2814,6 +3426,42 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "c4b56b3a517448c7958db7acb0aca67a", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 340.0, + "y": 204.66665649414063, + "width": 152.66665649414063, + "height": 36.000030517578128 + } + }, + "m_Slots": [ + { + "m_Id": "9f3deceed8cf4669ba2dafa7ab4c2b76" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "21a9aae9b5764a25996c4db9113b01a8" + } +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", @@ -2970,10 +3618,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": -125.33336639404297, - "y": -735.3333740234375, - "width": 120.66670989990235, - "height": 150.66668701171876 + "x": -274.0, + "y": -768.0, + "width": 120.66668701171875, + "height": 150.6666259765625 } }, "m_Slots": [ @@ -3047,10 +3695,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": -289.3334045410156, - "y": -696.0000610351563, - "width": 132.00006103515626, - "height": 36.00006103515625 + "x": -437.9999694824219, + "y": -728.6666870117188, + "width": 132.0, + "height": 36.0 } }, "m_Slots": [ @@ -3110,6 +3758,49 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.AddNode", + "m_ObjectId": "d50c97dd3c324b959458d512f51d5024", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Add", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 531.9999389648438, + "y": -225.33340454101563, + "width": 131.3333740234375, + "height": 120.00003814697266 + } + }, + "m_Slots": [ + { + "m_Id": "200a2d12772a4be99acb3b79635016dd" + }, + { + "m_Id": "1b9eb67026d94c05b291aa278dcf6e79" + }, + { + "m_Id": "5d93dfc32bb54c279421d10a134c5e8e" + } + ], + "synonyms": [ + "addition", + "sum", + "plus" + ], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", @@ -3128,6 +3819,21 @@ "m_DefaultType": 0 } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "d6846e47db7c4e5a9e01e55b5aa86b44", + "m_Id": 7, + "m_DisplayName": "A", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", @@ -3164,10 +3870,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": -250.0, - "y": -81.3333969116211, - "width": 177.9999542236328, - "height": 35.99997329711914 + "x": -398.6666564941406, + "y": -114.00003814697266, + "width": 178.00001525878907, + "height": 36.00001525878906 } }, "m_Slots": [ @@ -3235,29 +3941,6 @@ "m_Labels": [] } -{ - "m_SGVersion": 0, - "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", - "m_ObjectId": "da1f526e56c749649fdde4460e6ab70e", - "m_Id": 3, - "m_DisplayName": "Normal", - "m_SlotType": 0, - "m_Hidden": false, - "m_ShaderOutputName": "Normal", - "m_StageCapability": 3, - "m_Value": { - "x": 0.0, - "y": 0.0, - "z": 0.0 - }, - "m_DefaultValue": { - "x": 0.0, - "y": 0.0, - "z": 0.0 - }, - "m_Labels": [] -} - { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.SamplerStateMaterialSlot", @@ -3478,21 +4161,18 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": 724.0000610351563, - "y": -192.66668701171876, - "width": 110.0, - "height": 126.66663360595703 + "x": 739.3333129882813, + "y": -225.33340454101563, + "width": 109.99993896484375, + "height": 126.66674041748047 } }, "m_Slots": [ - { - "m_Id": "5b947c35e0f3453e887c550f2ec5bfdf" - }, { "m_Id": "eb34d529e298407aa3606f9cbcdc7819" }, { - "m_Id": "da1f526e56c749649fdde4460e6ab70e" + "m_Id": "5b947c35e0f3453e887c550f2ec5bfdf" } ], "synonyms": [], @@ -3506,6 +4186,54 @@ "IsFirstSlotValid": true } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "e4c63d5bd4a74dd99b49586c54e51114", + "m_Id": 0, + "m_DisplayName": "A", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": { + "e00": 0.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 0.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 0.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 0.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Internal.Texture2DShaderProperty", @@ -3622,9 +4350,9 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": -290.66668701171877, - "y": -392.00006103515627, - "width": 133.33334350585938, + "x": -439.3333435058594, + "y": -424.6667175292969, + "width": 133.3333740234375, "height": 36.0 } }, @@ -3673,10 +4401,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": 259.33331298828127, - "y": -342.6666564941406, - "width": 127.33328247070313, - "height": 119.99992370605469 + "x": 110.66669464111328, + "y": -375.33331298828127, + "width": 127.3332748413086, + "height": 119.99993896484375 } }, "m_Slots": [ @@ -3758,3 +4486,16 @@ "m_Labels": [] } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SamplerStateMaterialSlot", + "m_ObjectId": "fc668553d3f145bf9dcca58208602109", + "m_Id": 3, + "m_DisplayName": "Sampler", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Sampler", + "m_StageCapability": 3, + "m_BareResource": false +} + diff --git a/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyPbrAlphaBlend.shadergraph b/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyPbrAlphaBlend.shadergraph index f25a42259..06bf1c361 100644 --- a/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyPbrAlphaBlend.shadergraph +++ b/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyPbrAlphaBlend.shadergraph @@ -502,10 +502,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": -780.0000610351563, - "y": 222.66671752929688, - "width": 132.00006103515626, - "height": 36.000030517578128 + "x": -610.0, + "y": 180.0, + "width": 132.00003051757813, + "height": 36.0 } }, "m_Slots": [ @@ -726,9 +726,9 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": -780.0, - "y": 330.666748046875, - "width": 159.33331298828126, + "x": -637.3333129882813, + "y": 288.0, + "width": 159.33334350585938, "height": 36.0 } }, @@ -901,10 +901,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": -780.0000610351563, - "y": 258.666748046875, - "width": 133.33331298828126, - "height": 35.999908447265628 + "x": -610.0, + "y": 216.0, + "width": 133.33334350585938, + "height": 35.99998474121094 } }, "m_Slots": [ @@ -981,10 +981,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": -780.0, - "y": 294.6667175292969, - "width": 172.66668701171876, - "height": 36.000030517578128 + "x": -650.6666870117188, + "y": 251.99998474121095, + "width": 172.66671752929688, + "height": 36.00001525878906 } }, "m_Slots": [ @@ -1302,9 +1302,9 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": -780.0, - "y": 474.6666564941406, - "width": 138.0, + "x": -616.0, + "y": 432.0, + "width": 138.00003051757813, "height": 36.0 } }, @@ -1495,10 +1495,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": -779.3333129882813, - "y": 402.66668701171877, - "width": 117.33331298828125, - "height": 36.0 + "x": -595.3333129882813, + "y": 360.0000305175781, + "width": 117.33334350585938, + "height": 35.999969482421878 } }, "m_Slots": [ @@ -1692,10 +1692,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": -780.0, - "y": 546.6666259765625, - "width": 152.66668701171876, - "height": 36.0 + "x": -630.6666870117188, + "y": 504.0000305175781, + "width": 152.66671752929688, + "height": 35.999969482421878 } }, "m_Slots": [ @@ -1783,10 +1783,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": -779.3333129882813, - "y": 366.66668701171877, - "width": 134.0, - "height": 36.0 + "x": -612.0, + "y": 324.0, + "width": 134.00003051757813, + "height": 36.000030517578128 } }, "m_Slots": [ @@ -1864,10 +1864,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": -779.3333129882813, - "y": 438.66668701171877, + "x": -698.0, + "y": 396.0, "width": 206.0, - "height": 35.999969482421878 + "height": 36.0 } }, "m_Slots": [ @@ -1900,10 +1900,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": -779.3333129882813, - "y": 510.6666564941406, - "width": 134.6666259765625, - "height": 35.999969482421878 + "x": -612.6666870117188, + "y": 468.0, + "width": 134.66671752929688, + "height": 36.000030517578128 } }, "m_Slots": [ @@ -1931,7 +1931,7 @@ "m_Group": { "m_Id": "" }, - "m_Name": "TinyPbr", + "m_Name": "TinyPbr_SubGraph", "m_DrawState": { "m_Expanded": true, "m_Position": { @@ -2151,7 +2151,7 @@ "r": 1.0, "g": 1.0, "b": 1.0, - "a": 0.0 + "a": 1.0 }, "isMainColor": false, "m_ColorMode": 0 @@ -2286,10 +2286,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": -779.3333129882813, - "y": 582.6666259765625, - "width": 154.0, - "height": 35.99993896484375 + "x": -630.6666870117188, + "y": 540.0, + "width": 154.00003051757813, + "height": 36.0 } }, "m_Slots": [ diff --git a/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyPbrOpaque.shadergraph b/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyPbrOpaque.shadergraph index a4bf22ab9..f38f08b81 100644 --- a/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyPbrOpaque.shadergraph +++ b/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyPbrOpaque.shadergraph @@ -2451,7 +2451,7 @@ "r": 1.0, "g": 1.0, "b": 1.0, - "a": 0.0 + "a": 1.0 }, "isMainColor": false, "m_ColorMode": 0 diff --git a/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyPbr_SubGraph.shadersubgraph b/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyPbr_SubGraph.shadersubgraph index 06a421e45..38ffca101 100644 --- a/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyPbr_SubGraph.shadersubgraph +++ b/Assets/VRM10_Samples/VRM10Viewer/Assets/TinyPbr_SubGraph.shadersubgraph @@ -125,6 +125,9 @@ }, { "m_Id": "3fba216a7770483ebd8ffef83f8d0793" + }, + { + "m_Id": "de30d6b26ca94bb29eb937897d6e59f0" } ], "m_GroupDatas": [], @@ -326,6 +329,20 @@ "m_SlotId": 3 } }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "5eef577c98e34954bf04a2dd7c871f75" + }, + "m_SlotId": 4 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "de30d6b26ca94bb29eb937897d6e59f0" + }, + "m_SlotId": 0 + } + }, { "m_OutputSlot": { "m_Node": { @@ -475,9 +492,9 @@ }, "m_InputSlot": { "m_Node": { - "m_Id": "95965af48a8849339faf1a291c791faf" + "m_Id": "de30d6b26ca94bb29eb937897d6e59f0" }, - "m_SlotId": 2 + "m_SlotId": 1 } }, { @@ -508,6 +525,20 @@ "m_SlotId": 3 } }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "de30d6b26ca94bb29eb937897d6e59f0" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "95965af48a8849339faf1a291c791faf" + }, + "m_SlotId": 2 + } + }, { "m_OutputSlot": { "m_Node": { @@ -1701,6 +1732,54 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "435429e6f47e4728b418862d9fb72ba3", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": { + "e00": 2.0, + "e01": 2.0, + "e02": 2.0, + "e03": 2.0, + "e10": 2.0, + "e11": 2.0, + "e12": 2.0, + "e13": 2.0, + "e20": 2.0, + "e21": 2.0, + "e22": 2.0, + "e23": 2.0, + "e30": 2.0, + "e31": 2.0, + "e32": 2.0, + "e33": 2.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", @@ -1934,7 +2013,7 @@ }, "m_Name": "Sample Texture 2D", "m_DrawState": { - "m_Expanded": true, + "m_Expanded": false, "m_Position": { "serializedVersion": "2", "x": -166.0, @@ -2287,6 +2366,54 @@ "m_BareResource": false } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "6c552ae7139a472abc1dd448779f258c", + "m_Id": 2, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "e00": 0.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 0.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 0.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 0.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Internal.Texture2DShaderProperty", @@ -3416,6 +3543,54 @@ "m_DefaultType": 0 } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "b6816faafcfa4ebea46328c930b2be6c", + "m_Id": 0, + "m_DisplayName": "A", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": { + "e00": 0.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 0.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 0.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 0.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", @@ -3667,6 +3842,49 @@ } } +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.MultiplyNode", + "m_ObjectId": "de30d6b26ca94bb29eb937897d6e59f0", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Multiply", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 254.0, + "y": -192.66661071777345, + "width": 127.3333740234375, + "height": 119.99995422363281 + } + }, + "m_Slots": [ + { + "m_Id": "b6816faafcfa4ebea46328c930b2be6c" + }, + { + "m_Id": "435429e6f47e4728b418862d9fb72ba3" + }, + { + "m_Id": "6c552ae7139a472abc1dd448779f258c" + } + ], + "synonyms": [ + "multiplication", + "times", + "x" + ], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", @@ -3741,10 +3959,10 @@ "m_Expanded": true, "m_Position": { "serializedVersion": "2", - "x": 253.9999237060547, - "y": -385.9999694824219, - "width": 209.33335876464845, - "height": 303.9999694824219 + "x": 254.0, + "y": -509.3332214355469, + "width": 209.33334350585938, + "height": 303.99993896484377 } }, "m_Slots": [ From 5d16112bf42517f4d7421dbd4e301f584d4807d0 Mon Sep 17 00:00:00 2001 From: ousttrue Date: Tue, 4 Mar 2025 13:35:25 +0900 Subject: [PATCH 40/56] =?UTF-8?q?=E3=82=B3=E3=83=A1=E3=83=B3=E3=83=88?= =?UTF-8?q?=E5=BE=A9=E6=B4=BB=E3=80=82=E8=BF=BD=E5=8A=A0=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Import/IMaterialDescriptorGenerator.cs | 12 +++++++-- .../MaterialIO/Import/MaterialDescriptor.cs | 26 +++++++++++++++++++ 2 files changed, 36 insertions(+), 2 deletions(-) diff --git a/Assets/UniGLTF/Runtime/UniGLTF/IO/MaterialIO/Import/IMaterialDescriptorGenerator.cs b/Assets/UniGLTF/Runtime/UniGLTF/IO/MaterialIO/Import/IMaterialDescriptorGenerator.cs index f9cf47e42..5f6afcc46 100644 --- a/Assets/UniGLTF/Runtime/UniGLTF/IO/MaterialIO/Import/IMaterialDescriptorGenerator.cs +++ b/Assets/UniGLTF/Runtime/UniGLTF/IO/MaterialIO/Import/IMaterialDescriptorGenerator.cs @@ -1,17 +1,25 @@ namespace UniGLTF { /// - /// generate a unity Material from a glTFMaterial. + /// 指定の index の glTFMaterial から Import できる Material の生成情報を生成する。 + /// glTFMaterial と Unity Material は 1:1 対応する。 + /// + /// IMaterialDescriptorGenerator の使われ方は MaterialFactory.LoadAsync を参照 /// public interface IMaterialDescriptorGenerator { /// /// Generate the MaterialDescriptor generated from the index i. + /// + /// glTFMaterial src = data.GLTF.materials[i]; + /// return new MaterialDescriptor(); + /// /// MaterialDescriptor Get(GltfData data, int i); /// - /// Generate the MaterialDescriptor for the non-specified glTF material. + /// Generate the fallback MaterialDescriptor for the non-specified glTF material. + /// /// MaterialDescriptor GetGltfDefault(string materialName = null); } diff --git a/Assets/UniGLTF/Runtime/UniGLTF/IO/MaterialIO/Import/MaterialDescriptor.cs b/Assets/UniGLTF/Runtime/UniGLTF/IO/MaterialIO/Import/MaterialDescriptor.cs index f33d6a37a..f91c13fdb 100644 --- a/Assets/UniGLTF/Runtime/UniGLTF/IO/MaterialIO/Import/MaterialDescriptor.cs +++ b/Assets/UniGLTF/Runtime/UniGLTF/IO/MaterialIO/Import/MaterialDescriptor.cs @@ -5,18 +5,44 @@ using UnityEngine; namespace UniGLTF { + /// + /// Material information generated by IMaterialDescriptorGenerator + /// In recent versions, it is easy to manipulate Materials directly using Actions. + /// + /// Actions の使用例は UniGLTF.UrpGltfMaterialDescriptorGenerator を参照 + /// public sealed class MaterialDescriptor { public delegate Task MaterialGenerateAsyncFunc(Material m, GetTextureAsyncFunc getTexture, IAwaitCaller awaitCaller); + /// + /// + /// material.name = matDesc.SubAssetKey.Name; + /// + /// public readonly string Name; + + /// + /// + /// material = new Material(matDesc.Shader); + /// public readonly Shader Shader; + public readonly int? RenderQueue; public readonly IReadOnlyDictionary TextureSlots; public readonly IReadOnlyDictionary FloatValues; public readonly IReadOnlyDictionary Colors; public readonly IReadOnlyDictionary Vectors; + + /// + /// Process and construct the argument Material + /// + /// material.SetTexture(prop, texture); + /// material.SetColor(prop, color); + /// + /// public readonly IReadOnlyList> Actions; + public readonly IReadOnlyList AsyncActions; public SubAssetKey SubAssetKey => new SubAssetKey(SubAssetKey.MaterialType, Name); From 09eb24e76e5d30f29b254125c31e26b70ae7fb84 Mon Sep 17 00:00:00 2001 From: tsgcpp <19503967+tsgcpp@users.noreply.github.com> Date: Tue, 4 Mar 2025 14:20:27 +0900 Subject: [PATCH 41/56] Fix to multiply _EmissionColor by emissiveStrength in MToon10 --- .../Materials/BuiltInVrm10MToonMaterialImporter.cs | 13 ++++++++----- .../Materials/UrpVrm10MToonMaterialImporter.cs | 2 +- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/Assets/VRM10/Runtime/IO/Material/BuiltInRP/Import/Materials/BuiltInVrm10MToonMaterialImporter.cs b/Assets/VRM10/Runtime/IO/Material/BuiltInRP/Import/Materials/BuiltInVrm10MToonMaterialImporter.cs index d74221bdf..6a88ea029 100644 --- a/Assets/VRM10/Runtime/IO/Material/BuiltInRP/Import/Materials/BuiltInVrm10MToonMaterialImporter.cs +++ b/Assets/VRM10/Runtime/IO/Material/BuiltInRP/Import/Materials/BuiltInVrm10MToonMaterialImporter.cs @@ -36,7 +36,7 @@ namespace UniVRM10 null, Vrm10MToonTextureImporter.EnumerateAllTextures(data, m, mtoon).ToDictionary(tuple => tuple.key, tuple => tuple.Item2.Item2), TryGetAllFloats(m, mtoon).ToDictionary(tuple => tuple.key, tuple => tuple.value), - TryGetAllColors(m, mtoon).ToDictionary(tuple => tuple.key, tuple => tuple.value), + TryGetAllColors(data, m, mtoon).ToDictionary(tuple => tuple.key, tuple => tuple.value), TryGetAllFloatArrays(m, mtoon).ToDictionary(tuple => tuple.key, tuple => tuple.value), new Action[] { @@ -50,7 +50,7 @@ namespace UniVRM10 return true; } - public static IEnumerable<(string key, Color value)> TryGetAllColors(glTFMaterial material, VRMC_materials_mtoon mToon) + public static IEnumerable<(string key, Color value)> TryGetAllColors(GltfData data, glTFMaterial material, VRMC_materials_mtoon mToon) { const ColorSpace gltfColorSpace = ColorSpace.Linear; @@ -72,10 +72,13 @@ namespace UniVRM10 // Emission // Emissive factor should be stored in Linear space - var emissionColor = material?.emissiveFactor?.ToColor3(gltfColorSpace, ColorSpace.Linear); - if (emissionColor.HasValue) + if (material != null) { - yield return (MToon10Prop.EmissiveFactor.ToUnityShaderLabName(), emissionColor.Value); + var emissionColor = GltfMaterialImportUtils.ImportLinearEmissiveFactor(data, material); + if (emissionColor.HasValue) + { + yield return (MToon10Prop.EmissiveFactor.ToUnityShaderLabName(), emissionColor.Value); + } } // Matcap diff --git a/Assets/VRM10/Runtime/IO/Material/URP/Import/Materials/UrpVrm10MToonMaterialImporter.cs b/Assets/VRM10/Runtime/IO/Material/URP/Import/Materials/UrpVrm10MToonMaterialImporter.cs index d55eb9588..515f2fb77 100644 --- a/Assets/VRM10/Runtime/IO/Material/URP/Import/Materials/UrpVrm10MToonMaterialImporter.cs +++ b/Assets/VRM10/Runtime/IO/Material/URP/Import/Materials/UrpVrm10MToonMaterialImporter.cs @@ -31,7 +31,7 @@ namespace UniVRM10 null, Vrm10MToonTextureImporter.EnumerateAllTextures(data, m, mtoon).ToDictionary(tuple => tuple.key, tuple => tuple.Item2.Item2), BuiltInVrm10MToonMaterialImporter.TryGetAllFloats(m, mtoon).ToDictionary(tuple => tuple.key, tuple => tuple.value), - BuiltInVrm10MToonMaterialImporter.TryGetAllColors(m, mtoon).ToDictionary(tuple => tuple.key, tuple => tuple.value), + BuiltInVrm10MToonMaterialImporter.TryGetAllColors(data, m, mtoon).ToDictionary(tuple => tuple.key, tuple => tuple.value), BuiltInVrm10MToonMaterialImporter.TryGetAllFloatArrays(m, mtoon).ToDictionary(tuple => tuple.key, tuple => tuple.value), new Action[] { From 4f45d51e8fe335ca42f76b621082bcdafa41a00b Mon Sep 17 00:00:00 2001 From: ousttrue Date: Tue, 4 Mar 2025 22:28:47 +0900 Subject: [PATCH 42/56] default TinyPbr off --- .../VRM10Viewer/MaterialImporter.meta | 8 + .../IMaterialImporter.cs | 0 .../IMaterialImporter.cs.meta | 0 .../OrderedMaterialDescriptorGenerator.cs | 88 +++++ ...OrderedMaterialDescriptorGenerator.cs.meta | 0 .../TinyMToonMaterialContext.cs | 0 .../TinyMToonMaterialContext.cs.meta | 0 .../TinyMToonMaterialImporter.cs | 0 .../TinyMToonMaterialImporter.cs.meta | 0 .../TinyPbrMaterialContext.cs | 0 .../TinyPbrMaterialContext.cs.meta | 0 .../TinyPbrMaterialImporter.cs | 0 .../TinyPbrMaterialImporter.cs.meta | 0 .../MaterialImporter/UnlitMaterialImporter.cs | 12 + .../UnlitMaterialImporter.cs.meta | 11 + .../UrpMToonMaterialImporter.cs | 19 + .../UrpMToonMaterialImporter.cs.meta | 11 + .../UrpPbrMaterialImporter.cs | 18 + .../UrpPbrMaterialImporter.cs.meta | 11 + .../OrderedMaterialDescriptorGenerator.cs | 41 --- .../VRM10Viewer/VRM10Viewer.unity | 328 +++++++++++++++++- .../VRM10Viewer/VRM10ViewerUI.cs | 41 ++- 22 files changed, 523 insertions(+), 65 deletions(-) create mode 100644 Assets/VRM10_Samples/VRM10Viewer/MaterialImporter.meta rename Assets/VRM10_Samples/VRM10Viewer/{ => MaterialImporter}/IMaterialImporter.cs (100%) rename Assets/VRM10_Samples/VRM10Viewer/{ => MaterialImporter}/IMaterialImporter.cs.meta (100%) create mode 100644 Assets/VRM10_Samples/VRM10Viewer/MaterialImporter/OrderedMaterialDescriptorGenerator.cs rename Assets/VRM10_Samples/VRM10Viewer/{ => MaterialImporter}/OrderedMaterialDescriptorGenerator.cs.meta (100%) rename Assets/VRM10_Samples/VRM10Viewer/{ => MaterialImporter}/TinyMToonMaterialContext.cs (100%) rename Assets/VRM10_Samples/VRM10Viewer/{ => MaterialImporter}/TinyMToonMaterialContext.cs.meta (100%) rename Assets/VRM10_Samples/VRM10Viewer/{ => MaterialImporter}/TinyMToonMaterialImporter.cs (100%) rename Assets/VRM10_Samples/VRM10Viewer/{ => MaterialImporter}/TinyMToonMaterialImporter.cs.meta (100%) rename Assets/VRM10_Samples/VRM10Viewer/{ => MaterialImporter}/TinyPbrMaterialContext.cs (100%) rename Assets/VRM10_Samples/VRM10Viewer/{ => MaterialImporter}/TinyPbrMaterialContext.cs.meta (100%) rename Assets/VRM10_Samples/VRM10Viewer/{ => MaterialImporter}/TinyPbrMaterialImporter.cs (100%) rename Assets/VRM10_Samples/VRM10Viewer/{ => MaterialImporter}/TinyPbrMaterialImporter.cs.meta (100%) create mode 100644 Assets/VRM10_Samples/VRM10Viewer/MaterialImporter/UnlitMaterialImporter.cs create mode 100644 Assets/VRM10_Samples/VRM10Viewer/MaterialImporter/UnlitMaterialImporter.cs.meta create mode 100644 Assets/VRM10_Samples/VRM10Viewer/MaterialImporter/UrpMToonMaterialImporter.cs create mode 100644 Assets/VRM10_Samples/VRM10Viewer/MaterialImporter/UrpMToonMaterialImporter.cs.meta create mode 100644 Assets/VRM10_Samples/VRM10Viewer/MaterialImporter/UrpPbrMaterialImporter.cs create mode 100644 Assets/VRM10_Samples/VRM10Viewer/MaterialImporter/UrpPbrMaterialImporter.cs.meta delete mode 100644 Assets/VRM10_Samples/VRM10Viewer/OrderedMaterialDescriptorGenerator.cs diff --git a/Assets/VRM10_Samples/VRM10Viewer/MaterialImporter.meta b/Assets/VRM10_Samples/VRM10Viewer/MaterialImporter.meta new file mode 100644 index 000000000..1ab0d09b3 --- /dev/null +++ b/Assets/VRM10_Samples/VRM10Viewer/MaterialImporter.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: da380cc015227a946a8a8ccd61811b82 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/VRM10_Samples/VRM10Viewer/IMaterialImporter.cs b/Assets/VRM10_Samples/VRM10Viewer/MaterialImporter/IMaterialImporter.cs similarity index 100% rename from Assets/VRM10_Samples/VRM10Viewer/IMaterialImporter.cs rename to Assets/VRM10_Samples/VRM10Viewer/MaterialImporter/IMaterialImporter.cs diff --git a/Assets/VRM10_Samples/VRM10Viewer/IMaterialImporter.cs.meta b/Assets/VRM10_Samples/VRM10Viewer/MaterialImporter/IMaterialImporter.cs.meta similarity index 100% rename from Assets/VRM10_Samples/VRM10Viewer/IMaterialImporter.cs.meta rename to Assets/VRM10_Samples/VRM10Viewer/MaterialImporter/IMaterialImporter.cs.meta diff --git a/Assets/VRM10_Samples/VRM10Viewer/MaterialImporter/OrderedMaterialDescriptorGenerator.cs b/Assets/VRM10_Samples/VRM10Viewer/MaterialImporter/OrderedMaterialDescriptorGenerator.cs new file mode 100644 index 000000000..e16f48447 --- /dev/null +++ b/Assets/VRM10_Samples/VRM10Viewer/MaterialImporter/OrderedMaterialDescriptorGenerator.cs @@ -0,0 +1,88 @@ +using System.Collections.Generic; +using UniGLTF; + +namespace UniVRM10.VRM10Viewer +{ + /// + /// Importersに格納したを順番に試行して成功したらそれを採用する。 + /// mtoon, unlit, pbr の順に試行することを想定。 + /// + public sealed class OrderedMaterialDescriptorGenerator : IMaterialDescriptorGenerator + { + public readonly List Importers = new(); + + public delegate MaterialDescriptor MakeDefaultMaterialDescriptor(string materialName); + + private readonly MakeDefaultMaterialDescriptor _makeDefault; + + /// + /// 順に TryCreateParam を実行して最初に成功したら終わる。 + /// 全て失敗したら UrpGltfDefaultMaterialImporter を実行する。 + /// 通常 vrm-1.0, unlit, pbr の順に試行する。 + /// + /// + public OrderedMaterialDescriptorGenerator(MakeDefaultMaterialDescriptor makeDefault, params IMaterialImporter[] importers) + { + _makeDefault = makeDefault; + Importers.AddRange(importers); + } + + public static OrderedMaterialDescriptorGenerator CreateCustomGenerator( + IMaterialImporter customPbr, + IMaterialImporter customMToonImporter = null) + { + + var generator = new OrderedMaterialDescriptorGenerator((new UrpGltfDefaultMaterialImporter()).CreateParam); + + // 最初にMToonの分岐 + // generator.Importers は前から順に処理します + if (customMToonImporter != null) + { + // TinyMToon(WebGL 向け) を使う例 + generator.Importers.Add(customMToonImporter); + } + else + { + // VRM10/Universal Render Pipeline/MToon10 を使う例 + generator.Importers.Add(new UrpMToonMaterialImporter()); + } + + // 次に unlit の分岐 + generator.Importers.Add(new UnlitMaterialImporter()); + + // 次に pbr の分岐 + if (customPbr != null) + { + // TinyPbr を使う例 + generator.Importers.Add(customPbr); + } + else + { + // Universal Render Pipeline/Lit を使う例 + // AlwaysIncludedShaders に登録すると、Variant が多すぎてビルドが終わらない問題があります。 + generator.Importers.Add(new UrpPbrMaterialImporter()); + } + + return generator; + } + + public MaterialDescriptor Get(GltfData data, int i) + { + foreach (var importer in Importers) + { + if (importer.TryCreateParam(data, i, out var param)) + { + return param; + } + } + // NOTE: Fallback to default material + if (Symbols.VRM_DEVELOP) + { + UniGLTFLogger.Warning($"material: {i} out of range. fallback"); + } + return GetGltfDefault(GltfMaterialImportUtils.ImportMaterialName(i, null)); + } + + public MaterialDescriptor GetGltfDefault(string materialName = null) => _makeDefault(materialName); + } +} \ No newline at end of file diff --git a/Assets/VRM10_Samples/VRM10Viewer/OrderedMaterialDescriptorGenerator.cs.meta b/Assets/VRM10_Samples/VRM10Viewer/MaterialImporter/OrderedMaterialDescriptorGenerator.cs.meta similarity index 100% rename from Assets/VRM10_Samples/VRM10Viewer/OrderedMaterialDescriptorGenerator.cs.meta rename to Assets/VRM10_Samples/VRM10Viewer/MaterialImporter/OrderedMaterialDescriptorGenerator.cs.meta diff --git a/Assets/VRM10_Samples/VRM10Viewer/TinyMToonMaterialContext.cs b/Assets/VRM10_Samples/VRM10Viewer/MaterialImporter/TinyMToonMaterialContext.cs similarity index 100% rename from Assets/VRM10_Samples/VRM10Viewer/TinyMToonMaterialContext.cs rename to Assets/VRM10_Samples/VRM10Viewer/MaterialImporter/TinyMToonMaterialContext.cs diff --git a/Assets/VRM10_Samples/VRM10Viewer/TinyMToonMaterialContext.cs.meta b/Assets/VRM10_Samples/VRM10Viewer/MaterialImporter/TinyMToonMaterialContext.cs.meta similarity index 100% rename from Assets/VRM10_Samples/VRM10Viewer/TinyMToonMaterialContext.cs.meta rename to Assets/VRM10_Samples/VRM10Viewer/MaterialImporter/TinyMToonMaterialContext.cs.meta diff --git a/Assets/VRM10_Samples/VRM10Viewer/TinyMToonMaterialImporter.cs b/Assets/VRM10_Samples/VRM10Viewer/MaterialImporter/TinyMToonMaterialImporter.cs similarity index 100% rename from Assets/VRM10_Samples/VRM10Viewer/TinyMToonMaterialImporter.cs rename to Assets/VRM10_Samples/VRM10Viewer/MaterialImporter/TinyMToonMaterialImporter.cs diff --git a/Assets/VRM10_Samples/VRM10Viewer/TinyMToonMaterialImporter.cs.meta b/Assets/VRM10_Samples/VRM10Viewer/MaterialImporter/TinyMToonMaterialImporter.cs.meta similarity index 100% rename from Assets/VRM10_Samples/VRM10Viewer/TinyMToonMaterialImporter.cs.meta rename to Assets/VRM10_Samples/VRM10Viewer/MaterialImporter/TinyMToonMaterialImporter.cs.meta diff --git a/Assets/VRM10_Samples/VRM10Viewer/TinyPbrMaterialContext.cs b/Assets/VRM10_Samples/VRM10Viewer/MaterialImporter/TinyPbrMaterialContext.cs similarity index 100% rename from Assets/VRM10_Samples/VRM10Viewer/TinyPbrMaterialContext.cs rename to Assets/VRM10_Samples/VRM10Viewer/MaterialImporter/TinyPbrMaterialContext.cs diff --git a/Assets/VRM10_Samples/VRM10Viewer/TinyPbrMaterialContext.cs.meta b/Assets/VRM10_Samples/VRM10Viewer/MaterialImporter/TinyPbrMaterialContext.cs.meta similarity index 100% rename from Assets/VRM10_Samples/VRM10Viewer/TinyPbrMaterialContext.cs.meta rename to Assets/VRM10_Samples/VRM10Viewer/MaterialImporter/TinyPbrMaterialContext.cs.meta diff --git a/Assets/VRM10_Samples/VRM10Viewer/TinyPbrMaterialImporter.cs b/Assets/VRM10_Samples/VRM10Viewer/MaterialImporter/TinyPbrMaterialImporter.cs similarity index 100% rename from Assets/VRM10_Samples/VRM10Viewer/TinyPbrMaterialImporter.cs rename to Assets/VRM10_Samples/VRM10Viewer/MaterialImporter/TinyPbrMaterialImporter.cs diff --git a/Assets/VRM10_Samples/VRM10Viewer/TinyPbrMaterialImporter.cs.meta b/Assets/VRM10_Samples/VRM10Viewer/MaterialImporter/TinyPbrMaterialImporter.cs.meta similarity index 100% rename from Assets/VRM10_Samples/VRM10Viewer/TinyPbrMaterialImporter.cs.meta rename to Assets/VRM10_Samples/VRM10Viewer/MaterialImporter/TinyPbrMaterialImporter.cs.meta diff --git a/Assets/VRM10_Samples/VRM10Viewer/MaterialImporter/UnlitMaterialImporter.cs b/Assets/VRM10_Samples/VRM10Viewer/MaterialImporter/UnlitMaterialImporter.cs new file mode 100644 index 000000000..feffbc680 --- /dev/null +++ b/Assets/VRM10_Samples/VRM10Viewer/MaterialImporter/UnlitMaterialImporter.cs @@ -0,0 +1,12 @@ +using UniGLTF; + +namespace UniVRM10.VRM10Viewer +{ + class UnlitMaterialImporter : IMaterialImporter + { + bool IMaterialImporter.TryCreateParam(GltfData data, int i, out MaterialDescriptor matDesc) + { + return BuiltInGltfUnlitMaterialImporter.TryCreateParam(data, i, out matDesc); + } + } +} \ No newline at end of file diff --git a/Assets/VRM10_Samples/VRM10Viewer/MaterialImporter/UnlitMaterialImporter.cs.meta b/Assets/VRM10_Samples/VRM10Viewer/MaterialImporter/UnlitMaterialImporter.cs.meta new file mode 100644 index 000000000..e7c1d3ea9 --- /dev/null +++ b/Assets/VRM10_Samples/VRM10Viewer/MaterialImporter/UnlitMaterialImporter.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: f3cabd0c7193c374bbeb7db075c3479b +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/VRM10_Samples/VRM10Viewer/MaterialImporter/UrpMToonMaterialImporter.cs b/Assets/VRM10_Samples/VRM10Viewer/MaterialImporter/UrpMToonMaterialImporter.cs new file mode 100644 index 000000000..b0b04f5c1 --- /dev/null +++ b/Assets/VRM10_Samples/VRM10Viewer/MaterialImporter/UrpMToonMaterialImporter.cs @@ -0,0 +1,19 @@ +using UniGLTF; + +namespace UniVRM10.VRM10Viewer +{ + /// + /// VRM10/Universal Render Pipeline/MToon10 + /// + public class UrpMToonMaterialImporter : IMaterialImporter + { + public bool TryCreateParam(GltfData data, int i, out MaterialDescriptor matDesc) + { + if (UrpVrm10MToonMaterialImporter.TryCreateParam(data, i, out matDesc)) + { + return true; + } + return false; + } + } +} \ No newline at end of file diff --git a/Assets/VRM10_Samples/VRM10Viewer/MaterialImporter/UrpMToonMaterialImporter.cs.meta b/Assets/VRM10_Samples/VRM10Viewer/MaterialImporter/UrpMToonMaterialImporter.cs.meta new file mode 100644 index 000000000..0dcc56742 --- /dev/null +++ b/Assets/VRM10_Samples/VRM10Viewer/MaterialImporter/UrpMToonMaterialImporter.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: c97cb941cc7451b49b9d347de508bdbd +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/VRM10_Samples/VRM10Viewer/MaterialImporter/UrpPbrMaterialImporter.cs b/Assets/VRM10_Samples/VRM10Viewer/MaterialImporter/UrpPbrMaterialImporter.cs new file mode 100644 index 000000000..a6df0407c --- /dev/null +++ b/Assets/VRM10_Samples/VRM10Viewer/MaterialImporter/UrpPbrMaterialImporter.cs @@ -0,0 +1,18 @@ +using UniGLTF; + +namespace UniVRM10.VRM10Viewer +{ + public class UrpPbrMaterialImporter : IMaterialImporter + { + public UrpGltfPbrMaterialImporter PbrMaterialImporter { get; } = new(); + + public bool TryCreateParam(GltfData data, int i, out MaterialDescriptor matDesc) + { + if (PbrMaterialImporter.TryCreateParam(data, i, out matDesc)) + { + return true; + } + return false; + } + } +} \ No newline at end of file diff --git a/Assets/VRM10_Samples/VRM10Viewer/MaterialImporter/UrpPbrMaterialImporter.cs.meta b/Assets/VRM10_Samples/VRM10Viewer/MaterialImporter/UrpPbrMaterialImporter.cs.meta new file mode 100644 index 000000000..de35a2e2e --- /dev/null +++ b/Assets/VRM10_Samples/VRM10Viewer/MaterialImporter/UrpPbrMaterialImporter.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 5541a21c1ccebff4e9d222a059c90c57 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/VRM10_Samples/VRM10Viewer/OrderedMaterialDescriptorGenerator.cs b/Assets/VRM10_Samples/VRM10Viewer/OrderedMaterialDescriptorGenerator.cs deleted file mode 100644 index e8d644d30..000000000 --- a/Assets/VRM10_Samples/VRM10Viewer/OrderedMaterialDescriptorGenerator.cs +++ /dev/null @@ -1,41 +0,0 @@ -using UniGLTF; - -namespace UniVRM10.VRM10Viewer -{ - public sealed class OrderedMaterialDescriptorGenerator : IMaterialDescriptorGenerator - { - private IMaterialImporter[] _importers; - - public UrpGltfDefaultMaterialImporter DefaultMaterialImporter { get; } = new(); - - /// - /// 順に TryCreateParam を実行して最初に成功したら終わる。 - /// 全て失敗したら UrpGltfDefaultMaterialImporter を実行する。 - /// 通常 vrm-1.0, unlit, pbr の順に試行する。 - /// - /// - public OrderedMaterialDescriptorGenerator(params IMaterialImporter[] importers) - { - _importers = importers; - } - - public MaterialDescriptor Get(GltfData data, int i) - { - foreach (var importer in _importers) - { - if (importer.TryCreateParam(data, i, out var param)) - { - return param; - } - } - // NOTE: Fallback to default material - if (Symbols.VRM_DEVELOP) - { - UniGLTFLogger.Warning($"material: {i} out of range. fallback"); - } - return GetGltfDefault(GltfMaterialImportUtils.ImportMaterialName(i, null)); - } - - public MaterialDescriptor GetGltfDefault(string materialName = null) => DefaultMaterialImporter.CreateParam(materialName); - } -} \ No newline at end of file diff --git a/Assets/VRM10_Samples/VRM10Viewer/VRM10Viewer.unity b/Assets/VRM10_Samples/VRM10Viewer/VRM10Viewer.unity index dc470aae5..b78f34c9f 100644 --- a/Assets/VRM10_Samples/VRM10Viewer/VRM10Viewer.unity +++ b/Assets/VRM10_Samples/VRM10Viewer/VRM10Viewer.unity @@ -4931,6 +4931,7 @@ RectTransform: - {fileID: 1767706907} - {fileID: 1621794411} - {fileID: 731212245} + - {fileID: 358762027} - {fileID: 2009818432} - {fileID: 103723704} - {fileID: 602093298} @@ -5130,6 +5131,92 @@ MonoBehaviour: m_PersistentCalls: m_Calls: [] m_IsOn: 0 +--- !u!1 &358762026 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 358762027} + - component: {fileID: 358762028} + m_Layer: 5 + m_Name: UseCustomMToorMaterial + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &358762027 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 358762026} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 2090176800} + - {fileID: 1405688945} + m_Father: {fileID: 339774397} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 0, y: 0} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 0, y: 20} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &358762028 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 358762026} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 9085046f02f69544eb97fd06b6048fe2, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Navigation: + m_Mode: 3 + m_WrapAround: 0 + m_SelectOnUp: {fileID: 0} + m_SelectOnDown: {fileID: 0} + m_SelectOnLeft: {fileID: 0} + m_SelectOnRight: {fileID: 0} + m_Transition: 1 + m_Colors: + m_NormalColor: {r: 1, g: 1, b: 1, a: 1} + m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} + m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1} + m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} + m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608} + m_ColorMultiplier: 1 + m_FadeDuration: 0.1 + m_SpriteState: + m_HighlightedSprite: {fileID: 0} + m_PressedSprite: {fileID: 0} + m_SelectedSprite: {fileID: 0} + m_DisabledSprite: {fileID: 0} + m_AnimationTriggers: + m_NormalTrigger: Normal + m_HighlightedTrigger: Highlighted + m_PressedTrigger: Pressed + m_SelectedTrigger: Highlighted + m_DisabledTrigger: Disabled + m_Interactable: 1 + m_TargetGraphic: {fileID: 2090176801} + toggleTransition: 1 + graphic: {fileID: 379278027} + m_Group: {fileID: 0} + onValueChanged: + m_PersistentCalls: + m_Calls: [] + m_IsOn: 0 --- !u!1 &364098868 GameObject: m_ObjectHideFlags: 0 @@ -5464,6 +5551,81 @@ CanvasRenderer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 377012217} m_CullTransparentMesh: 1 +--- !u!1 &379278025 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 379278026} + - component: {fileID: 379278028} + - component: {fileID: 379278027} + m_Layer: 5 + m_Name: Checkmark + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &379278026 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 379278025} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 2090176800} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0.5, y: 0.5} + m_AnchorMax: {x: 0.5, y: 0.5} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 20, y: 20} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &379278027 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 379278025} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_Sprite: {fileID: 10901, guid: 0000000000000000f000000000000000, type: 0} + m_Type: 0 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 + m_UseSpriteMesh: 0 + m_PixelsPerUnitMultiplier: 1 +--- !u!222 &379278028 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 379278025} + m_CullTransparentMesh: 0 --- !u!1 &381534432 GameObject: m_ObjectHideFlags: 0 @@ -5651,7 +5813,9 @@ MonoBehaviour: m_HorizontalOverflow: 0 m_VerticalOverflow: 0 m_LineSpacing: 1 - m_Text: Use CustomMaterial + m_Text: 'Use CustomPbrMaterial + +' --- !u!222 &390989033 CanvasRenderer: m_ObjectHideFlags: 0 @@ -12326,7 +12490,7 @@ GameObject: - component: {fileID: 731212245} - component: {fileID: 731212246} m_Layer: 5 - m_Name: UseCustomMaterial + m_Name: UseCustomPbrMaterial m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 @@ -23821,6 +23985,87 @@ RectTransform: m_AnchoredPosition: {x: 0, y: 0} m_SizeDelta: {x: 0, y: 28} m_Pivot: {x: 0.5, y: 1} +--- !u!1 &1405688944 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1405688945} + - component: {fileID: 1405688947} + - component: {fileID: 1405688946} + m_Layer: 5 + m_Name: Label + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &1405688945 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1405688944} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 358762027} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 1, y: 1} + m_AnchoredPosition: {x: 9, y: -0.5} + m_SizeDelta: {x: -28, y: -3} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &1405688946 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1405688944} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_FontData: + m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} + m_FontSize: 14 + m_FontStyle: 0 + m_BestFit: 0 + m_MinSize: 10 + m_MaxSize: 40 + m_Alignment: 0 + m_AlignByGeometry: 0 + m_RichText: 1 + m_HorizontalOverflow: 0 + m_VerticalOverflow: 0 + m_LineSpacing: 1 + m_Text: 'Use CustomMToonMaterial + +' +--- !u!222 &1405688947 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1405688944} + m_CullTransparentMesh: 0 --- !u!1 &1406385458 GameObject: m_ObjectHideFlags: 0 @@ -30646,7 +30891,8 @@ MonoBehaviour: type: 3} m_mtoonMaterialAlphaBlend: {fileID: -876546973899608171, guid: 6b60fe85d745eda4281e3278fcb0657c, type: 3} - m_useCustomMaterial: {fileID: 731212246} + m_useCustomPbrMaterial: {fileID: 731212246} + m_useCustomMToonMaterial: {fileID: 358762028} m_openModel: {fileID: 2009818433} m_openMotion: {fileID: 168425996} m_pastePose: {fileID: 1307084564} @@ -35733,6 +35979,82 @@ CanvasRenderer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 2085434813} m_CullTransparentMesh: 1 +--- !u!1 &2090176799 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 2090176800} + - component: {fileID: 2090176802} + - component: {fileID: 2090176801} + m_Layer: 5 + m_Name: Background + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &2090176800 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2090176799} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 379278026} + m_Father: {fileID: 358762027} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 10, y: -10} + m_SizeDelta: {x: 20, y: 20} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &2090176801 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2090176799} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0} + m_Type: 1 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 + m_UseSpriteMesh: 0 + m_PixelsPerUnitMultiplier: 1 +--- !u!222 &2090176802 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2090176799} + m_CullTransparentMesh: 0 --- !u!1 &2092455692 GameObject: m_ObjectHideFlags: 0 diff --git a/Assets/VRM10_Samples/VRM10Viewer/VRM10ViewerUI.cs b/Assets/VRM10_Samples/VRM10Viewer/VRM10ViewerUI.cs index 87193c97e..fdce9a9ad 100644 --- a/Assets/VRM10_Samples/VRM10Viewer/VRM10ViewerUI.cs +++ b/Assets/VRM10_Samples/VRM10Viewer/VRM10ViewerUI.cs @@ -9,6 +9,7 @@ using System.Threading.Tasks; using UniGLTF; using UniGLTF.SpringBoneJobs.Blittables; using UnityEngine; +using UnityEngine.Rendering; using UnityEngine.UI; namespace UniVRM10.VRM10Viewer @@ -34,7 +35,9 @@ namespace UniVRM10.VRM10Viewer [Header("UI")] [SerializeField] - Toggle m_useCustomMaterial = default; + Toggle m_useCustomPbrMaterial = default; + [SerializeField] + Toggle m_useCustomMToonMaterial = default; [SerializeField] Button m_openModel = default; @@ -378,7 +381,8 @@ namespace UniVRM10.VRM10Viewer { var map = new ObjectMap(gameObject); Root = map.Objects["Root"]; - m_useCustomMaterial = map.Get("CustomMaterial"); + m_useCustomPbrMaterial = map.Get("CustomPbrMaterial"); + m_useCustomMToonMaterial = map.Get("CustomMToonMaterial"); m_openModel = map.Get public sealed class UnitySupportedImageTypeDeserializer : ITextureDeserializer { + /// + /// `true` を指定すると、テクスチャを Non-Readable なものとしてデシリアライズする。 + /// + /// + /// `UnityEngine.ImageConversion.LoadImage` の第二引数 `markNonReadable` に相当。 + /// デフォルト値は `false`。 + /// テクスチャ編集を行わないアプリケーションプログラム等では、 + /// この値を `true` にすることでメモリ使用量の削減を期待できる。 + /// このフラグの効用については `UnityEngine.Texture2D.Apply` に記述がある。 + /// + public bool MarkNonReadable { get; set; } = false; + public async Task LoadTextureAsync(DeserializingTextureInfo textureInfo, IAwaitCaller awaitCaller) { if (textureInfo.ImageData == null) return null; @@ -16,7 +28,7 @@ namespace UniGLTF try { var texture = new Texture2D(2, 2, TextureFormat.ARGB32, textureInfo.UseMipmap, textureInfo.ColorSpace == ColorSpace.Linear); - texture.LoadImage(textureInfo.ImageData); + texture.LoadImage(textureInfo.ImageData, MarkNonReadable); await awaitCaller.NextFrame(); texture.wrapModeU = textureInfo.WrapModeU; From 559a363fe60948ebb327d1858192e0b79f0d64a3 Mon Sep 17 00:00:00 2001 From: ousttrue Date: Thu, 13 Mar 2025 17:09:20 +0900 Subject: [PATCH 52/56] CurrentTails in center local coordinates. --- .../SpringBoneJobs/FastSpringBoneConbinedBuffer.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Assets/UniGLTF/Runtime/SpringBoneJobs/FastSpringBoneConbinedBuffer.cs b/Assets/UniGLTF/Runtime/SpringBoneJobs/FastSpringBoneConbinedBuffer.cs index f06f3f70a..bae4fd0e9 100644 --- a/Assets/UniGLTF/Runtime/SpringBoneJobs/FastSpringBoneConbinedBuffer.cs +++ b/Assets/UniGLTF/Runtime/SpringBoneJobs/FastSpringBoneConbinedBuffer.cs @@ -300,6 +300,7 @@ namespace UniGLTF.SpringBoneJobs public void Execute(int springIndex) { var spring = Springs[springIndex]; + var center = spring.centerTransformIndex >= 0 ? Transforms[spring.centerTransformIndex] : (BlittableTransform?)null; for (int jointIndex = spring.logicSpan.startIndex; jointIndex < spring.logicSpan.EndIndex; ++jointIndex) { if (float.IsNaN(CurrentTails[jointIndex].x)) @@ -317,9 +318,10 @@ namespace UniGLTF.SpringBoneJobs } var tail = Transforms[tailIndex]; - CurrentTails[jointIndex] = tail.position; - PrevTails[jointIndex] = tail.position; - NextTails[jointIndex] = tail.position; + var tailPos = center.HasValue ? center.Value.worldToLocalMatrix.MultiplyPoint3x4(tail.position) : tail.position; + CurrentTails[jointIndex] = tailPos; + PrevTails[jointIndex] = tailPos; + NextTails[jointIndex] = tailPos; } } } From f0d59ae948be5b332d4a513ed31fa02f73ae7af8 Mon Sep 17 00:00:00 2001 From: ousttrue Date: Fri, 14 Mar 2025 18:35:54 +0900 Subject: [PATCH 53/56] list --- .../FastSpringBoneBufferCombiner.cs | 40 ++++++++++++++----- .../FastSpringBoneConbinedBuffer.cs | 11 +++-- 2 files changed, 38 insertions(+), 13 deletions(-) diff --git a/Assets/UniGLTF/Runtime/SpringBoneJobs/FastSpringBoneBufferCombiner.cs b/Assets/UniGLTF/Runtime/SpringBoneJobs/FastSpringBoneBufferCombiner.cs index 7a27bd27f..a1c46b747 100644 --- a/Assets/UniGLTF/Runtime/SpringBoneJobs/FastSpringBoneBufferCombiner.cs +++ b/Assets/UniGLTF/Runtime/SpringBoneJobs/FastSpringBoneBufferCombiner.cs @@ -21,18 +21,34 @@ namespace UniGLTF.SpringBoneJobs { private FastSpringBoneCombinedBuffer _combinedBuffer; public FastSpringBoneCombinedBuffer Combined => _combinedBuffer; - private readonly LinkedList _buffers = new LinkedList(); - private Queue<(bool isAdd, FastSpringBoneBuffer buffer)> _request = new(); + private readonly List _buffers = new(); + + struct Request + { + public FastSpringBoneBuffer Remove; + public FastSpringBoneBuffer Add; + } + private Queue _request = new(); + public bool HasBuffer => _buffers.Count > 0 && _combinedBuffer != null; public void Register(FastSpringBoneBuffer buffer) { - _request.Enqueue((true, buffer)); + _request.Enqueue(new Request { Add = buffer }); } public void Unregister(FastSpringBoneBuffer buffer) { - _request.Enqueue((false, buffer)); + _request.Enqueue(new Request { Remove = buffer }); + } + + /// + /// 順番が変わらないように更新する + /// + /// + public void ReRegister(FastSpringBoneBuffer remove, FastSpringBoneBuffer add) + { + _request.Enqueue(new Request { Remove = remove, Add = add }); } /// @@ -60,14 +76,20 @@ namespace UniGLTF.SpringBoneJobs // buffer 増減 while (_request.Count > 0) { - var (isAdd, buffer) = _request.Dequeue(); - if (isAdd) + var req = _request.Dequeue(); + if (req.Remove != null && req.Add != null) { - _buffers.AddLast(buffer); + // 順番が変わらないように入れ替える + var index = _buffers.IndexOf(req.Remove); + _buffers[index] = req.Add; } - else + else if (req.Add != null) { - _buffers.Remove(buffer); + _buffers.Add(req.Add); + } + else if (req.Remove != null) + { + _buffers.Remove(req.Remove); } } diff --git a/Assets/UniGLTF/Runtime/SpringBoneJobs/FastSpringBoneConbinedBuffer.cs b/Assets/UniGLTF/Runtime/SpringBoneJobs/FastSpringBoneConbinedBuffer.cs index bae4fd0e9..6a64725b0 100644 --- a/Assets/UniGLTF/Runtime/SpringBoneJobs/FastSpringBoneConbinedBuffer.cs +++ b/Assets/UniGLTF/Runtime/SpringBoneJobs/FastSpringBoneConbinedBuffer.cs @@ -78,11 +78,14 @@ namespace UniGLTF.SpringBoneJobs _batchedBufferLogicSizes = batchedBufferLogicSizes; } + /// + /// Lidt をひとつの FastSpringBoneCombinedBuffer に統合する + /// internal static JobHandle Create(JobHandle handle, - LinkedList _buffers, out FastSpringBoneCombinedBuffer combined) + IReadOnlyList buffers, out FastSpringBoneCombinedBuffer combined) { Profiler.BeginSample("FastSpringBone.ReconstructBuffers.CopyToBatchedBuffers"); - var batchedBuffers = _buffers.ToArray(); + var batchedBuffers = buffers.ToArray(); var batchedBufferLogicSizes = batchedBuffers.Select(buffer => buffer.Logics.Length).ToArray(); Profiler.EndSample(); @@ -92,7 +95,7 @@ namespace UniGLTF.SpringBoneJobs var collidersCount = 0; var logicsCount = 0; var transformsCount = 0; - foreach (var buffer in _buffers) + foreach (var buffer in buffers) { springsCount += buffer.Springs.Length; collidersCount += buffer.Colliders.Length; @@ -103,7 +106,7 @@ namespace UniGLTF.SpringBoneJobs // バッファの構築 Profiler.BeginSample("FastSpringBone.ReconstructBuffers.CreateBuffers"); - combined = new FastSpringBoneCombinedBuffer(logicsCount, springsCount, _buffers.Count, + combined = new FastSpringBoneCombinedBuffer(logicsCount, springsCount, buffers.Count, collidersCount, transformsCount, batchedBuffers, batchedBufferLogicSizes); Profiler.EndSample(); From cad4082cc414c1192c0163e7d8efcfa2c2a89c39 Mon Sep 17 00:00:00 2001 From: ousttrue Date: Fri, 14 Mar 2025 18:56:44 +0900 Subject: [PATCH 54/56] =?UTF-8?q?BufferCombiner.Unregister/Register=20?= =?UTF-8?q?=E3=81=A7=E9=A0=86=E7=95=AA=E3=81=AE=E5=A4=89=E6=9B=B4=E3=81=8C?= =?UTF-8?q?=E8=B5=B7=E3=81=8D=E3=81=AA=E3=81=84=E3=82=88=E3=81=86=E3=81=AB?= =?UTF-8?q?=E3=81=99=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../FastSpringBoneBufferCombiner.cs | 16 +--------------- .../FastSpringBoneConbinedBuffer.cs | 2 +- .../Jobs/Vrm0XFastSpringBoneRuntime.cs | 4 ++-- .../Vrm10Runtime/Vrm10FastSpringboneRuntime.cs | 14 ++++---------- .../Vrm10FastSpringboneRuntimeStandalone.cs | 15 ++++----------- 5 files changed, 12 insertions(+), 39 deletions(-) diff --git a/Assets/UniGLTF/Runtime/SpringBoneJobs/FastSpringBoneBufferCombiner.cs b/Assets/UniGLTF/Runtime/SpringBoneJobs/FastSpringBoneBufferCombiner.cs index a1c46b747..efd342140 100644 --- a/Assets/UniGLTF/Runtime/SpringBoneJobs/FastSpringBoneBufferCombiner.cs +++ b/Assets/UniGLTF/Runtime/SpringBoneJobs/FastSpringBoneBufferCombiner.cs @@ -32,21 +32,7 @@ namespace UniGLTF.SpringBoneJobs public bool HasBuffer => _buffers.Count > 0 && _combinedBuffer != null; - public void Register(FastSpringBoneBuffer buffer) - { - _request.Enqueue(new Request { Add = buffer }); - } - - public void Unregister(FastSpringBoneBuffer buffer) - { - _request.Enqueue(new Request { Remove = buffer }); - } - - /// - /// 順番が変わらないように更新する - /// - /// - public void ReRegister(FastSpringBoneBuffer remove, FastSpringBoneBuffer add) + public void Register(FastSpringBoneBuffer add, FastSpringBoneBuffer remove) { _request.Enqueue(new Request { Remove = remove, Add = add }); } diff --git a/Assets/UniGLTF/Runtime/SpringBoneJobs/FastSpringBoneConbinedBuffer.cs b/Assets/UniGLTF/Runtime/SpringBoneJobs/FastSpringBoneConbinedBuffer.cs index 6a64725b0..3202abfbd 100644 --- a/Assets/UniGLTF/Runtime/SpringBoneJobs/FastSpringBoneConbinedBuffer.cs +++ b/Assets/UniGLTF/Runtime/SpringBoneJobs/FastSpringBoneConbinedBuffer.cs @@ -79,7 +79,7 @@ namespace UniGLTF.SpringBoneJobs } /// - /// Lidt をひとつの FastSpringBoneCombinedBuffer に統合する + /// Job向けに、Lidt[FastSpringBoneBuffer] をひとつの FastSpringBoneCombinedBuffer に統合する /// internal static JobHandle Create(JobHandle handle, IReadOnlyList buffers, out FastSpringBoneCombinedBuffer combined) diff --git a/Assets/VRM/Runtime/SpringBone/Jobs/Vrm0XFastSpringBoneRuntime.cs b/Assets/VRM/Runtime/SpringBone/Jobs/Vrm0XFastSpringBoneRuntime.cs index 4e730e4ac..45d56ffad 100644 --- a/Assets/VRM/Runtime/SpringBone/Jobs/Vrm0XFastSpringBoneRuntime.cs +++ b/Assets/VRM/Runtime/SpringBone/Jobs/Vrm0XFastSpringBoneRuntime.cs @@ -57,7 +57,7 @@ namespace VRM return; } - m_service.BufferCombiner.Unregister(m_buffer); + m_service.BufferCombiner.Register(add: null, remove: m_buffer); m_buffer.Dispose(); m_buffer = null; } @@ -67,7 +67,7 @@ namespace VRM Debug.Assert(m_buffer == null); var buffer = await SpringBoneJobs.FastSpringBoneReplacer.MakeBufferAsync(m_vrm, awaitCaller); m_buffer = buffer; - SpringBoneJobs.FastSpringBoneService.Instance.BufferCombiner.Register(buffer); + SpringBoneJobs.FastSpringBoneService.Instance.BufferCombiner.Register(add: buffer, remove: null); } diff --git a/Assets/VRM10/Runtime/Components/Vrm10Runtime/Vrm10FastSpringboneRuntime.cs b/Assets/VRM10/Runtime/Components/Vrm10Runtime/Vrm10FastSpringboneRuntime.cs index 4f26d93d1..246eb9c7c 100644 --- a/Assets/VRM10/Runtime/Components/Vrm10Runtime/Vrm10FastSpringboneRuntime.cs +++ b/Assets/VRM10/Runtime/Components/Vrm10Runtime/Vrm10FastSpringboneRuntime.cs @@ -55,7 +55,7 @@ namespace UniVRM10 { if (m_fastSpringBoneBuffer != null) { - m_fastSpringBoneService.BufferCombiner.Unregister(m_fastSpringBoneBuffer); + m_fastSpringBoneService.BufferCombiner.Register(add: null, remove: m_fastSpringBoneBuffer); m_fastSpringBoneBuffer.Dispose(); } } @@ -87,16 +87,10 @@ namespace UniVRM10 } m_building = true; - // 登録削除 - if (m_fastSpringBoneBuffer != null) - { - m_fastSpringBoneService.BufferCombiner.Unregister(m_fastSpringBoneBuffer); - } + var fastSpringBoneBuffer = await FastSpringBoneBufferFactory.ConstructSpringBoneAsync(awaitCaller, m_instance, m_fastSpringBoneBuffer); - m_fastSpringBoneBuffer = await FastSpringBoneBufferFactory.ConstructSpringBoneAsync(awaitCaller, m_instance, m_fastSpringBoneBuffer); - - // 登録 - m_fastSpringBoneService.BufferCombiner.Register(m_fastSpringBoneBuffer); + m_fastSpringBoneService.BufferCombiner.Register(add: fastSpringBoneBuffer, remove: m_fastSpringBoneBuffer); + m_fastSpringBoneBuffer = fastSpringBoneBuffer; m_building = false; return true; diff --git a/Assets/VRM10/Runtime/Components/Vrm10Runtime/Vrm10FastSpringboneRuntimeStandalone.cs b/Assets/VRM10/Runtime/Components/Vrm10Runtime/Vrm10FastSpringboneRuntimeStandalone.cs index 31153063d..e1660af07 100644 --- a/Assets/VRM10/Runtime/Components/Vrm10Runtime/Vrm10FastSpringboneRuntimeStandalone.cs +++ b/Assets/VRM10/Runtime/Components/Vrm10Runtime/Vrm10FastSpringboneRuntimeStandalone.cs @@ -54,7 +54,7 @@ namespace UniVRM10 public void Dispose() { - m_bufferCombiner.Unregister(m_fastSpringBoneBuffer); + m_bufferCombiner.Register(add: null, remove: m_fastSpringBoneBuffer); m_fastSpringBoneBuffer.Dispose(); m_fastSpringBoneScheduler.Dispose(); @@ -88,16 +88,9 @@ namespace UniVRM10 } m_building = true; - // 登録削除 - if (m_fastSpringBoneBuffer != null) - { - m_bufferCombiner.Unregister(m_fastSpringBoneBuffer); - } - - m_fastSpringBoneBuffer = await FastSpringBoneBufferFactory.ConstructSpringBoneAsync(awaitCaller, m_instance, m_fastSpringBoneBuffer); - - // 登録 - m_bufferCombiner.Register(m_fastSpringBoneBuffer); + var fastSpringBoneBuffer = await FastSpringBoneBufferFactory.ConstructSpringBoneAsync(awaitCaller, m_instance, m_fastSpringBoneBuffer); + m_bufferCombiner.Register(add: fastSpringBoneBuffer, remove: m_fastSpringBoneBuffer); + m_fastSpringBoneBuffer = fastSpringBoneBuffer; m_building = false; return true; From 7a34d11a3c10a399ccf583b1892a8efc052a50a3 Mon Sep 17 00:00:00 2001 From: ousttrue Date: Mon, 17 Mar 2025 15:40:04 +0900 Subject: [PATCH 55/56] add spring.transformIndexOffset --- .../Runtime/SpringBoneJobs/FastSpringBoneConbinedBuffer.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Assets/UniGLTF/Runtime/SpringBoneJobs/FastSpringBoneConbinedBuffer.cs b/Assets/UniGLTF/Runtime/SpringBoneJobs/FastSpringBoneConbinedBuffer.cs index 3202abfbd..8e8cc7835 100644 --- a/Assets/UniGLTF/Runtime/SpringBoneJobs/FastSpringBoneConbinedBuffer.cs +++ b/Assets/UniGLTF/Runtime/SpringBoneJobs/FastSpringBoneConbinedBuffer.cs @@ -303,7 +303,9 @@ namespace UniGLTF.SpringBoneJobs public void Execute(int springIndex) { var spring = Springs[springIndex]; - var center = spring.centerTransformIndex >= 0 ? Transforms[spring.centerTransformIndex] : (BlittableTransform?)null; + var center = spring.centerTransformIndex >= 0 + ? Transforms[spring.transformIndexOffset + spring.centerTransformIndex] + : (BlittableTransform?)null; for (int jointIndex = spring.logicSpan.startIndex; jointIndex < spring.logicSpan.EndIndex; ++jointIndex) { if (float.IsNaN(CurrentTails[jointIndex].x)) From 33ff6e57592abb128959e18f099812f1e413150f Mon Sep 17 00:00:00 2001 From: Christian Petry Date: Mon, 17 Mar 2025 07:34:26 +0100 Subject: [PATCH 56/56] Refs #2612 - Added an error message and tried preventing exports of empty primitive meshes --- .../UniGLTF/IO/AnimationIO/Import/AnimationImporterUtil.cs | 3 --- Assets/UniGLTF/Runtime/UniGLTF/IO/MeshIO/MeshExportInfo.cs | 4 ++++ Assets/UniGLTF/Runtime/UniGLTF/IO/gltfExporter.cs | 6 ++++++ 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/Assets/UniGLTF/Runtime/UniGLTF/IO/AnimationIO/Import/AnimationImporterUtil.cs b/Assets/UniGLTF/Runtime/UniGLTF/IO/AnimationIO/Import/AnimationImporterUtil.cs index fa927d235..f33a35d97 100644 --- a/Assets/UniGLTF/Runtime/UniGLTF/IO/AnimationIO/Import/AnimationImporterUtil.cs +++ b/Assets/UniGLTF/Runtime/UniGLTF/IO/AnimationIO/Import/AnimationImporterUtil.cs @@ -310,9 +310,6 @@ namespace UniGLTF { var node = data.GLTF.nodes[channel.target.node]; var mesh = data.GLTF.meshes[node.mesh]; - var primitive = mesh.primitives.FirstOrDefault(); - var targets = primitive.targets; - if (!gltf_mesh_extras_targetNames.TryGet(mesh, out List targetNames)) { throw new UniGLTFNotSupportedException("glTF BlendShape Animation. targetNames invalid."); diff --git a/Assets/UniGLTF/Runtime/UniGLTF/IO/MeshIO/MeshExportInfo.cs b/Assets/UniGLTF/Runtime/UniGLTF/IO/MeshIO/MeshExportInfo.cs index ad1925f11..1adba2baa 100644 --- a/Assets/UniGLTF/Runtime/UniGLTF/IO/MeshIO/MeshExportInfo.cs +++ b/Assets/UniGLTF/Runtime/UniGLTF/IO/MeshIO/MeshExportInfo.cs @@ -78,6 +78,10 @@ namespace UniGLTF { return false; } + if (Mesh.triangles.Length == 0) + { + return false; + } if (Materials == null) { return false; diff --git a/Assets/UniGLTF/Runtime/UniGLTF/IO/gltfExporter.cs b/Assets/UniGLTF/Runtime/UniGLTF/IO/gltfExporter.cs index bd31cec00..e2d09bb06 100644 --- a/Assets/UniGLTF/Runtime/UniGLTF/IO/gltfExporter.cs +++ b/Assets/UniGLTF/Runtime/UniGLTF/IO/gltfExporter.cs @@ -273,6 +273,12 @@ namespace UniGLTF ? MeshExporter_DividedVertexBuffer.Export(_data, unityMesh, Materials, m_settings.InverseAxis.Create(), m_settings) : MeshExporter_SharedVertexBuffer.Export(_data, unityMesh, Materials, m_settings.InverseAxis.Create(), m_settings) ; + + if (gltfMesh.primitives == null || gltfMesh.primitives.Count == 0) + { + Debug.LogError($"gltfMesh.primitives is empty: {unityMesh.Mesh.name}"); + } + _gltf.meshes.Add(gltfMesh); Meshes.Add(unityMesh.Mesh); if (!MeshBlendShapeIndexMap.ContainsKey(unityMesh.Mesh))