From 816a779678ef3e70056a4005af0bd75a3c4fb83e Mon Sep 17 00:00:00 2001 From: rowan Date: Fri, 18 Jul 2025 03:43:12 -0400 Subject: [PATCH] begin replacing naughtyattributes --- Assets/Animation/Door.controller | 10 +- Assets/Canto URP Renderer.asset | 92 +- Assets/DefaultEditor.cs | 30 - Assets/DefaultEditor.cs.meta | 2 - .../Rendering/Shaders/DitherLit.shadergraph | 3869 +++++++++++++++++ .../Shaders/DitherLit.shadergraph.meta | 10 + .../Rendering/Shaders/DitherUnlit.shadergraph | 1988 +++++++++ .../Shaders/DitherUnlit.shadergraph.meta | 10 + .../Materials/Occluded Silhouette.mat | 197 + .../Materials/Occluded Silhouette.mat.meta | 8 + Assets/Scenes/SampleScene.unity | 311 +- Assets/Scripts/Editor.meta | 8 + Assets/Scripts/Editor/PropertyDrawers.meta | 8 + .../AnimatorParamPropertyDrawer.cs | 135 + .../AnimatorParamPropertyDrawer.cs.meta | 2 + .../ConditionalDisplayPropertyDrawer.cs | 98 + .../ConditionalDisplayPropertyDrawer.cs.meta | 2 + .../PropertyDrawers/DurationPropertyDrawer.cs | 34 + .../DurationPropertyDrawer.cs.meta | 2 + Assets/Scripts/Entity/EntityAnimator.cs | 2 +- .../Scripts/Environment/TriggerAnimation.cs | 62 +- Assets/Scripts/Extension/Editor.cs | 26 + Assets/Scripts/Extension/Editor.cs.meta | 2 + Assets/Scripts/Interaction/Gate.cs | 90 +- Assets/Scripts/Item/Item.cs | 2 +- Assets/Scripts/System/Attributes.meta | 8 + .../Attributes/AnimatorParamAttribute.cs | 23 + .../Attributes/AnimatorParamAttribute.cs.meta | 2 + .../System/Attributes/ButtonAttribute.cs | 16 + .../System/Attributes/ButtonAttribute.cs.meta | 2 + .../Attributes/ConditionalDisplayAttribute.cs | 40 + .../ConditionalDisplayAttribute.cs.meta | 2 + .../System/Attributes/ShowIfAttribute.cs | 19 + .../System/Attributes/ShowIfAttribute.cs.meta | 2 + Assets/Scripts/System/KCMenu.cs | 1 + Assets/Scripts/System/SerializableDuration.cs | 24 + .../System/SerializableDuration.cs.meta | 2 + Assets/Scripts/UI/Effect.meta | 8 + Assets/Scripts/UI/Effect/FadeEffect.cs | 49 + Assets/Scripts/UI/Effect/FadeEffect.cs.meta | 2 + Assets/Scripts/UI/Effect/IUIEffect.cs | 16 + Assets/Scripts/UI/Effect/IUIEffect.cs.meta | 2 + Assets/Scripts/UI/Notification.cs | 19 + Assets/Scripts/UI/Notification.cs.meta | 2 + Assets/UI/Modal.uxml | 9 +- Assets/UI/New Transition Effect.asset | 22 + Assets/UI/New Transition Effect.asset.meta | 8 + Assets/UI/global.uss | 12 + Assets/UI/global.uss.meta | 11 + Packages/manifest.json | 1 - Packages/packages-lock.json | 7 - ProjectSettings/TagManager.asset | 2 +- 52 files changed, 7208 insertions(+), 103 deletions(-) delete mode 100644 Assets/DefaultEditor.cs delete mode 100644 Assets/DefaultEditor.cs.meta create mode 100644 Assets/Rendering/Shaders/DitherLit.shadergraph create mode 100644 Assets/Rendering/Shaders/DitherLit.shadergraph.meta create mode 100644 Assets/Rendering/Shaders/DitherUnlit.shadergraph create mode 100644 Assets/Rendering/Shaders/DitherUnlit.shadergraph.meta create mode 100644 Assets/Resources/Materials/Occluded Silhouette.mat create mode 100644 Assets/Resources/Materials/Occluded Silhouette.mat.meta create mode 100644 Assets/Scripts/Editor.meta create mode 100644 Assets/Scripts/Editor/PropertyDrawers.meta create mode 100644 Assets/Scripts/Editor/PropertyDrawers/AnimatorParamPropertyDrawer.cs create mode 100644 Assets/Scripts/Editor/PropertyDrawers/AnimatorParamPropertyDrawer.cs.meta create mode 100644 Assets/Scripts/Editor/PropertyDrawers/ConditionalDisplayPropertyDrawer.cs create mode 100644 Assets/Scripts/Editor/PropertyDrawers/ConditionalDisplayPropertyDrawer.cs.meta create mode 100644 Assets/Scripts/Editor/PropertyDrawers/DurationPropertyDrawer.cs create mode 100644 Assets/Scripts/Editor/PropertyDrawers/DurationPropertyDrawer.cs.meta create mode 100644 Assets/Scripts/Extension/Editor.cs create mode 100644 Assets/Scripts/Extension/Editor.cs.meta create mode 100644 Assets/Scripts/System/Attributes.meta create mode 100644 Assets/Scripts/System/Attributes/AnimatorParamAttribute.cs create mode 100644 Assets/Scripts/System/Attributes/AnimatorParamAttribute.cs.meta create mode 100644 Assets/Scripts/System/Attributes/ButtonAttribute.cs create mode 100644 Assets/Scripts/System/Attributes/ButtonAttribute.cs.meta create mode 100644 Assets/Scripts/System/Attributes/ConditionalDisplayAttribute.cs create mode 100644 Assets/Scripts/System/Attributes/ConditionalDisplayAttribute.cs.meta create mode 100644 Assets/Scripts/System/Attributes/ShowIfAttribute.cs create mode 100644 Assets/Scripts/System/Attributes/ShowIfAttribute.cs.meta create mode 100644 Assets/Scripts/System/SerializableDuration.cs create mode 100644 Assets/Scripts/System/SerializableDuration.cs.meta create mode 100644 Assets/Scripts/UI/Effect.meta create mode 100644 Assets/Scripts/UI/Effect/FadeEffect.cs create mode 100644 Assets/Scripts/UI/Effect/FadeEffect.cs.meta create mode 100644 Assets/Scripts/UI/Effect/IUIEffect.cs create mode 100644 Assets/Scripts/UI/Effect/IUIEffect.cs.meta create mode 100644 Assets/Scripts/UI/Notification.cs create mode 100644 Assets/Scripts/UI/Notification.cs.meta create mode 100644 Assets/UI/New Transition Effect.asset create mode 100644 Assets/UI/New Transition Effect.asset.meta create mode 100644 Assets/UI/global.uss create mode 100644 Assets/UI/global.uss.meta diff --git a/Assets/Animation/Door.controller b/Assets/Animation/Door.controller index 6366806..24ddd18 100644 --- a/Assets/Animation/Door.controller +++ b/Assets/Animation/Door.controller @@ -9,8 +9,8 @@ AnimatorController: m_Name: Door serializedVersion: 5 m_AnimatorParameters: - - m_Name: Slide - m_Type: 9 + - m_Name: SlideOpen + m_Type: 4 m_DefaultFloat: 0 m_DefaultInt: 0 m_DefaultBool: 0 @@ -90,8 +90,8 @@ AnimatorStateTransition: m_PrefabAsset: {fileID: 0} m_Name: m_Conditions: - - m_ConditionMode: 1 - m_ConditionEvent: Slide + - m_ConditionMode: 2 + m_ConditionEvent: SlideOpen m_EventTreshold: 0 m_DstStateMachine: {fileID: 0} m_DstState: {fileID: 6558265478478358952} @@ -144,7 +144,7 @@ AnimatorStateTransition: m_Name: m_Conditions: - m_ConditionMode: 1 - m_ConditionEvent: Slide + m_ConditionEvent: SlideOpen m_EventTreshold: 0 m_DstStateMachine: {fileID: 0} m_DstState: {fileID: 671522036267396356} diff --git a/Assets/Canto URP Renderer.asset b/Assets/Canto URP Renderer.asset index 8b01697..76a3f0b 100644 --- a/Assets/Canto URP Renderer.asset +++ b/Assets/Canto URP Renderer.asset @@ -26,7 +26,9 @@ MonoBehaviour: probeVolumeBlendStatesCS: {fileID: 0} m_RendererFeatures: - {fileID: 601012607912154617} - m_RendererFeatureMap: f9952258c8395708 + - {fileID: 2009467652837663262} + - {fileID: 5739553122425761206} + m_RendererFeatureMap: f9952258c83957081ee206032f10e31bb6edabc727fda64f m_UseNativeRenderPass: 0 xrSystemData: {fileID: 0} postProcessData: {fileID: 11400000, guid: 41439944d30ece34e96484bdb6645b55, type: 2} @@ -45,9 +47,9 @@ MonoBehaviour: failOperation: 0 zFailOperation: 0 m_ShadowTransparentReceive: 1 - m_RenderingMode: 2 + m_RenderingMode: 0 m_DepthPrimingMode: 0 - m_CopyDepthMode: 1 + m_CopyDepthMode: 0 m_DepthAttachmentFormat: 0 m_DepthTextureFormat: 0 m_AccurateGbufferNormals: 0 @@ -78,3 +80,87 @@ MonoBehaviour: BlurQuality: 0 Falloff: 100 SampleCount: -1 +--- !u!114 &2009467652837663262 +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: 6b3d386ba5cd94485973aee1479b272e, type: 3} + m_Name: Occluded + m_EditorClassIdentifier: + m_Active: 1 + settings: + passTag: Occluded + Event: 300 + filterSettings: + RenderQueueType: 0 + LayerMask: + serializedVersion: 2 + m_Bits: 64 + PassNames: [] + overrideMaterial: {fileID: 2100000, guid: da1349e47d5d84cbd921f72293a96c87, type: 2} + overrideMaterialPassIndex: 0 + overrideShader: {fileID: 0} + overrideShaderPassIndex: 0 + overrideMode: 1 + overrideDepthState: 1 + depthCompareFunction: 5 + enableWrite: 0 + stencilSettings: + overrideStencilState: 0 + stencilReference: 0 + stencilCompareFunction: 8 + passOperation: 0 + failOperation: 0 + zFailOperation: 0 + cameraSettings: + overrideCamera: 0 + restoreCamera: 1 + offset: {x: 0, y: 0, z: 0, w: 0} + cameraFieldOfView: 60 +--- !u!114 &5739553122425761206 +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: 6b3d386ba5cd94485973aee1479b272e, type: 3} + m_Name: NotOccluded + m_EditorClassIdentifier: + m_Active: 1 + settings: + passTag: NotOccluded + Event: 300 + filterSettings: + RenderQueueType: 0 + LayerMask: + serializedVersion: 2 + m_Bits: 64 + PassNames: [] + overrideMaterial: {fileID: 0} + overrideMaterialPassIndex: 0 + overrideShader: {fileID: 0} + overrideShaderPassIndex: 0 + overrideMode: 1 + overrideDepthState: 1 + depthCompareFunction: 4 + enableWrite: 1 + stencilSettings: + overrideStencilState: 0 + stencilReference: 0 + stencilCompareFunction: 8 + passOperation: 0 + failOperation: 0 + zFailOperation: 0 + cameraSettings: + overrideCamera: 0 + restoreCamera: 1 + offset: {x: 0, y: 0, z: 0, w: 0} + cameraFieldOfView: 60 diff --git a/Assets/DefaultEditor.cs b/Assets/DefaultEditor.cs deleted file mode 100644 index fe64480..0000000 --- a/Assets/DefaultEditor.cs +++ /dev/null @@ -1,30 +0,0 @@ -using UnityEngine; -using UnityEditor; -using UnityEngine.UIElements; -using UnityEditor.UIElements; - -[CustomEditor(typeof(Object), true, isFallback = true)] -public class DefaultEditor : Editor -{ - public override VisualElement CreateInspectorGUI() - { - var container = new VisualElement(); - - var iterator = serializedObject.GetIterator(); - if (iterator.NextVisible(true)) - { - do - { - var propertyField = new PropertyField(iterator.Copy()) { name = "PropertyField:" + iterator.propertyPath }; - - if (iterator.propertyPath == "m_Script" && serializedObject.targetObject != null) - propertyField.SetEnabled(value: false); - - container.Add(propertyField); - } - while (iterator.NextVisible(false)); - } - - return container; - } -} diff --git a/Assets/DefaultEditor.cs.meta b/Assets/DefaultEditor.cs.meta deleted file mode 100644 index 6284409..0000000 --- a/Assets/DefaultEditor.cs.meta +++ /dev/null @@ -1,2 +0,0 @@ -fileFormatVersion: 2 -guid: b9af3c2b0b924c5a6a45c4788726c0be \ No newline at end of file diff --git a/Assets/Rendering/Shaders/DitherLit.shadergraph b/Assets/Rendering/Shaders/DitherLit.shadergraph new file mode 100644 index 0000000..f2ca059 --- /dev/null +++ b/Assets/Rendering/Shaders/DitherLit.shadergraph @@ -0,0 +1,3869 @@ +{ + "m_SGVersion": 3, + "m_Type": "UnityEditor.ShaderGraph.GraphData", + "m_ObjectId": "be9f8a302e7b4b1693830a5fa2335cb5", + "m_Properties": [ + { + "m_Id": "6c00618c153b4c8fbf3c96b4e6c64054" + }, + { + "m_Id": "c5b34576fd8649fa91c107cc2aea6277" + }, + { + "m_Id": "796405ae879142a5b8d5e4d435fa3c6e" + }, + { + "m_Id": "a762b8eb434d4d3fb0c6f61faad3bfc3" + }, + { + "m_Id": "1d9f48fce38548f0af3b7eee82ded42e" + }, + { + "m_Id": "1a152d974bfa4520b72de3fda1d43e4d" + }, + { + "m_Id": "3f2196fd68c14145802894465a7f151f" + }, + { + "m_Id": "79a29ec2abd44f69b010bd974f1a9b38" + }, + { + "m_Id": "641152c877b44dc4a07213d0b053514c" + }, + { + "m_Id": "53ead90ab3f643059cc2f257ae6a4aad" + } + ], + "m_Keywords": [], + "m_Dropdowns": [], + "m_CategoryData": [ + { + "m_Id": "5b4ee4eae4a84f3081509e46b505bbd7" + }, + { + "m_Id": "39d6e71889664a32b0b6dbb629f930d2" + }, + { + "m_Id": "f0ac9295c56b4a44b0c2db2909bc9ac6" + }, + { + "m_Id": "95553cb75942402db7a0b2db912c702c" + }, + { + "m_Id": "132c02597423464fa05af00efd4581fb" + }, + { + "m_Id": "1e2d4137af3641068da1eae850d2d1be" + }, + { + "m_Id": "ee74ff06490c415580d6853ceb3afa69" + }, + { + "m_Id": "0a21d6cdf9ec4eb497975907094b6eb8" + } + ], + "m_Nodes": [ + { + "m_Id": "a352b2e856ff443aaac44c0534126146" + }, + { + "m_Id": "bb2fad3d7e1a475d84ec6209395fe0a9" + }, + { + "m_Id": "16168846fbd54e07b8a30745affb32de" + }, + { + "m_Id": "b0081dbcfad3417ab5b19771810a218f" + }, + { + "m_Id": "267a20c0dea74203b5b23029fb2e17d1" + }, + { + "m_Id": "dc227ad12736457ba893aa6ad1ce41c2" + }, + { + "m_Id": "00311e469f6f45aba1d2c5b2198478a0" + }, + { + "m_Id": "756712fba89b49808c6efdb2ddb6ec7a" + }, + { + "m_Id": "1cd72896bd914789b0cc4cc80af0850a" + }, + { + "m_Id": "47997da48bb54307bd066561ed772527" + }, + { + "m_Id": "fa82e18ce46142d894bf50fc0df8a612" + }, + { + "m_Id": "9597692479c84696af81817d622281b7" + }, + { + "m_Id": "22c862acf3024f76a21b076af8089c1f" + }, + { + "m_Id": "1b7b93b29a6c4d21bf6699cce0dd6dde" + }, + { + "m_Id": "9a70201a33ea4ee4adb5ef88fab40de8" + }, + { + "m_Id": "919b15e9cfbc4c5aa6722d507131e233" + }, + { + "m_Id": "35553e5347bb46648f8fee2c9b4d4f61" + }, + { + "m_Id": "06340804d4224e87969cf7d37320f9df" + }, + { + "m_Id": "9449b1ea77db4c339b598a56cd902b45" + }, + { + "m_Id": "d0b3a42946b34159814bf7f494583f2b" + }, + { + "m_Id": "028c648f68e1431a91c8a72ee2566e6a" + }, + { + "m_Id": "43a819c6beaa4e5db0b236b069a8501b" + }, + { + "m_Id": "ea9a6e5a08fc4759b2f1b9ca1cd67d81" + }, + { + "m_Id": "c2676ea48ab84f9fbce04452ae03f96b" + }, + { + "m_Id": "d58632d7c4864919ad66d2f186ac6cee" + }, + { + "m_Id": "658ec1fdb9014e05b2c5b2f9d8f4cd88" + }, + { + "m_Id": "939bd5d2fa2c4c0790fe5c05818540d5" + }, + { + "m_Id": "11b1e1e464564319abcfa22581e912ba" + }, + { + "m_Id": "db6d79a69c5244f6b23b4a3a38f0bf86" + }, + { + "m_Id": "784acc8191b7409d93bf069be55f2720" + }, + { + "m_Id": "bbfd02fe84d54255885a8ba7db74a189" + }, + { + "m_Id": "a5e62ecf6feb41ac8425068c4d3d4ed7" + } + ], + "m_GroupDatas": [], + "m_StickyNoteDatas": [], + "m_Edges": [ + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "028c648f68e1431a91c8a72ee2566e6a" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "d0b3a42946b34159814bf7f494583f2b" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "06340804d4224e87969cf7d37320f9df" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "267a20c0dea74203b5b23029fb2e17d1" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "11b1e1e464564319abcfa22581e912ba" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "db6d79a69c5244f6b23b4a3a38f0bf86" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "1b7b93b29a6c4d21bf6699cce0dd6dde" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "919b15e9cfbc4c5aa6722d507131e233" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "1b7b93b29a6c4d21bf6699cce0dd6dde" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "b0081dbcfad3417ab5b19771810a218f" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "22c862acf3024f76a21b076af8089c1f" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "1b7b93b29a6c4d21bf6699cce0dd6dde" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "35553e5347bb46648f8fee2c9b4d4f61" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "756712fba89b49808c6efdb2ddb6ec7a" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "43a819c6beaa4e5db0b236b069a8501b" + }, + "m_SlotId": 4 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "1cd72896bd914789b0cc4cc80af0850a" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "658ec1fdb9014e05b2c5b2f9d8f4cd88" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "fa82e18ce46142d894bf50fc0df8a612" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "784acc8191b7409d93bf069be55f2720" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "dc227ad12736457ba893aa6ad1ce41c2" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "919b15e9cfbc4c5aa6722d507131e233" + }, + "m_SlotId": 4 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "47997da48bb54307bd066561ed772527" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "939bd5d2fa2c4c0790fe5c05818540d5" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "db6d79a69c5244f6b23b4a3a38f0bf86" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "9449b1ea77db4c339b598a56cd902b45" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "06340804d4224e87969cf7d37320f9df" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "9597692479c84696af81817d622281b7" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "22c862acf3024f76a21b076af8089c1f" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "9a70201a33ea4ee4adb5ef88fab40de8" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "1b7b93b29a6c4d21bf6699cce0dd6dde" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "a5e62ecf6feb41ac8425068c4d3d4ed7" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "00311e469f6f45aba1d2c5b2198478a0" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "bbfd02fe84d54255885a8ba7db74a189" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "784acc8191b7409d93bf069be55f2720" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "c2676ea48ab84f9fbce04452ae03f96b" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "06340804d4224e87969cf7d37320f9df" + }, + "m_SlotId": 2 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "c2676ea48ab84f9fbce04452ae03f96b" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "22c862acf3024f76a21b076af8089c1f" + }, + "m_SlotId": 2 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "c2676ea48ab84f9fbce04452ae03f96b" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "43a819c6beaa4e5db0b236b069a8501b" + }, + "m_SlotId": 2 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "c2676ea48ab84f9fbce04452ae03f96b" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "d0b3a42946b34159814bf7f494583f2b" + }, + "m_SlotId": 2 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "d0b3a42946b34159814bf7f494583f2b" + }, + "m_SlotId": 4 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "784acc8191b7409d93bf069be55f2720" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "d58632d7c4864919ad66d2f186ac6cee" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "c2676ea48ab84f9fbce04452ae03f96b" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "db6d79a69c5244f6b23b4a3a38f0bf86" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "658ec1fdb9014e05b2c5b2f9d8f4cd88" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "ea9a6e5a08fc4759b2f1b9ca1cd67d81" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "43a819c6beaa4e5db0b236b069a8501b" + }, + "m_SlotId": 1 + } + } + ], + "m_VertexContext": { + "m_Position": { + "x": 336.0000305175781, + "y": 166.0 + }, + "m_Blocks": [ + { + "m_Id": "a352b2e856ff443aaac44c0534126146" + }, + { + "m_Id": "bb2fad3d7e1a475d84ec6209395fe0a9" + }, + { + "m_Id": "16168846fbd54e07b8a30745affb32de" + } + ] + }, + "m_FragmentContext": { + "m_Position": { + "x": 336.0000305175781, + "y": 366.0000305175781 + }, + "m_Blocks": [ + { + "m_Id": "b0081dbcfad3417ab5b19771810a218f" + }, + { + "m_Id": "47997da48bb54307bd066561ed772527" + }, + { + "m_Id": "756712fba89b49808c6efdb2ddb6ec7a" + }, + { + "m_Id": "267a20c0dea74203b5b23029fb2e17d1" + }, + { + "m_Id": "dc227ad12736457ba893aa6ad1ce41c2" + }, + { + "m_Id": "1cd72896bd914789b0cc4cc80af0850a" + }, + { + "m_Id": "00311e469f6f45aba1d2c5b2198478a0" + }, + { + "m_Id": "fa82e18ce46142d894bf50fc0df8a612" + } + ] + }, + "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": "2058859781dc4fef8f5d8c986563a27d" + } + ] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "00311e469f6f45aba1d2c5b2198478a0", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.Smoothness", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 355.99993896484377, + "y": 648.9999389648438, + "width": 200.0, + "height": 41.0 + } + }, + "m_Slots": [ + { + "m_Id": "de92b8244e244aa39783b2645bbe4b3b" + } + ], + "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.DynamicValueMaterialSlot", + "m_ObjectId": "01c5f57c90cf44089ffa9babc9ed2500", + "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": "028c648f68e1431a91c8a72ee2566e6a", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -784.0000610351563, + "y": 560.0000610351563, + "width": 167.00006103515626, + "height": 34.0 + } + }, + "m_Slots": [ + { + "m_Id": "beb39f7d9a574fd0bc5c200e28df1b4e" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "1d9f48fce38548f0af3b7eee82ded42e" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SampleTexture2DNode", + "m_ObjectId": "06340804d4224e87969cf7d37320f9df", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Sample Texture 2D", + "m_DrawState": { + "m_Expanded": false, + "m_Position": { + "serializedVersion": "2", + "x": -351.9999694824219, + "y": 358.9999694824219, + "width": 180.0, + "height": 152.99996948242188 + } + }, + "m_Slots": [ + { + "m_Id": "374cf5740fe946a7b899cebd76181fd3" + }, + { + "m_Id": "61e36081cd324802b3b6736353dea9f1" + }, + { + "m_Id": "6c2216ab44c64abea9a8558ce14797e5" + }, + { + "m_Id": "e3522ab943144fda82c1acbaf3a9cf58" + }, + { + "m_Id": "1a50b9b5725446c2ab7b00c2ef3dcd5d" + }, + { + "m_Id": "447138af414f4a218148fb67bad33f91" + }, + { + "m_Id": "f357b97ec778442697bf1701ed6f0666" + }, + { + "m_Id": "dadd62137cf14eb5b6d24f391e4ac624" + } + ], + "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.DynamicVectorMaterialSlot", + "m_ObjectId": "0659e4c5b0ea4e9a8b3aafb366ac5cf9", + "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": "09f19470e7c1411183a2d0db387b4ade", + "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.CategoryData", + "m_ObjectId": "0a21d6cdf9ec4eb497975907094b6eb8", + "m_Name": "Alpha", + "m_ChildObjectList": [ + { + "m_Id": "79a29ec2abd44f69b010bd974f1a9b38" + }, + { + "m_Id": "3f2196fd68c14145802894465a7f151f" + } + ] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SamplerStateMaterialSlot", + "m_ObjectId": "0a91e067f5fb4ee599e7c00d1ec7f48b", + "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.SamplerStateMaterialSlot", + "m_ObjectId": "0b5b235eac574abbac536d88ac2e767e", + "m_Id": 2, + "m_DisplayName": "HeightmapSampler", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "HeightmapSampler", + "m_StageCapability": 3, + "m_BareResource": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "0c5b0595e01c4647b7d59e35440efdff", + "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": "0dc5a07bb3a644a6b9a41b5dd3056b11", + "m_Id": 0, + "m_DisplayName": "Smoothness", + "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": "11b1e1e464564319abcfa22581e912ba", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -674.9999389648438, + "y": 1078.9998779296875, + "width": 132.0, + "height": 34.0 + } + }, + "m_Slots": [ + { + "m_Id": "c1a7254413d4457da5aff282a0600f4b" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "79a29ec2abd44f69b010bd974f1a9b38" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.CategoryData", + "m_ObjectId": "132c02597423464fa05af00efd4581fb", + "m_Name": "Metallic", + "m_ChildObjectList": [ + { + "m_Id": "1d9f48fce38548f0af3b7eee82ded42e" + }, + { + "m_Id": "641152c877b44dc4a07213d0b053514c" + } + ] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "16168846fbd54e07b8a30745affb32de", + "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": "fe666d7524434e7b9608c7c5fed7df9e" + } + ], + "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.Vector4MaterialSlot", + "m_ObjectId": "16b12ecd5f8e4935a1bb53f9f538a757", + "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.Internal.Texture2DShaderProperty", + "m_ObjectId": "1a152d974bfa4520b72de3fda1d43e4d", + "m_Guid": { + "m_GuidSerialized": "64d9e4a8-8289-42c3-a18c-11df6d776315" + }, + "m_Name": "Ambient Occlusion Texture", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "Ambient Occlusion Texture", + "m_DefaultReferenceName": "_Ambient_Occlusion_Texture", + "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, + "useTexelSize": true, + "m_Modifiable": true, + "m_DefaultType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "1a50b9b5725446c2ab7b00c2ef3dcd5d", + "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": "1b140e6f1d3a4106b64c4b09ecc9a969", + "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.5, + "y": 0.5, + "z": 0.5 + }, + "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": "1b7b93b29a6c4d21bf6699cce0dd6dde", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Multiply", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -447.0000305175781, + "y": 140.0, + "width": 130.0, + "height": 118.0 + } + }, + "m_Slots": [ + { + "m_Id": "2b6295e1ed6d4544a70bdf03594be3ab" + }, + { + "m_Id": "445b609aef71411c84053c291edf12e9" + }, + { + "m_Id": "ecccf028f9c3426e821a21583685e540" + } + ], + "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", + "m_ObjectId": "1c15080e305a42ec93df0a29880079cb", + "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": "1cd72896bd914789b0cc4cc80af0850a", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.Occlusion", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 343.9999694824219, + "y": 602.0, + "width": 200.00003051757813, + "height": 41.0 + } + }, + "m_Slots": [ + { + "m_Id": "71a4ccd1e31e424895c1e3ea5eb64c5c" + } + ], + "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.Internal.Texture2DShaderProperty", + "m_ObjectId": "1d9f48fce38548f0af3b7eee82ded42e", + "m_Guid": { + "m_GuidSerialized": "c5c91f8e-1c25-4a5e-ad57-6b5dc5dff8e6" + }, + "m_Name": "Metallic Texture", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "Metallic Texture", + "m_DefaultReferenceName": "_Metallic_Texture", + "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, + "useTexelSize": true, + "m_Modifiable": true, + "m_DefaultType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.CategoryData", + "m_ObjectId": "1e2d4137af3641068da1eae850d2d1be", + "m_Name": "Ambient Occlusion", + "m_ChildObjectList": [ + { + "m_Id": "1a152d974bfa4520b72de3fda1d43e4d" + } + ] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "1f2ba9c3ec064888a40d767f00d0e5ac", + "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.Rendering.Universal.ShaderGraph.UniversalTarget", + "m_ObjectId": "2058859781dc4fef8f5d8c986563a27d", + "m_Datas": [], + "m_ActiveSubTarget": { + "m_Id": "619767803a894c199ae78a8f866f5c49" + }, + "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_DisableTint": false, + "m_AdditionalMotionVectorMode": 0, + "m_AlembicMotionVectors": false, + "m_SupportsLODCrossFade": false, + "m_CustomEditorGUI": "", + "m_SupportVFX": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SampleTexture2DNode", + "m_ObjectId": "22c862acf3024f76a21b076af8089c1f", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Sample Texture 2D", + "m_DrawState": { + "m_Expanded": false, + "m_Position": { + "serializedVersion": "2", + "x": -649.0000610351563, + "y": 163.99998474121095, + "width": 180.00006103515626, + "height": 177.00001525878907 + } + }, + "m_Slots": [ + { + "m_Id": "16b12ecd5f8e4935a1bb53f9f538a757" + }, + { + "m_Id": "5092dfd80a44414d9050f68bb6146578" + }, + { + "m_Id": "f4df60bdf280477280357faeea1d434c" + }, + { + "m_Id": "5bfb5fefe2ec435bb484578930f18c0a" + }, + { + "m_Id": "09f19470e7c1411183a2d0db387b4ade" + }, + { + "m_Id": "8f38f02b4ac84b93862c213c5956a609" + }, + { + "m_Id": "927641772f9c4b829372e34f035ce360" + }, + { + "m_Id": "35f0062287ef40bfb493a44da438c87a" + } + ], + "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.BlockNode", + "m_ObjectId": "267a20c0dea74203b5b23029fb2e17d1", + "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": "608e013f82554dc3ac47c3b85b76b42d" + } + ], + "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.DynamicValueMaterialSlot", + "m_ObjectId": "2b6295e1ed6d4544a70bdf03594be3ab", + "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": "32aab1ee14304768a67887b739d847d4", + "m_Id": 0, + "m_DisplayName": "Metallic Intensity", + "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": "34480070f2cd4976890e12cb2ee80f92", + "m_Id": 4, + "m_DisplayName": "UVs", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "UVs", + "m_StageCapability": 2, + "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": "35553e5347bb46648f8fee2c9b4d4f61", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -322.0000305175781, + "y": 324.9999694824219, + "width": 149.99996948242188, + "height": 34.000030517578128 + } + }, + "m_Slots": [ + { + "m_Id": "fa156a9c202d4c5293628dba41688588" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "796405ae879142a5b8d5e4d435fa3c6e" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SamplerStateMaterialSlot", + "m_ObjectId": "35f0062287ef40bfb493a44da438c87a", + "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.Vector4MaterialSlot", + "m_ObjectId": "374cf5740fe946a7b899cebd76181fd3", + "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": "37cfbb7303d04ffeb0c6d129529852b9", + "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.CategoryData", + "m_ObjectId": "39d6e71889664a32b0b6dbb629f930d2", + "m_Name": "Base Map", + "m_ChildObjectList": [ + { + "m_Id": "6c00618c153b4c8fbf3c96b4e6c64054" + }, + { + "m_Id": "c5b34576fd8649fa91c107cc2aea6277" + } + ] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "3aed6b98056d4d75901a408651300704", + "m_Id": 3, + "m_DisplayName": "Amplitude", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Amplitude", + "m_StageCapability": 2, + "m_Value": 1.0, + "m_DefaultValue": 1.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.ScreenPositionMaterialSlot", + "m_ObjectId": "3e45fbdbfa4d4628b91ec71c0710c8b0", + "m_Id": 1, + "m_DisplayName": "Screen Position", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "ScreenPosition", + "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_ScreenSpaceType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "3e7051ead7034cf1b9be9d9d10c115c4", + "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.Internal.Texture2DShaderProperty", + "m_ObjectId": "3f2196fd68c14145802894465a7f151f", + "m_Guid": { + "m_GuidSerialized": "6dc482ae-52a2-4b69-be94-01077f3a862d" + }, + "m_Name": "Heightmap Texture", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "Heightmap Texture", + "m_DefaultReferenceName": "_Heightmap_Texture", + "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, + "useTexelSize": true, + "m_Modifiable": true, + "m_DefaultType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SampleTexture2DNode", + "m_ObjectId": "43a819c6beaa4e5db0b236b069a8501b", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Sample Texture 2D", + "m_DrawState": { + "m_Expanded": false, + "m_Position": { + "serializedVersion": "2", + "x": -328.0001220703125, + "y": 655.0000610351563, + "width": 156.00001525878907, + "height": 177.0 + } + }, + "m_Slots": [ + { + "m_Id": "84fd51e35cf540f2a9299a5eaa185252" + }, + { + "m_Id": "815de550a8c448aaa9270a00565ec164" + }, + { + "m_Id": "9f9a25de2fe5415ebfb6f59be8d6af0a" + }, + { + "m_Id": "3e7051ead7034cf1b9be9d9d10c115c4" + }, + { + "m_Id": "b3c70bcf2e1b474d8853c789fd6229a8" + }, + { + "m_Id": "487baa3dfe5a4d75ad889d22e929a486" + }, + { + "m_Id": "9b5a8595009b4f51a87ba2d5e969460c" + }, + { + "m_Id": "d12e6f03b0dd44cb9c2654d40bd50e0c" + } + ], + "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.DynamicValueMaterialSlot", + "m_ObjectId": "445b609aef71411c84053c291edf12e9", + "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": "447138af414f4a218148fb67bad33f91", + "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.Vector1MaterialSlot", + "m_ObjectId": "4636f2b929cf4277a527764305e0872c", + "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.BlockNode", + "m_ObjectId": "47997da48bb54307bd066561ed772527", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.Alpha", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 12.000012397766114, + "y": 263.0000305175781, + "width": 199.99996948242188, + "height": 41.0 + } + }, + "m_Slots": [ + { + "m_Id": "528e9820c4ea41cb858f4d4665983032" + } + ], + "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.Texture2DInputMaterialSlot", + "m_ObjectId": "487baa3dfe5a4d75ad889d22e929a486", + "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.Texture2DMaterialSlot", + "m_ObjectId": "4a330e8f63b34919b4439d00cd4dc8fb", + "m_Id": 0, + "m_DisplayName": "Heightmap Texture", + "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": "5092dfd80a44414d9050f68bb6146578", + "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": "528e9820c4ea41cb858f4d4665983032", + "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": 1, + "m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty", + "m_ObjectId": "53ead90ab3f643059cc2f257ae6a4aad", + "m_Guid": { + "m_GuidSerialized": "430fed23-e71c-41c0-8b6a-0dffe77c516e" + }, + "m_Name": "Smoothness", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "Smoothness", + "m_DefaultReferenceName": "_Smoothness", + "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": 1, + "m_RangeValues": { + "x": 0.0, + "y": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "59912c94ecc546e8adcd1b9585b05894", + "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": "5b4ee4eae4a84f3081509e46b505bbd7", + "m_Name": "", + "m_ChildObjectList": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "5bfb5fefe2ec435bb484578930f18c0a", + "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.NormalMaterialSlot", + "m_ObjectId": "608e013f82554dc3ac47c3b85b76b42d", + "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": 2, + "m_Type": "UnityEditor.Rendering.Universal.ShaderGraph.UniversalLitSubTarget", + "m_ObjectId": "619767803a894c199ae78a8f866f5c49", + "m_WorkflowMode": 1, + "m_NormalDropOffSpace": 0, + "m_ClearCoat": false, + "m_BlendModePreserveSpecular": true +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "61e36081cd324802b3b6736353dea9f1", + "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": "641152c877b44dc4a07213d0b053514c", + "m_Guid": { + "m_GuidSerialized": "957d6f57-b1e3-4191-b564-0f77863682be" + }, + "m_Name": "Metallic Intensity", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "Metallic Intensity", + "m_DefaultReferenceName": "_Metallic_Intensity", + "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": 1, + "m_RangeValues": { + "x": 0.0, + "y": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.UVMaterialSlot", + "m_ObjectId": "6450f35a81d64b2eb49a2c4681affe03", + "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": "6515d0f2166e4399908a3b6f59c7a834", + "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.DitherNode", + "m_ObjectId": "658ec1fdb9014e05b2c5b2f9d8f4cd88", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Dither", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -372.9999694824219, + "y": 865.9998779296875, + "width": 200.9999542236328, + "height": 118.00006103515625 + } + }, + "m_Slots": [ + { + "m_Id": "fa87822a3b6440f9810e7f0249b02003" + }, + { + "m_Id": "3e45fbdbfa4d4628b91ec71c0710c8b0" + }, + { + "m_Id": "0659e4c5b0ea4e9a8b3aafb366ac5cf9" + } + ], + "synonyms": [ + "blue noise", + "half tone" + ], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Internal.Texture2DShaderProperty", + "m_ObjectId": "6c00618c153b4c8fbf3c96b4e6c64054", + "m_Guid": { + "m_GuidSerialized": "18b0fa62-a59c-4cf4-bdb5-9df2e6492938" + }, + "m_Name": "Base Texture", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "Base Texture", + "m_DefaultReferenceName": "_Base_Texture", + "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": false, + "useTexelSize": true, + "m_Modifiable": true, + "m_DefaultType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "6c2216ab44c64abea9a8558ce14797e5", + "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": "71a4ccd1e31e424895c1e3ea5eb64c5c", + "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": "756712fba89b49808c6efdb2ddb6ec7a", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.Emission", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 355.0, + "y": 495.0, + "width": 200.0, + "height": 41.0 + } + }, + "m_Slots": [ + { + "m_Id": "badc461b712b4585bee0344ce039cb6e" + } + ], + "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.NormalMaterialSlot", + "m_ObjectId": "7694bfc436374d4e83600ea058006bcb", + "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.MultiplyNode", + "m_ObjectId": "784acc8191b7409d93bf069be55f2720", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Multiply", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -298.00006103515627, + "y": 537.0000610351563, + "width": 125.99996948242188, + "height": 118.0 + } + }, + "m_Slots": [ + { + "m_Id": "f7617bb2dbed4e17abc895c0be4bb48e" + }, + { + "m_Id": "59912c94ecc546e8adcd1b9585b05894" + }, + { + "m_Id": "01c5f57c90cf44089ffa9babc9ed2500" + } + ], + "synonyms": [ + "multiplication", + "times", + "x" + ], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 3, + "m_Type": "UnityEditor.ShaderGraph.Internal.ColorShaderProperty", + "m_ObjectId": "796405ae879142a5b8d5e4d435fa3c6e", + "m_Guid": { + "m_GuidSerialized": "bfb849d8-c7f6-40f9-a4b3-9dd676ab7249" + }, + "m_Name": "Emissive Color", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "Emissive Color", + "m_DefaultReferenceName": "_Emissive_Color", + "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": 1.0 + }, + "isMainColor": false, + "m_ColorMode": 1 +} + +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty", + "m_ObjectId": "79a29ec2abd44f69b010bd974f1a9b38", + "m_Guid": { + "m_GuidSerialized": "0fb28af4-e7c8-4c77-b214-1d389b62f31f" + }, + "m_Name": "Dither Size", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "Dither Size", + "m_DefaultReferenceName": "_Dither_Size", + "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": 2, + "m_RangeValues": { + "x": 0.0, + "y": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", + "m_ObjectId": "7dc364a6152740c99e90ee5a9a58fdb3", + "m_Id": 1, + "m_DisplayName": "Heightmap", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Heightmap", + "m_StageCapability": 2, + "m_BareResource": false, + "m_Texture": { + "m_SerializedTexture": "", + "m_Guid": "" + }, + "m_DefaultType": 1 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "815de550a8c448aaa9270a00565ec164", + "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.Vector4MaterialSlot", + "m_ObjectId": "84fd51e35cf540f2a9299a5eaa185252", + "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.Texture2DInputMaterialSlot", + "m_ObjectId": "8f38f02b4ac84b93862c213c5956a609", + "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.SplitNode", + "m_ObjectId": "919b15e9cfbc4c5aa6722d507131e233", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Split", + "m_DrawState": { + "m_Expanded": false, + "m_Position": { + "serializedVersion": "2", + "x": -291.00006103515627, + "y": 247.99996948242188, + "width": 119.0, + "height": 77.0 + } + }, + "m_Slots": [ + { + "m_Id": "fb8f193663db4b0d85cd63f88d8e5009" + }, + { + "m_Id": "4636f2b929cf4277a527764305e0872c" + }, + { + "m_Id": "f69eaf9be50d42a391dd58f15b5ba707" + }, + { + "m_Id": "6515d0f2166e4399908a3b6f59c7a834" + }, + { + "m_Id": "cd67a953f70c4946ba1b3b32972dd35a" + } + ], + "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.UVMaterialSlot", + "m_ObjectId": "927641772f9c4b829372e34f035ce360", + "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.ScreenPositionNode", + "m_ObjectId": "939bd5d2fa2c4c0790fe5c05818540d5", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Screen Position", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -687.9999389648438, + "y": 950.9999389648438, + "width": 145.0, + "height": 127.99993896484375 + } + }, + "m_Slots": [ + { + "m_Id": "9e38229effb543ef805b04af7dbcbe69" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_ScreenSpaceType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "9449b1ea77db4c339b598a56cd902b45", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -515.9999389648438, + "y": 398.9999694824219, + "width": 163.99996948242188, + "height": 33.999969482421878 + } + }, + "m_Slots": [ + { + "m_Id": "e5572135602249519ae18c8a641ad324" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "a762b8eb434d4d3fb0c6f61faad3bfc3" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.CategoryData", + "m_ObjectId": "95553cb75942402db7a0b2db912c702c", + "m_Name": "Normal", + "m_ChildObjectList": [ + { + "m_Id": "a762b8eb434d4d3fb0c6f61faad3bfc3" + } + ] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "9597692479c84696af81817d622281b7", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -798.0, + "y": 206.00001525878907, + "width": 148.99993896484376, + "height": 33.99998474121094 + } + }, + "m_Slots": [ + { + "m_Id": "ef96dfec0e72404285d9e366d449fba6" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "6c00618c153b4c8fbf3c96b4e6c64054" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "9a70201a33ea4ee4adb5ef88fab40de8", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -600.0, + "y": 130.0, + "width": 131.0, + "height": 33.99998474121094 + } + }, + "m_Slots": [ + { + "m_Id": "e7ecb40350cc4a0185b29b567daf5f36" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "c5b34576fd8649fa91c107cc2aea6277" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.UVMaterialSlot", + "m_ObjectId": "9b5a8595009b4f51a87ba2d5e969460c", + "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": "9e38229effb543ef805b04af7dbcbe69", + "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, + "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": "9f9a25de2fe5415ebfb6f59be8d6af0a", + "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.PositionMaterialSlot", + "m_ObjectId": "a2ea6185d5c94777a844d3c8d50afbac", + "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.BlockNode", + "m_ObjectId": "a352b2e856ff443aaac44c0534126146", + "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": "a2ea6185d5c94777a844d3c8d50afbac" + } + ], + "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.PropertyNode", + "m_ObjectId": "a5e62ecf6feb41ac8425068c4d3d4ed7", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -312.0, + "y": 832.0001220703125, + "width": 139.9999542236328, + "height": 33.99993896484375 + } + }, + "m_Slots": [ + { + "m_Id": "0dc5a07bb3a644a6b9a41b5dd3056b11" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "53ead90ab3f643059cc2f257ae6a4aad" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Internal.Texture2DShaderProperty", + "m_ObjectId": "a762b8eb434d4d3fb0c6f61faad3bfc3", + "m_Guid": { + "m_GuidSerialized": "c7365e33-f5ec-437a-b159-2f538fabde94" + }, + "m_Name": "Normal Texture", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "Normal Texture", + "m_DefaultReferenceName": "_Normal_Texture", + "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, + "useTexelSize": true, + "m_Modifiable": true, + "m_DefaultType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "addfd0a18de24587857056fc6b161fd7", + "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.Texture2DInputMaterialSlot", + "m_ObjectId": "afd83446a9d4467f86127a5583ed4d06", + "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": "b0081dbcfad3417ab5b19771810a218f", + "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": "1b140e6f1d3a4106b64c4b09ecc9a969" + } + ], + "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.Vector2MaterialSlot", + "m_ObjectId": "b2ab9af5998144b7a1d4c5916a92eb22", + "m_Id": 0, + "m_DisplayName": "ParallaxUVs", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "ParallaxUVs", + "m_StageCapability": 2, + "m_Value": { + "x": 0.0, + "y": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "b3c70bcf2e1b474d8853c789fd6229a8", + "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": "badc461b712b4585bee0344ce039cb6e", + "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.BlockNode", + "m_ObjectId": "bb2fad3d7e1a475d84ec6209395fe0a9", + "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": "7694bfc436374d4e83600ea058006bcb" + } + ], + "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.PropertyNode", + "m_ObjectId": "bbfd02fe84d54255885a8ba7db74a189", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -461.00006103515627, + "y": 596.0000610351563, + "width": 163.0, + "height": 34.0 + } + }, + "m_Slots": [ + { + "m_Id": "32aab1ee14304768a67887b739d847d4" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "641152c877b44dc4a07213d0b053514c" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DMaterialSlot", + "m_ObjectId": "beb39f7d9a574fd0bc5c200e28df1b4e", + "m_Id": 0, + "m_DisplayName": "Metallic Texture", + "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": "c1a7254413d4457da5aff282a0600f4b", + "m_Id": 0, + "m_DisplayName": "Dither Size", + "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": "c23e98f88cb04b1f8c87c14aacef706f", + "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.ParallaxMappingNode", + "m_ObjectId": "c2676ea48ab84f9fbce04452ae03f96b", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Parallax Mapping", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -1269.0001220703125, + "y": 596.0000610351563, + "width": 272.00006103515627, + "height": 183.0 + } + }, + "m_Slots": [ + { + "m_Id": "7dc364a6152740c99e90ee5a9a58fdb3" + }, + { + "m_Id": "0b5b235eac574abbac536d88ac2e767e" + }, + { + "m_Id": "3aed6b98056d4d75901a408651300704" + }, + { + "m_Id": "34480070f2cd4976890e12cb2ee80f92" + }, + { + "m_Id": "b2ab9af5998144b7a1d4c5916a92eb22" + } + ], + "synonyms": [ + "offset mapping" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Channel": 1 +} + +{ + "m_SGVersion": 3, + "m_Type": "UnityEditor.ShaderGraph.Internal.ColorShaderProperty", + "m_ObjectId": "c5b34576fd8649fa91c107cc2aea6277", + "m_Guid": { + "m_GuidSerialized": "70b76a61-5ccc-4517-a317-f6354a18c771" + }, + "m_Name": "Base Color", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "Base Color", + "m_DefaultReferenceName": "_Base_Color", + "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": 1.0 + }, + "isMainColor": true, + "m_ColorMode": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "ca16211c01584a2795432ffd83447504", + "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": "cafc525e4af3412888aed545ef29f261", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": { + "x": 2.0, + "y": 2.0, + "z": 2.0, + "w": 2.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": "cd67a953f70c4946ba1b3b32972dd35a", + "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.SampleTexture2DNode", + "m_ObjectId": "d0b3a42946b34159814bf7f494583f2b", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Sample Texture 2D", + "m_DrawState": { + "m_Expanded": false, + "m_Position": { + "serializedVersion": "2", + "x": -617.0, + "y": 517.0000610351563, + "width": 156.0, + "height": 177.0 + } + }, + "m_Slots": [ + { + "m_Id": "ca16211c01584a2795432ffd83447504" + }, + { + "m_Id": "addfd0a18de24587857056fc6b161fd7" + }, + { + "m_Id": "1f2ba9c3ec064888a40d767f00d0e5ac" + }, + { + "m_Id": "1c15080e305a42ec93df0a29880079cb" + }, + { + "m_Id": "0c5b0595e01c4647b7d59e35440efdff" + }, + { + "m_Id": "afd83446a9d4467f86127a5583ed4d06" + }, + { + "m_Id": "6450f35a81d64b2eb49a2c4681affe03" + }, + { + "m_Id": "0a91e067f5fb4ee599e7c00d1ec7f48b" + } + ], + "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.SamplerStateMaterialSlot", + "m_ObjectId": "d12e6f03b0dd44cb9c2654d40bd50e0c", + "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": "d58632d7c4864919ad66d2f186ac6cee", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -1452.0001220703125, + "y": 627.0000610351563, + "width": 183.0, + "height": 34.0 + } + }, + "m_Slots": [ + { + "m_Id": "4a330e8f63b34919b4439d00cd4dc8fb" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "3f2196fd68c14145802894465a7f151f" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SamplerStateMaterialSlot", + "m_ObjectId": "dadd62137cf14eb5b6d24f391e4ac624", + "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.DivideNode", + "m_ObjectId": "db6d79a69c5244f6b23b4a3a38f0bf86", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Divide", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -525.9999389648438, + "y": 950.9999389648438, + "width": 130.00006103515626, + "height": 117.99993896484375 + } + }, + "m_Slots": [ + { + "m_Id": "f6515bf5ef194c94a8b46e19effdc625" + }, + { + "m_Id": "cafc525e4af3412888aed545ef29f261" + }, + { + "m_Id": "ee42545cf5aa42ce88e0262bb705733e" + } + ], + "synonyms": [ + "division", + "divided by" + ], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "dc227ad12736457ba893aa6ad1ce41c2", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.Metallic", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 355.0, + "y": 539.0, + "width": 200.0, + "height": 41.0 + } + }, + "m_Slots": [ + { + "m_Id": "c23e98f88cb04b1f8c87c14aacef706f" + } + ], + "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.Vector1MaterialSlot", + "m_ObjectId": "de92b8244e244aa39783b2645bbe4b3b", + "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": "e3522ab943144fda82c1acbaf3a9cf58", + "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": "e5572135602249519ae18c8a641ad324", + "m_Id": 0, + "m_DisplayName": "Normal Texture", + "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": "e7ecb40350cc4a0185b29b567daf5f36", + "m_Id": 0, + "m_DisplayName": "Base Color", + "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": "ea9a6e5a08fc4759b2f1b9ca1cd67d81", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -552.0001220703125, + "y": 694.0000610351563, + "width": 224.0, + "height": 34.0 + } + }, + "m_Slots": [ + { + "m_Id": "ff9514c709384b7297f6cd58c4394e37" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "1a152d974bfa4520b72de3fda1d43e4d" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "ecccf028f9c3426e821a21583685e540", + "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": "ee42545cf5aa42ce88e0262bb705733e", + "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.CategoryData", + "m_ObjectId": "ee74ff06490c415580d6853ceb3afa69", + "m_Name": "Smoothness", + "m_ChildObjectList": [ + { + "m_Id": "53ead90ab3f643059cc2f257ae6a4aad" + } + ] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DMaterialSlot", + "m_ObjectId": "ef96dfec0e72404285d9e366d449fba6", + "m_Id": 0, + "m_DisplayName": "Base Texture", + "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": "f0ac9295c56b4a44b0c2db2909bc9ac6", + "m_Name": "Emission", + "m_ChildObjectList": [ + { + "m_Id": "796405ae879142a5b8d5e4d435fa3c6e" + } + ] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.UVMaterialSlot", + "m_ObjectId": "f357b97ec778442697bf1701ed6f0666", + "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": "f4df60bdf280477280357faeea1d434c", + "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": "f6515bf5ef194c94a8b46e19effdc625", + "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.Vector1MaterialSlot", + "m_ObjectId": "f69eaf9be50d42a391dd58f15b5ba707", + "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.DynamicValueMaterialSlot", + "m_ObjectId": "f7617bb2dbed4e17abc895c0be4bb48e", + "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": "fa156a9c202d4c5293628dba41688588", + "m_Id": 0, + "m_DisplayName": "Emissive Color", + "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": "fa82e18ce46142d894bf50fc0df8a612", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.AlphaClipThreshold", + "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": "37cfbb7303d04ffeb0c6d129529852b9" + } + ], + "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.DynamicVectorMaterialSlot", + "m_ObjectId": "fa87822a3b6440f9810e7f0249b02003", + "m_Id": 0, + "m_DisplayName": "In", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "In", + "m_StageCapability": 3, + "m_Value": { + "x": 1.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": "fb8f193663db4b0d85cd63f88d8e5009", + "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.TangentMaterialSlot", + "m_ObjectId": "fe666d7524434e7b9608c7c5fed7df9e", + "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.Texture2DMaterialSlot", + "m_ObjectId": "ff9514c709384b7297f6cd58c4394e37", + "m_Id": 0, + "m_DisplayName": "Ambient Occlusion Texture", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_BareResource": false +} + diff --git a/Assets/Rendering/Shaders/DitherLit.shadergraph.meta b/Assets/Rendering/Shaders/DitherLit.shadergraph.meta new file mode 100644 index 0000000..d4890e8 --- /dev/null +++ b/Assets/Rendering/Shaders/DitherLit.shadergraph.meta @@ -0,0 +1,10 @@ +fileFormatVersion: 2 +guid: 4483885d85d0673eca50fecb06d2d533 +ScriptedImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 2 + userData: + assetBundleName: + assetBundleVariant: + script: {fileID: 11500000, guid: 625f186215c104763be7675aa2d941aa, type: 3} diff --git a/Assets/Rendering/Shaders/DitherUnlit.shadergraph b/Assets/Rendering/Shaders/DitherUnlit.shadergraph new file mode 100644 index 0000000..4f5d50a --- /dev/null +++ b/Assets/Rendering/Shaders/DitherUnlit.shadergraph @@ -0,0 +1,1988 @@ +{ + "m_SGVersion": 3, + "m_Type": "UnityEditor.ShaderGraph.GraphData", + "m_ObjectId": "be9f8a302e7b4b1693830a5fa2335cb5", + "m_Properties": [ + { + "m_Id": "6c00618c153b4c8fbf3c96b4e6c64054" + }, + { + "m_Id": "c5b34576fd8649fa91c107cc2aea6277" + }, + { + "m_Id": "3f2196fd68c14145802894465a7f151f" + }, + { + "m_Id": "79a29ec2abd44f69b010bd974f1a9b38" + } + ], + "m_Keywords": [], + "m_Dropdowns": [], + "m_CategoryData": [ + { + "m_Id": "5b4ee4eae4a84f3081509e46b505bbd7" + }, + { + "m_Id": "39d6e71889664a32b0b6dbb629f930d2" + }, + { + "m_Id": "0a21d6cdf9ec4eb497975907094b6eb8" + } + ], + "m_Nodes": [ + { + "m_Id": "a352b2e856ff443aaac44c0534126146" + }, + { + "m_Id": "bb2fad3d7e1a475d84ec6209395fe0a9" + }, + { + "m_Id": "16168846fbd54e07b8a30745affb32de" + }, + { + "m_Id": "b0081dbcfad3417ab5b19771810a218f" + }, + { + "m_Id": "47997da48bb54307bd066561ed772527" + }, + { + "m_Id": "fa82e18ce46142d894bf50fc0df8a612" + }, + { + "m_Id": "9597692479c84696af81817d622281b7" + }, + { + "m_Id": "22c862acf3024f76a21b076af8089c1f" + }, + { + "m_Id": "1b7b93b29a6c4d21bf6699cce0dd6dde" + }, + { + "m_Id": "9a70201a33ea4ee4adb5ef88fab40de8" + }, + { + "m_Id": "919b15e9cfbc4c5aa6722d507131e233" + }, + { + "m_Id": "c2676ea48ab84f9fbce04452ae03f96b" + }, + { + "m_Id": "d58632d7c4864919ad66d2f186ac6cee" + }, + { + "m_Id": "658ec1fdb9014e05b2c5b2f9d8f4cd88" + }, + { + "m_Id": "939bd5d2fa2c4c0790fe5c05818540d5" + }, + { + "m_Id": "11b1e1e464564319abcfa22581e912ba" + }, + { + "m_Id": "db6d79a69c5244f6b23b4a3a38f0bf86" + } + ], + "m_GroupDatas": [], + "m_StickyNoteDatas": [], + "m_Edges": [ + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "11b1e1e464564319abcfa22581e912ba" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "db6d79a69c5244f6b23b4a3a38f0bf86" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "1b7b93b29a6c4d21bf6699cce0dd6dde" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "919b15e9cfbc4c5aa6722d507131e233" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "1b7b93b29a6c4d21bf6699cce0dd6dde" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "b0081dbcfad3417ab5b19771810a218f" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "22c862acf3024f76a21b076af8089c1f" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "1b7b93b29a6c4d21bf6699cce0dd6dde" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "658ec1fdb9014e05b2c5b2f9d8f4cd88" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "fa82e18ce46142d894bf50fc0df8a612" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "919b15e9cfbc4c5aa6722d507131e233" + }, + "m_SlotId": 4 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "47997da48bb54307bd066561ed772527" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "939bd5d2fa2c4c0790fe5c05818540d5" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "db6d79a69c5244f6b23b4a3a38f0bf86" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "9597692479c84696af81817d622281b7" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "22c862acf3024f76a21b076af8089c1f" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "9a70201a33ea4ee4adb5ef88fab40de8" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "1b7b93b29a6c4d21bf6699cce0dd6dde" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "c2676ea48ab84f9fbce04452ae03f96b" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "22c862acf3024f76a21b076af8089c1f" + }, + "m_SlotId": 2 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "d58632d7c4864919ad66d2f186ac6cee" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "c2676ea48ab84f9fbce04452ae03f96b" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "db6d79a69c5244f6b23b4a3a38f0bf86" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "658ec1fdb9014e05b2c5b2f9d8f4cd88" + }, + "m_SlotId": 1 + } + } + ], + "m_VertexContext": { + "m_Position": { + "x": 336.0000305175781, + "y": 166.0 + }, + "m_Blocks": [ + { + "m_Id": "a352b2e856ff443aaac44c0534126146" + }, + { + "m_Id": "bb2fad3d7e1a475d84ec6209395fe0a9" + }, + { + "m_Id": "16168846fbd54e07b8a30745affb32de" + } + ] + }, + "m_FragmentContext": { + "m_Position": { + "x": 336.0000305175781, + "y": 366.0000305175781 + }, + "m_Blocks": [ + { + "m_Id": "b0081dbcfad3417ab5b19771810a218f" + }, + { + "m_Id": "47997da48bb54307bd066561ed772527" + }, + { + "m_Id": "fa82e18ce46142d894bf50fc0df8a612" + } + ] + }, + "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": "2058859781dc4fef8f5d8c986563a27d" + } + ] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "0659e4c5b0ea4e9a8b3aafb366ac5cf9", + "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": "09f19470e7c1411183a2d0db387b4ade", + "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.CategoryData", + "m_ObjectId": "0a21d6cdf9ec4eb497975907094b6eb8", + "m_Name": "Alpha", + "m_ChildObjectList": [ + { + "m_Id": "79a29ec2abd44f69b010bd974f1a9b38" + }, + { + "m_Id": "3f2196fd68c14145802894465a7f151f" + } + ] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SamplerStateMaterialSlot", + "m_ObjectId": "0b5b235eac574abbac536d88ac2e767e", + "m_Id": 2, + "m_DisplayName": "HeightmapSampler", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "HeightmapSampler", + "m_StageCapability": 3, + "m_BareResource": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "11b1e1e464564319abcfa22581e912ba", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -427.0, + "y": 666.9999389648438, + "width": 132.0, + "height": 34.00006103515625 + } + }, + "m_Slots": [ + { + "m_Id": "c1a7254413d4457da5aff282a0600f4b" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "79a29ec2abd44f69b010bd974f1a9b38" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "16168846fbd54e07b8a30745affb32de", + "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": "fe666d7524434e7b9608c7c5fed7df9e" + } + ], + "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.Vector4MaterialSlot", + "m_ObjectId": "16b12ecd5f8e4935a1bb53f9f538a757", + "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.ColorRGBMaterialSlot", + "m_ObjectId": "1b140e6f1d3a4106b64c4b09ecc9a969", + "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.5, + "y": 0.5, + "z": 0.5 + }, + "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": "1b7b93b29a6c4d21bf6699cce0dd6dde", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Multiply", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -198.99998474121095, + "y": 153.0, + "width": 130.0, + "height": 117.99996948242188 + } + }, + "m_Slots": [ + { + "m_Id": "2b6295e1ed6d4544a70bdf03594be3ab" + }, + { + "m_Id": "445b609aef71411c84053c291edf12e9" + }, + { + "m_Id": "ecccf028f9c3426e821a21583685e540" + } + ], + "synonyms": [ + "multiplication", + "times", + "x" + ], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.Rendering.Universal.ShaderGraph.UniversalTarget", + "m_ObjectId": "2058859781dc4fef8f5d8c986563a27d", + "m_Datas": [], + "m_ActiveSubTarget": { + "m_Id": "cfac6cc528e44ca094fdca6ff7746640" + }, + "m_AllowMaterialOverride": true, + "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_DisableTint": false, + "m_AdditionalMotionVectorMode": 0, + "m_AlembicMotionVectors": false, + "m_SupportsLODCrossFade": false, + "m_CustomEditorGUI": "", + "m_SupportVFX": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SampleTexture2DNode", + "m_ObjectId": "22c862acf3024f76a21b076af8089c1f", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Sample Texture 2D", + "m_DrawState": { + "m_Expanded": false, + "m_Position": { + "serializedVersion": "2", + "x": -401.0, + "y": 176.99998474121095, + "width": 180.00003051757813, + "height": 176.99998474121095 + } + }, + "m_Slots": [ + { + "m_Id": "16b12ecd5f8e4935a1bb53f9f538a757" + }, + { + "m_Id": "5092dfd80a44414d9050f68bb6146578" + }, + { + "m_Id": "f4df60bdf280477280357faeea1d434c" + }, + { + "m_Id": "5bfb5fefe2ec435bb484578930f18c0a" + }, + { + "m_Id": "09f19470e7c1411183a2d0db387b4ade" + }, + { + "m_Id": "8f38f02b4ac84b93862c213c5956a609" + }, + { + "m_Id": "927641772f9c4b829372e34f035ce360" + }, + { + "m_Id": "35f0062287ef40bfb493a44da438c87a" + } + ], + "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.DynamicValueMaterialSlot", + "m_ObjectId": "2b6295e1ed6d4544a70bdf03594be3ab", + "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.UVMaterialSlot", + "m_ObjectId": "34480070f2cd4976890e12cb2ee80f92", + "m_Id": 4, + "m_DisplayName": "UVs", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "UVs", + "m_StageCapability": 2, + "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.SamplerStateMaterialSlot", + "m_ObjectId": "35f0062287ef40bfb493a44da438c87a", + "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": "37cfbb7303d04ffeb0c6d129529852b9", + "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.CategoryData", + "m_ObjectId": "39d6e71889664a32b0b6dbb629f930d2", + "m_Name": "Base Map", + "m_ChildObjectList": [ + { + "m_Id": "6c00618c153b4c8fbf3c96b4e6c64054" + }, + { + "m_Id": "c5b34576fd8649fa91c107cc2aea6277" + } + ] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "3aed6b98056d4d75901a408651300704", + "m_Id": 3, + "m_DisplayName": "Amplitude", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Amplitude", + "m_StageCapability": 2, + "m_Value": 1.0, + "m_DefaultValue": 1.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.ScreenPositionMaterialSlot", + "m_ObjectId": "3e45fbdbfa4d4628b91ec71c0710c8b0", + "m_Id": 1, + "m_DisplayName": "Screen Position", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "ScreenPosition", + "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_ScreenSpaceType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Internal.Texture2DShaderProperty", + "m_ObjectId": "3f2196fd68c14145802894465a7f151f", + "m_Guid": { + "m_GuidSerialized": "6dc482ae-52a2-4b69-be94-01077f3a862d" + }, + "m_Name": "Heightmap Texture", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "Heightmap Texture", + "m_DefaultReferenceName": "_Heightmap_Texture", + "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, + "useTexelSize": true, + "m_Modifiable": true, + "m_DefaultType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "445b609aef71411c84053c291edf12e9", + "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": "4636f2b929cf4277a527764305e0872c", + "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.BlockNode", + "m_ObjectId": "47997da48bb54307bd066561ed772527", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.Alpha", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 12.000012397766114, + "y": 263.0000305175781, + "width": 199.99996948242188, + "height": 41.0 + } + }, + "m_Slots": [ + { + "m_Id": "528e9820c4ea41cb858f4d4665983032" + } + ], + "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.Texture2DMaterialSlot", + "m_ObjectId": "4a330e8f63b34919b4439d00cd4dc8fb", + "m_Id": 0, + "m_DisplayName": "Heightmap Texture", + "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": "5092dfd80a44414d9050f68bb6146578", + "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": "528e9820c4ea41cb858f4d4665983032", + "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.CategoryData", + "m_ObjectId": "5b4ee4eae4a84f3081509e46b505bbd7", + "m_Name": "", + "m_ChildObjectList": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "5bfb5fefe2ec435bb484578930f18c0a", + "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": "6515d0f2166e4399908a3b6f59c7a834", + "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.DitherNode", + "m_ObjectId": "658ec1fdb9014e05b2c5b2f9d8f4cd88", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Dither", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -125.0, + "y": 453.9999694824219, + "width": 201.00003051757813, + "height": 118.00003051757813 + } + }, + "m_Slots": [ + { + "m_Id": "fa87822a3b6440f9810e7f0249b02003" + }, + { + "m_Id": "3e45fbdbfa4d4628b91ec71c0710c8b0" + }, + { + "m_Id": "0659e4c5b0ea4e9a8b3aafb366ac5cf9" + } + ], + "synonyms": [ + "blue noise", + "half tone" + ], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Internal.Texture2DShaderProperty", + "m_ObjectId": "6c00618c153b4c8fbf3c96b4e6c64054", + "m_Guid": { + "m_GuidSerialized": "18b0fa62-a59c-4cf4-bdb5-9df2e6492938" + }, + "m_Name": "Base Texture", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "Base Texture", + "m_DefaultReferenceName": "_Base_Texture", + "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": false, + "useTexelSize": true, + "m_Modifiable": true, + "m_DefaultType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.NormalMaterialSlot", + "m_ObjectId": "7694bfc436374d4e83600ea058006bcb", + "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": "79a29ec2abd44f69b010bd974f1a9b38", + "m_Guid": { + "m_GuidSerialized": "0fb28af4-e7c8-4c77-b214-1d389b62f31f" + }, + "m_Name": "Dither Size", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "Dither Size", + "m_DefaultReferenceName": "_Dither_Size", + "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": 2, + "m_RangeValues": { + "x": 0.0, + "y": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", + "m_ObjectId": "7dc364a6152740c99e90ee5a9a58fdb3", + "m_Id": 1, + "m_DisplayName": "Heightmap", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Heightmap", + "m_StageCapability": 2, + "m_BareResource": false, + "m_Texture": { + "m_SerializedTexture": "", + "m_Guid": "" + }, + "m_DefaultType": 1 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", + "m_ObjectId": "8f38f02b4ac84b93862c213c5956a609", + "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.SplitNode", + "m_ObjectId": "919b15e9cfbc4c5aa6722d507131e233", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Split", + "m_DrawState": { + "m_Expanded": false, + "m_Position": { + "serializedVersion": "2", + "x": -43.000030517578128, + "y": 260.9999694824219, + "width": 119.00005340576172, + "height": 77.0 + } + }, + "m_Slots": [ + { + "m_Id": "fb8f193663db4b0d85cd63f88d8e5009" + }, + { + "m_Id": "4636f2b929cf4277a527764305e0872c" + }, + { + "m_Id": "f69eaf9be50d42a391dd58f15b5ba707" + }, + { + "m_Id": "6515d0f2166e4399908a3b6f59c7a834" + }, + { + "m_Id": "cd67a953f70c4946ba1b3b32972dd35a" + } + ], + "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.UVMaterialSlot", + "m_ObjectId": "927641772f9c4b829372e34f035ce360", + "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.ScreenPositionNode", + "m_ObjectId": "939bd5d2fa2c4c0790fe5c05818540d5", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Screen Position", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -439.9999694824219, + "y": 538.9999389648438, + "width": 144.99996948242188, + "height": 128.0 + } + }, + "m_Slots": [ + { + "m_Id": "9e38229effb543ef805b04af7dbcbe69" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_ScreenSpaceType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "9597692479c84696af81817d622281b7", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -550.0, + "y": 218.99996948242188, + "width": 152.00003051757813, + "height": 34.000030517578128 + } + }, + "m_Slots": [ + { + "m_Id": "ef96dfec0e72404285d9e366d449fba6" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "6c00618c153b4c8fbf3c96b4e6c64054" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "9a70201a33ea4ee4adb5ef88fab40de8", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -352.0, + "y": 143.0, + "width": 134.0, + "height": 33.99998474121094 + } + }, + "m_Slots": [ + { + "m_Id": "e7ecb40350cc4a0185b29b567daf5f36" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "c5b34576fd8649fa91c107cc2aea6277" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "9e38229effb543ef805b04af7dbcbe69", + "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, + "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", + "m_ObjectId": "a2ea6185d5c94777a844d3c8d50afbac", + "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.BlockNode", + "m_ObjectId": "a352b2e856ff443aaac44c0534126146", + "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": "a2ea6185d5c94777a844d3c8d50afbac" + } + ], + "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": "b0081dbcfad3417ab5b19771810a218f", + "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": "1b140e6f1d3a4106b64c4b09ecc9a969" + } + ], + "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.Vector2MaterialSlot", + "m_ObjectId": "b2ab9af5998144b7a1d4c5916a92eb22", + "m_Id": 0, + "m_DisplayName": "ParallaxUVs", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "ParallaxUVs", + "m_StageCapability": 2, + "m_Value": { + "x": 0.0, + "y": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "bb2fad3d7e1a475d84ec6209395fe0a9", + "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": "7694bfc436374d4e83600ea058006bcb" + } + ], + "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.Vector1MaterialSlot", + "m_ObjectId": "c1a7254413d4457da5aff282a0600f4b", + "m_Id": 0, + "m_DisplayName": "Dither Size", + "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.ParallaxMappingNode", + "m_ObjectId": "c2676ea48ab84f9fbce04452ae03f96b", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Parallax Mapping", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -699.0, + "y": 306.9999694824219, + "width": 272.0, + "height": 182.99996948242188 + } + }, + "m_Slots": [ + { + "m_Id": "7dc364a6152740c99e90ee5a9a58fdb3" + }, + { + "m_Id": "0b5b235eac574abbac536d88ac2e767e" + }, + { + "m_Id": "3aed6b98056d4d75901a408651300704" + }, + { + "m_Id": "34480070f2cd4976890e12cb2ee80f92" + }, + { + "m_Id": "b2ab9af5998144b7a1d4c5916a92eb22" + } + ], + "synonyms": [ + "offset mapping" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Channel": 1 +} + +{ + "m_SGVersion": 3, + "m_Type": "UnityEditor.ShaderGraph.Internal.ColorShaderProperty", + "m_ObjectId": "c5b34576fd8649fa91c107cc2aea6277", + "m_Guid": { + "m_GuidSerialized": "70b76a61-5ccc-4517-a317-f6354a18c771" + }, + "m_Name": "Base Color", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "Base Color", + "m_DefaultReferenceName": "_Base_Color", + "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": 1.0 + }, + "isMainColor": true, + "m_ColorMode": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "cafc525e4af3412888aed545ef29f261", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": { + "x": 2.0, + "y": 2.0, + "z": 2.0, + "w": 2.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": "cd67a953f70c4946ba1b3b32972dd35a", + "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": 2, + "m_Type": "UnityEditor.Rendering.Universal.ShaderGraph.UniversalUnlitSubTarget", + "m_ObjectId": "cfac6cc528e44ca094fdca6ff7746640" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "d58632d7c4864919ad66d2f186ac6cee", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -881.9999389648438, + "y": 337.9999694824219, + "width": 182.99993896484376, + "height": 34.0 + } + }, + "m_Slots": [ + { + "m_Id": "4a330e8f63b34919b4439d00cd4dc8fb" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "3f2196fd68c14145802894465a7f151f" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DivideNode", + "m_ObjectId": "db6d79a69c5244f6b23b4a3a38f0bf86", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Divide", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -278.0, + "y": 538.9999389648438, + "width": 130.0, + "height": 118.0 + } + }, + "m_Slots": [ + { + "m_Id": "f6515bf5ef194c94a8b46e19effdc625" + }, + { + "m_Id": "cafc525e4af3412888aed545ef29f261" + }, + { + "m_Id": "ee42545cf5aa42ce88e0262bb705733e" + } + ], + "synonyms": [ + "division", + "divided by" + ], + "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": "e7ecb40350cc4a0185b29b567daf5f36", + "m_Id": 0, + "m_DisplayName": "Base Color", + "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": "ecccf028f9c3426e821a21583685e540", + "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": "ee42545cf5aa42ce88e0262bb705733e", + "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.Texture2DMaterialSlot", + "m_ObjectId": "ef96dfec0e72404285d9e366d449fba6", + "m_Id": 0, + "m_DisplayName": "Base Texture", + "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": "f4df60bdf280477280357faeea1d434c", + "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": "f6515bf5ef194c94a8b46e19effdc625", + "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.Vector1MaterialSlot", + "m_ObjectId": "f69eaf9be50d42a391dd58f15b5ba707", + "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.BlockNode", + "m_ObjectId": "fa82e18ce46142d894bf50fc0df8a612", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.AlphaClipThreshold", + "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": "37cfbb7303d04ffeb0c6d129529852b9" + } + ], + "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.DynamicVectorMaterialSlot", + "m_ObjectId": "fa87822a3b6440f9810e7f0249b02003", + "m_Id": 0, + "m_DisplayName": "In", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "In", + "m_StageCapability": 3, + "m_Value": { + "x": 1.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": "fb8f193663db4b0d85cd63f88d8e5009", + "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.TangentMaterialSlot", + "m_ObjectId": "fe666d7524434e7b9608c7c5fed7df9e", + "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 +} + diff --git a/Assets/Rendering/Shaders/DitherUnlit.shadergraph.meta b/Assets/Rendering/Shaders/DitherUnlit.shadergraph.meta new file mode 100644 index 0000000..e8a2b0b --- /dev/null +++ b/Assets/Rendering/Shaders/DitherUnlit.shadergraph.meta @@ -0,0 +1,10 @@ +fileFormatVersion: 2 +guid: 29a87b083e81e5e68a366844325516e8 +ScriptedImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 2 + userData: + assetBundleName: + assetBundleVariant: + script: {fileID: 11500000, guid: 625f186215c104763be7675aa2d941aa, type: 3} diff --git a/Assets/Resources/Materials/Occluded Silhouette.mat b/Assets/Resources/Materials/Occluded Silhouette.mat new file mode 100644 index 0000000..f0036e3 --- /dev/null +++ b/Assets/Resources/Materials/Occluded Silhouette.mat @@ -0,0 +1,197 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!21 &2100000 +Material: + serializedVersion: 8 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: Occluded Silhouette + m_Shader: {fileID: -6465566751694194690, guid: 29a87b083e81e5e68a366844325516e8, type: 3} + m_Parent: {fileID: 0} + m_ModifiedSerializedProperties: 0 + m_ValidKeywords: + - _ALPHATEST_ON + m_InvalidKeywords: [] + m_LightmapFlags: 4 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: 2450 + stringTagMap: + RenderType: TransparentCutout + disabledShaderPasses: + - MOTIONVECTORS + m_LockedProperties: + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - Base_Map: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - Normal_Map: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _Ambient_Occlusion_Texture: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _BaseMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _BaseTexture: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _Base_Texture: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _BumpMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailAlbedoMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailMask: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailNormalMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _EmissionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _Heightmap_Texture: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MainTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MetallicGlossMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _Metallic_Texture: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _Normal_Texture: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _OcclusionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _ParallaxMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _Smoothness_Texture: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _SpecGlossMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - unity_Lightmaps: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - unity_LightmapsInd: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - unity_ShadowMasks: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Ints: [] + m_Floats: + - Normal_Blend: 0.5 + - _AddPrecomputedVelocity: 0 + - _AlphaClip: 1 + - _AlphaToMask: 1 + - _Blend: 0 + - _BlendModePreserveSpecular: 1 + - _BlendOp: 0 + - _BumpScale: 1 + - _CastShadows: 1 + - _ClearCoatMask: 0 + - _ClearCoatSmoothness: 0 + - _Cull: 2 + - _Cutoff: 0 + - _DecalMeshBiasType: 0 + - _DecalMeshDepthBias: 0 + - _DecalMeshViewBias: 0 + - _DetailAlbedoMapScale: 1 + - _DetailNormalMapScale: 1 + - _Dither_Size: 1 + - _DrawOrder: 0 + - _DstBlend: 0 + - _DstBlendAlpha: 0 + - _Emission: 1 + - _EnvironmentReflections: 1 + - _GlossMapScale: 0 + - _Glossiness: 0 + - _GlossinessSource: 0 + - _GlossyReflections: 0 + - _Metallic: 0 + - _Metallic_Intensity: 0 + - _Mode: 3 + - _OcclusionStrength: 1 + - _Parallax: 0.005 + - _QueueControl: 0 + - _QueueOffset: 0 + - _ReceiveShadows: 1 + - _SampleGI: 0 + - _Shininess: 0 + - _Smoothness: 0 + - _SmoothnessSource: 0 + - _SmoothnessTextureChannel: 0 + - _SpecSource: 0 + - _SpecularHighlights: 1 + - _SrcBlend: 1 + - _SrcBlendAlpha: 1 + - _Surface: 0 + - _UVSec: 0 + - _WorkflowMode: 0 + - _XRMotionVectorsPass: 1 + - _ZTest: 4 + - _ZWrite: 1 + - _ZWriteControl: 0 + m_Colors: + - _BaseColor: {r: 0.3095483, g: 0, b: 1, a: 1} + - _Base_Color: {r: 0.22167921, g: 0, b: 1, a: 0.47058824} + - _Color: {r: 1, g: 0, b: 0.26456663, a: 0.49803922} + - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} + - _EmissiveColor: {r: 0, g: 0, b: 0, a: 1} + - _Emissive_Color: {r: 0, g: 0, b: 0, a: 0} + - _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1} + m_BuildTextureStacks: [] + m_AllowLocking: 1 +--- !u!114 &8429744241512883205 +MonoBehaviour: + m_ObjectHideFlags: 11 + 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: d0353a89b1f911e48b9e16bdc9f2e058, type: 3} + m_Name: + m_EditorClassIdentifier: + version: 10 diff --git a/Assets/Resources/Materials/Occluded Silhouette.mat.meta b/Assets/Resources/Materials/Occluded Silhouette.mat.meta new file mode 100644 index 0000000..c0bdf3f --- /dev/null +++ b/Assets/Resources/Materials/Occluded Silhouette.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: da1349e47d5d84cbd921f72293a96c87 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 2100000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scenes/SampleScene.unity b/Assets/Scenes/SampleScene.unity index 43bfe69..7445147 100644 --- a/Assets/Scenes/SampleScene.unity +++ b/Assets/Scenes/SampleScene.unity @@ -903,7 +903,7 @@ Transform: m_GameObject: {fileID: 983805437} serializedVersion: 2 m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 1.5, y: 1, z: -3} + m_LocalPosition: {x: 2, y: 1.5, z: -2} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: [] @@ -985,7 +985,19 @@ MonoBehaviour: m_Calls: - m_Target: {fileID: 1190731372} m_TargetAssemblyTypeName: KitsuneCafe.Animation.TriggerAnimation, Assembly-CSharp - m_MethodName: Trigger + m_MethodName: SetValue + m_Mode: 6 + m_Arguments: + m_ObjectArgument: {fileID: 0} + m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine + m_IntArgument: 0 + m_FloatArgument: 0 + m_StringArgument: + m_BoolArgument: 1 + m_CallState: 2 + - m_Target: {fileID: 1190731373} + m_TargetAssemblyTypeName: KitsuneCafe.Timer, Assembly-CSharp + m_MethodName: StartTimer m_Mode: 1 m_Arguments: m_ObjectArgument: {fileID: 0} @@ -995,10 +1007,13 @@ MonoBehaviour: m_StringArgument: m_BoolArgument: 0 m_CallState: 2 - - m_Target: {fileID: 1190731373} - m_TargetAssemblyTypeName: KitsuneCafe.Timer, Assembly-CSharp - m_MethodName: StartTimer - m_Mode: 1 + closed: + m_PersistentCalls: + m_Calls: + - m_Target: {fileID: 1190731372} + m_TargetAssemblyTypeName: KitsuneCafe.Animation.TriggerAnimation, Assembly-CSharp + m_MethodName: SetValue + m_Mode: 6 m_Arguments: m_ObjectArgument: {fileID: 0} m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine @@ -1116,7 +1131,7 @@ MonoBehaviour: m_Name: m_EditorClassIdentifier: animator: {fileID: 1190731371} - parameter: -1288781466 + parameter: -754085080 --- !u!114 &1190731373 MonoBehaviour: m_ObjectHideFlags: 0 @@ -1138,9 +1153,9 @@ MonoBehaviour: onComplete: m_PersistentCalls: m_Calls: - - m_Target: {fileID: 1190731372} - m_TargetAssemblyTypeName: KitsuneCafe.Animation.TriggerAnimation, Assembly-CSharp - m_MethodName: Trigger + - m_Target: {fileID: 1190731367} + m_TargetAssemblyTypeName: KitsuneCafe.Interaction.Gate, Assembly-CSharp + m_MethodName: ForceClosedAndForget m_Mode: 1 m_Arguments: m_ObjectArgument: {fileID: 0} @@ -1231,7 +1246,7 @@ GameObject: - component: {fileID: 1363718004} - component: {fileID: 1363718007} - component: {fileID: 1363718006} - m_Layer: 0 + m_Layer: 6 m_Name: Player m_TagString: Untagged m_Icon: {fileID: 0} @@ -1725,6 +1740,10 @@ PrefabInstance: serializedVersion: 3 m_TransformParent: {fileID: 1363717997} m_Modifications: + - target: {fileID: -9070493210130169274, guid: 39499efe4f068c9f1aa32d2ea7e17fa9, type: 3} + propertyPath: m_Layer + value: 6 + objectReference: {fileID: 0} - target: {fileID: -8679921383154817045, guid: 39499efe4f068c9f1aa32d2ea7e17fa9, type: 3} propertyPath: m_LocalPosition.x value: 0 @@ -1765,10 +1784,278 @@ PrefabInstance: propertyPath: m_LocalEulerAnglesHint.z value: 0 objectReference: {fileID: 0} + - target: {fileID: -8183481454299698827, guid: 39499efe4f068c9f1aa32d2ea7e17fa9, type: 3} + propertyPath: m_Layer + value: 6 + objectReference: {fileID: 0} + - target: {fileID: -8006009767450596044, guid: 39499efe4f068c9f1aa32d2ea7e17fa9, type: 3} + propertyPath: m_Layer + value: 6 + objectReference: {fileID: 0} + - target: {fileID: -7657966619581158213, guid: 39499efe4f068c9f1aa32d2ea7e17fa9, type: 3} + propertyPath: m_Layer + value: 6 + objectReference: {fileID: 0} + - target: {fileID: -7360747449169001873, guid: 39499efe4f068c9f1aa32d2ea7e17fa9, type: 3} + propertyPath: m_Layer + value: 6 + objectReference: {fileID: 0} + - target: {fileID: -7121769801107515815, guid: 39499efe4f068c9f1aa32d2ea7e17fa9, type: 3} + propertyPath: m_Layer + value: 6 + objectReference: {fileID: 0} + - target: {fileID: -6621945745981909287, guid: 39499efe4f068c9f1aa32d2ea7e17fa9, type: 3} + propertyPath: m_Layer + value: 6 + objectReference: {fileID: 0} + - target: {fileID: -6370085079684087283, guid: 39499efe4f068c9f1aa32d2ea7e17fa9, type: 3} + propertyPath: m_Layer + value: 6 + objectReference: {fileID: 0} + - target: {fileID: -6234591296559379751, guid: 39499efe4f068c9f1aa32d2ea7e17fa9, type: 3} + propertyPath: m_Layer + value: 6 + objectReference: {fileID: 0} + - target: {fileID: -6170625038081293824, guid: 39499efe4f068c9f1aa32d2ea7e17fa9, type: 3} + propertyPath: m_Layer + value: 6 + objectReference: {fileID: 0} + - target: {fileID: -6056541330796499132, guid: 39499efe4f068c9f1aa32d2ea7e17fa9, type: 3} + propertyPath: m_Layer + value: 6 + objectReference: {fileID: 0} + - target: {fileID: -5857696854640597626, guid: 39499efe4f068c9f1aa32d2ea7e17fa9, type: 3} + propertyPath: m_Layer + value: 6 + objectReference: {fileID: 0} + - target: {fileID: -5561550452697079657, guid: 39499efe4f068c9f1aa32d2ea7e17fa9, type: 3} + propertyPath: m_Layer + value: 6 + objectReference: {fileID: 0} + - target: {fileID: -5195048882033904264, guid: 39499efe4f068c9f1aa32d2ea7e17fa9, type: 3} + propertyPath: m_Layer + value: 6 + objectReference: {fileID: 0} + - target: {fileID: -4999088201633142198, guid: 39499efe4f068c9f1aa32d2ea7e17fa9, type: 3} + propertyPath: m_Layer + value: 6 + objectReference: {fileID: 0} + - target: {fileID: -4728426434207774260, guid: 39499efe4f068c9f1aa32d2ea7e17fa9, type: 3} + propertyPath: m_Layer + value: 6 + objectReference: {fileID: 0} + - target: {fileID: -4501530691011011137, guid: 39499efe4f068c9f1aa32d2ea7e17fa9, type: 3} + propertyPath: m_Layer + value: 6 + objectReference: {fileID: 0} + - target: {fileID: -4332706925441422008, guid: 39499efe4f068c9f1aa32d2ea7e17fa9, type: 3} + propertyPath: m_Layer + value: 6 + objectReference: {fileID: 0} + - target: {fileID: -4278032810995721380, guid: 39499efe4f068c9f1aa32d2ea7e17fa9, type: 3} + propertyPath: m_Layer + value: 6 + objectReference: {fileID: 0} + - target: {fileID: -3799395697873186154, guid: 39499efe4f068c9f1aa32d2ea7e17fa9, type: 3} + propertyPath: m_Layer + value: 6 + objectReference: {fileID: 0} + - target: {fileID: -3542885339558904099, guid: 39499efe4f068c9f1aa32d2ea7e17fa9, type: 3} + propertyPath: m_Layer + value: 6 + objectReference: {fileID: 0} + - target: {fileID: -3478013746326755454, guid: 39499efe4f068c9f1aa32d2ea7e17fa9, type: 3} + propertyPath: m_Layer + value: 6 + objectReference: {fileID: 0} + - target: {fileID: -3214267034143217929, guid: 39499efe4f068c9f1aa32d2ea7e17fa9, type: 3} + propertyPath: m_Layer + value: 6 + objectReference: {fileID: 0} + - target: {fileID: -3086436065929644917, guid: 39499efe4f068c9f1aa32d2ea7e17fa9, type: 3} + propertyPath: m_Layer + value: 6 + objectReference: {fileID: 0} + - target: {fileID: -2656431786303760210, guid: 39499efe4f068c9f1aa32d2ea7e17fa9, type: 3} + propertyPath: m_Layer + value: 6 + objectReference: {fileID: 0} + - target: {fileID: -2084811680363313996, guid: 39499efe4f068c9f1aa32d2ea7e17fa9, type: 3} + propertyPath: m_Layer + value: 6 + objectReference: {fileID: 0} + - target: {fileID: -1781356600409242780, guid: 39499efe4f068c9f1aa32d2ea7e17fa9, type: 3} + propertyPath: m_Layer + value: 6 + objectReference: {fileID: 0} + - target: {fileID: -1703473491307067327, guid: 39499efe4f068c9f1aa32d2ea7e17fa9, type: 3} + propertyPath: m_Layer + value: 6 + objectReference: {fileID: 0} + - target: {fileID: -1425791611860619382, guid: 39499efe4f068c9f1aa32d2ea7e17fa9, type: 3} + propertyPath: m_Layer + value: 6 + objectReference: {fileID: 0} + - target: {fileID: -1268151995469589007, guid: 39499efe4f068c9f1aa32d2ea7e17fa9, type: 3} + propertyPath: m_Layer + value: 6 + objectReference: {fileID: 0} + - target: {fileID: -1200856079203341021, guid: 39499efe4f068c9f1aa32d2ea7e17fa9, type: 3} + propertyPath: m_Layer + value: 6 + objectReference: {fileID: 0} + - target: {fileID: -751476226918971245, guid: 39499efe4f068c9f1aa32d2ea7e17fa9, type: 3} + propertyPath: m_Layer + value: 6 + objectReference: {fileID: 0} + - target: {fileID: -552831747908440785, guid: 39499efe4f068c9f1aa32d2ea7e17fa9, type: 3} + propertyPath: m_Layer + value: 6 + objectReference: {fileID: 0} + - target: {fileID: -290750445479886849, guid: 39499efe4f068c9f1aa32d2ea7e17fa9, type: 3} + propertyPath: m_Layer + value: 6 + objectReference: {fileID: 0} + - target: {fileID: -203856693384778745, guid: 39499efe4f068c9f1aa32d2ea7e17fa9, type: 3} + propertyPath: m_Layer + value: 6 + objectReference: {fileID: 0} + - target: {fileID: -76546954072915012, guid: 39499efe4f068c9f1aa32d2ea7e17fa9, type: 3} + propertyPath: m_Layer + value: 6 + objectReference: {fileID: 0} + - target: {fileID: 9171100556185337, guid: 39499efe4f068c9f1aa32d2ea7e17fa9, type: 3} + propertyPath: m_Layer + value: 6 + objectReference: {fileID: 0} + - target: {fileID: 414117464747255840, guid: 39499efe4f068c9f1aa32d2ea7e17fa9, type: 3} + propertyPath: m_Layer + value: 6 + objectReference: {fileID: 0} - target: {fileID: 919132149155446097, guid: 39499efe4f068c9f1aa32d2ea7e17fa9, type: 3} propertyPath: m_Name value: X Bot objectReference: {fileID: 0} + - target: {fileID: 919132149155446097, guid: 39499efe4f068c9f1aa32d2ea7e17fa9, type: 3} + propertyPath: m_Layer + value: 6 + objectReference: {fileID: 0} + - target: {fileID: 1082271958561512970, guid: 39499efe4f068c9f1aa32d2ea7e17fa9, type: 3} + propertyPath: m_Layer + value: 6 + objectReference: {fileID: 0} + - target: {fileID: 1339101018200438765, guid: 39499efe4f068c9f1aa32d2ea7e17fa9, type: 3} + propertyPath: m_Layer + value: 6 + objectReference: {fileID: 0} + - target: {fileID: 1711505207429034123, guid: 39499efe4f068c9f1aa32d2ea7e17fa9, type: 3} + propertyPath: m_Layer + value: 6 + objectReference: {fileID: 0} + - target: {fileID: 2158975759703390516, guid: 39499efe4f068c9f1aa32d2ea7e17fa9, type: 3} + propertyPath: m_Layer + value: 6 + objectReference: {fileID: 0} + - target: {fileID: 2586065998465600510, guid: 39499efe4f068c9f1aa32d2ea7e17fa9, type: 3} + propertyPath: m_Layer + value: 6 + objectReference: {fileID: 0} + - target: {fileID: 2715566404302941441, guid: 39499efe4f068c9f1aa32d2ea7e17fa9, type: 3} + propertyPath: m_Layer + value: 6 + objectReference: {fileID: 0} + - target: {fileID: 2898355158428612036, guid: 39499efe4f068c9f1aa32d2ea7e17fa9, type: 3} + propertyPath: m_Layer + value: 6 + objectReference: {fileID: 0} + - target: {fileID: 3047284246813455858, guid: 39499efe4f068c9f1aa32d2ea7e17fa9, type: 3} + propertyPath: m_Layer + value: 6 + objectReference: {fileID: 0} + - target: {fileID: 3135921509060577837, guid: 39499efe4f068c9f1aa32d2ea7e17fa9, type: 3} + propertyPath: m_Layer + value: 6 + objectReference: {fileID: 0} + - target: {fileID: 3588849560313704984, guid: 39499efe4f068c9f1aa32d2ea7e17fa9, type: 3} + propertyPath: m_Layer + value: 6 + objectReference: {fileID: 0} + - target: {fileID: 3614653200513675785, guid: 39499efe4f068c9f1aa32d2ea7e17fa9, type: 3} + propertyPath: m_Layer + value: 6 + objectReference: {fileID: 0} + - target: {fileID: 3882815353823017779, guid: 39499efe4f068c9f1aa32d2ea7e17fa9, type: 3} + propertyPath: m_Layer + value: 6 + objectReference: {fileID: 0} + - target: {fileID: 3948933247560734027, guid: 39499efe4f068c9f1aa32d2ea7e17fa9, type: 3} + propertyPath: m_Layer + value: 6 + objectReference: {fileID: 0} + - target: {fileID: 3974016661214395164, guid: 39499efe4f068c9f1aa32d2ea7e17fa9, type: 3} + propertyPath: m_Layer + value: 6 + objectReference: {fileID: 0} + - target: {fileID: 4114030615378554161, guid: 39499efe4f068c9f1aa32d2ea7e17fa9, type: 3} + propertyPath: m_Layer + value: 6 + objectReference: {fileID: 0} + - target: {fileID: 4237274458221626025, guid: 39499efe4f068c9f1aa32d2ea7e17fa9, type: 3} + propertyPath: m_Layer + value: 6 + objectReference: {fileID: 0} + - target: {fileID: 4441848305933595309, guid: 39499efe4f068c9f1aa32d2ea7e17fa9, type: 3} + propertyPath: m_Layer + value: 6 + objectReference: {fileID: 0} + - target: {fileID: 4549111882529890269, guid: 39499efe4f068c9f1aa32d2ea7e17fa9, type: 3} + propertyPath: m_Layer + value: 6 + objectReference: {fileID: 0} + - target: {fileID: 5120724536234783804, guid: 39499efe4f068c9f1aa32d2ea7e17fa9, type: 3} + propertyPath: m_Layer + value: 6 + objectReference: {fileID: 0} + - target: {fileID: 6240733294840144465, guid: 39499efe4f068c9f1aa32d2ea7e17fa9, type: 3} + propertyPath: m_Layer + value: 6 + objectReference: {fileID: 0} + - target: {fileID: 6514210125699187276, guid: 39499efe4f068c9f1aa32d2ea7e17fa9, type: 3} + propertyPath: m_Layer + value: 6 + objectReference: {fileID: 0} + - target: {fileID: 7363479242261063072, guid: 39499efe4f068c9f1aa32d2ea7e17fa9, type: 3} + propertyPath: m_Layer + value: 6 + objectReference: {fileID: 0} + - target: {fileID: 7542137907003004905, guid: 39499efe4f068c9f1aa32d2ea7e17fa9, type: 3} + propertyPath: m_Layer + value: 6 + objectReference: {fileID: 0} + - target: {fileID: 7732535366517880319, guid: 39499efe4f068c9f1aa32d2ea7e17fa9, type: 3} + propertyPath: m_Layer + value: 6 + objectReference: {fileID: 0} + - target: {fileID: 7776229726456038893, guid: 39499efe4f068c9f1aa32d2ea7e17fa9, type: 3} + propertyPath: m_Layer + value: 6 + objectReference: {fileID: 0} + - target: {fileID: 7882376022164389543, guid: 39499efe4f068c9f1aa32d2ea7e17fa9, type: 3} + propertyPath: m_Layer + value: 6 + objectReference: {fileID: 0} + - target: {fileID: 8817898888258712963, guid: 39499efe4f068c9f1aa32d2ea7e17fa9, type: 3} + propertyPath: m_Layer + value: 6 + objectReference: {fileID: 0} + - target: {fileID: 8953972740105248388, guid: 39499efe4f068c9f1aa32d2ea7e17fa9, type: 3} + propertyPath: m_Layer + value: 6 + objectReference: {fileID: 0} + - target: {fileID: 9037727976738196030, guid: 39499efe4f068c9f1aa32d2ea7e17fa9, type: 3} + propertyPath: m_Layer + value: 6 + objectReference: {fileID: 0} m_RemovedComponents: [] m_RemovedGameObjects: [] m_AddedGameObjects: [] @@ -1870,7 +2157,7 @@ GameObject: m_Component: - component: {fileID: 1915136995} - component: {fileID: 1915136996} - m_Layer: 0 + m_Layer: 6 m_Name: Interaction Collider m_TagString: Untagged m_Icon: {fileID: -5397416234189338067, guid: 0000000000000000d000000000000000, type: 0} diff --git a/Assets/Scripts/Editor.meta b/Assets/Scripts/Editor.meta new file mode 100644 index 0000000..eaa303e --- /dev/null +++ b/Assets/Scripts/Editor.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: e4cfce59d8f25c75e9c3179814ad0c0c +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/Editor/PropertyDrawers.meta b/Assets/Scripts/Editor/PropertyDrawers.meta new file mode 100644 index 0000000..01df4fd --- /dev/null +++ b/Assets/Scripts/Editor/PropertyDrawers.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 7ef2efd2562ded9f0b6bf44aa323cd2c +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/Editor/PropertyDrawers/AnimatorParamPropertyDrawer.cs b/Assets/Scripts/Editor/PropertyDrawers/AnimatorParamPropertyDrawer.cs new file mode 100644 index 0000000..5b32c4d --- /dev/null +++ b/Assets/Scripts/Editor/PropertyDrawers/AnimatorParamPropertyDrawer.cs @@ -0,0 +1,135 @@ +using System; +using System.Collections.Generic; +using KitsuneCafe.Extension; +using KitsuneCafe.System.Attributes; +using UnityEditor; +using UnityEditor.UIElements; +using UnityEngine; +using UnityEngine.UIElements; + +namespace KitsuneCafe.Editor +{ + [CustomPropertyDrawer(typeof(AnimatorParamAttribute))] + public class AnimatorParamPropertyDrawer : PropertyDrawer + { + public override VisualElement CreatePropertyGUI(SerializedProperty property) + { + var attribute = base.attribute as AnimatorParamAttribute; + + return property.type switch + { + "int" => new AnimatorIntParameterElement(property, attribute.AnimatorProperty), + "string" => new AnimatorStringParameterElement(property, attribute.AnimatorProperty), + _ => throw new ArgumentException("AnimatorParam must be bound to an int or string.") + }; + } + + public abstract class AnimatorParameterElement : PopupField, IDisposable + { + public readonly SerializedProperty Property; + public string Label => ObjectNames.NicifyVariableName(Property.name); + public readonly SerializedProperty AnimatorProperty; + + public AnimatorParameterElement(SerializedProperty property, string animatorPropertyName) : base(ObjectNames.NicifyVariableName(property.name)) + { + Property = property; + AnimatorProperty = property.serializedObject.FindProperty(animatorPropertyName); + this.RegisterValueChangedCallback(OnValueChanged); + + OnAnimatorChanged(AnimatorProperty); + this.TrackPropertyValue(AnimatorProperty, OnAnimatorChanged); + + AddToClassList(BaseField.ussClassName); + AddToClassList(BaseField.alignedFieldUssClassName); + } + + private void OnAnimatorChanged(SerializedProperty property) + { + if (property.TryGetValue(out Animator animator)) + { + choices = new List(GetParameterNames(animator)); + } + + OnAnimatorChanged(animator); + } + + protected virtual void OnAnimatorChanged(Animator animator) { } + + protected abstract void OnValueChanged(ChangeEvent evt); + + private static string[] GetParameterNames(Animator animator) + { + var parameters = animator.parameters; + var len = parameters.Length; + var names = new string[len]; + + for (int i = 0; i < len; i++) + { + names[i] = parameters[i].name; + } + + return names; + } + + public void Dispose() + { + this.UnregisterValueChangedCallback(OnValueChanged); + } + } + + public class AnimatorIntParameterElement : AnimatorParameterElement + { + public AnimatorIntParameterElement(SerializedProperty property, string animatorName) : base(property, animatorName) + { + } + + protected override void OnAnimatorChanged(Animator animator) + { + for (int i = 0; i < animator.parameterCount; i++) + { + if (animator.GetParameter(i).nameHash == Property.intValue) + { + index = i; + return; + } + } + + index = 0; + } + + protected override void OnValueChanged(ChangeEvent evt) + { + Property.intValue = Animator.StringToHash(evt.newValue); + Property.serializedObject.ApplyModifiedProperties(); + Property.serializedObject.Update(); + } + } + + public class AnimatorStringParameterElement : AnimatorParameterElement + { + public AnimatorStringParameterElement(SerializedProperty property, string animatorName) : base(property, animatorName) + { + } + + protected override void OnAnimatorChanged(Animator animator) + { + for (int i = 0; i < animator.parameterCount; i++) + { + if (animator.GetParameter(i).name == Property.stringValue) + { + index = i; + return; + } + } + + index = 0; + } + + protected override void OnValueChanged(ChangeEvent evt) + { + Property.stringValue = evt.newValue; + Property.serializedObject.ApplyModifiedProperties(); + } + } + } +} \ No newline at end of file diff --git a/Assets/Scripts/Editor/PropertyDrawers/AnimatorParamPropertyDrawer.cs.meta b/Assets/Scripts/Editor/PropertyDrawers/AnimatorParamPropertyDrawer.cs.meta new file mode 100644 index 0000000..f1e980b --- /dev/null +++ b/Assets/Scripts/Editor/PropertyDrawers/AnimatorParamPropertyDrawer.cs.meta @@ -0,0 +1,2 @@ +fileFormatVersion: 2 +guid: 072cd698d386accecb4294e85277c897 \ No newline at end of file diff --git a/Assets/Scripts/Editor/PropertyDrawers/ConditionalDisplayPropertyDrawer.cs b/Assets/Scripts/Editor/PropertyDrawers/ConditionalDisplayPropertyDrawer.cs new file mode 100644 index 0000000..1ecd814 --- /dev/null +++ b/Assets/Scripts/Editor/PropertyDrawers/ConditionalDisplayPropertyDrawer.cs @@ -0,0 +1,98 @@ +using System; +using KitsuneCafe.System.Attributes; +using Unity.Properties; +using UnityEditor; +using UnityEditor.UIElements; +using UnityEngine.UIElements; + +[CustomPropertyDrawer(typeof(ConditionalDisplayAttribute), true)] +public class ConditionalDisplayPropertyDrawer : PropertyDrawer +{ + public override VisualElement CreatePropertyGUI(SerializedProperty property) + { + var attribute = this.attribute as ConditionalDisplayAttribute; + var serializedObject = property.serializedObject; + var names = attribute.Properties; + var length = names.Length; + var properties = new SerializedProperty[length]; + + for (int i = 0; i < length; i++) + { + properties[i] = serializedObject.FindProperty(names[i]); + } + + return new BoolConditionPropertyField(properties, attribute, property); + } + + public abstract class ConditionalPropertyField : PropertyField + { + protected readonly SerializedProperty[] properties; + protected readonly ConditionalDisplayAttribute attribute; + + public ConditionalPropertyField(SerializedProperty[] properties, ConditionalDisplayAttribute attribute, SerializedProperty property) : base(property) + { + this.properties = properties; + this.attribute = attribute; + TrackProperties(properties); + } + + public ConditionalPropertyField(SerializedProperty[] properties, ConditionalDisplayAttribute attribute, SerializedProperty property, string label) : base(property, label) + { + this.properties = properties; + this.attribute = attribute; + TrackProperties(properties); + } + + private void TrackProperties(SerializedProperty[] properties) + { + var len = properties.Length; + for (int i = 0; i < len; i++) + { + var property = properties[i]; + OnTrackedValueChanged(property); + this.TrackPropertyValue(property, OnTrackedValueChanged); + } + } + + protected abstract void OnTrackedValueChanged(SerializedProperty property); + } + + public class BoolConditionPropertyField : ConditionalPropertyField + { + public BoolConditionPropertyField(SerializedProperty[] properties, ConditionalDisplayAttribute attribute, SerializedProperty property) : base(properties, attribute, property) + { + } + + public BoolConditionPropertyField(SerializedProperty[] properties, ConditionalDisplayAttribute attribute, SerializedProperty property, string label) : base(properties, attribute, property, label) + { + } + + protected override void OnTrackedValueChanged(SerializedProperty property) + { + var value = (attribute.LogicalOperator, attribute.ComparisonOperator) switch + { + (LogicalOperator.Or, ComparisonOperator.Equal) => true, + (LogicalOperator.And, ComparisonOperator.NotEqual) => true, + _ => false + }; + + for (int i = 0; i < properties.Length; i++) + { + if (properties[i].boolValue == value) + { + DisplayElement(value); + return; + } + } + + DisplayElement(!value); + } + + private void DisplayElement(bool displayed) + { + style.display = displayed ? DisplayStyle.Flex : DisplayStyle.None; + } + } +} + + diff --git a/Assets/Scripts/Editor/PropertyDrawers/ConditionalDisplayPropertyDrawer.cs.meta b/Assets/Scripts/Editor/PropertyDrawers/ConditionalDisplayPropertyDrawer.cs.meta new file mode 100644 index 0000000..fa3bc5b --- /dev/null +++ b/Assets/Scripts/Editor/PropertyDrawers/ConditionalDisplayPropertyDrawer.cs.meta @@ -0,0 +1,2 @@ +fileFormatVersion: 2 +guid: 25e298a4ed198a6b9aca430128221549 \ No newline at end of file diff --git a/Assets/Scripts/Editor/PropertyDrawers/DurationPropertyDrawer.cs b/Assets/Scripts/Editor/PropertyDrawers/DurationPropertyDrawer.cs new file mode 100644 index 0000000..86d10ef --- /dev/null +++ b/Assets/Scripts/Editor/PropertyDrawers/DurationPropertyDrawer.cs @@ -0,0 +1,34 @@ +using KitsuneCafe.System; +using UnityEditor; +using UnityEditor.UIElements; +using UnityEngine.UIElements; + +[CustomPropertyDrawer(typeof(SerializableDuration))] +public class DurationPropertyDrawer : PropertyDrawer +{ + public override VisualElement CreatePropertyGUI(SerializedProperty property) + { + var container = new VisualElement(); + container.style.flexDirection = FlexDirection.Row; + + var duration = new PropertyField( + property.FindPropertyRelative("duration"), + ObjectNames.NicifyVariableName(property.name) + ); + + duration.style.flexGrow = 1; + + var unit = new EnumField + { + bindingPath = "unit" + }; + + unit.style.flexGrow = 0; + + container.Add(duration); + container.Add(unit); + + return container; + } +} + diff --git a/Assets/Scripts/Editor/PropertyDrawers/DurationPropertyDrawer.cs.meta b/Assets/Scripts/Editor/PropertyDrawers/DurationPropertyDrawer.cs.meta new file mode 100644 index 0000000..0ba0050 --- /dev/null +++ b/Assets/Scripts/Editor/PropertyDrawers/DurationPropertyDrawer.cs.meta @@ -0,0 +1,2 @@ +fileFormatVersion: 2 +guid: 6af0b15e8903b4378a35b853b310b2b4 \ No newline at end of file diff --git a/Assets/Scripts/Entity/EntityAnimator.cs b/Assets/Scripts/Entity/EntityAnimator.cs index 9a61128..13a6172 100644 --- a/Assets/Scripts/Entity/EntityAnimator.cs +++ b/Assets/Scripts/Entity/EntityAnimator.cs @@ -1,8 +1,8 @@ using R3; -using NaughtyAttributes; using UnityEngine; using KitsuneCafe.System; using KitsuneCafe.Extension; +using KitsuneCafe.System.Attributes; namespace KitsuneCafe.Entity { diff --git a/Assets/Scripts/Environment/TriggerAnimation.cs b/Assets/Scripts/Environment/TriggerAnimation.cs index 7ef1d80..40dd0ef 100644 --- a/Assets/Scripts/Environment/TriggerAnimation.cs +++ b/Assets/Scripts/Environment/TriggerAnimation.cs @@ -1,4 +1,4 @@ -using NaughtyAttributes; +using KitsuneCafe.System.Attributes; using UnityEngine; namespace KitsuneCafe.Animation @@ -16,19 +16,73 @@ namespace KitsuneCafe.Animation animator = GetComponent(); } + public void SetValue(int parameter, bool value) + { + animator.SetBool(parameter, value); + } + + public void SetValue(string parameter, bool value) + { + SetValue(Animator.StringToHash(parameter), value); + } + + public void SetValue(bool value) + { + SetValue(parameter, value); + } + + public void SetValue(int parameter, int value) + { + animator.SetInteger(parameter, value); + } + + public void SetValue(string parameter, int value) + { + SetValue(Animator.StringToHash(parameter), value); + } + + public void SetValue(int value) + { + SetValue(parameter, value); + } + + public void SetValue(int parameter, float value) + { + animator.SetFloat(parameter, value); + } + + public void SetValue(string parameter, float value) + { + SetValue(Animator.StringToHash(parameter), value); + } + + public void SetValue(float value) + { + SetValue(parameter, value); + } + public void Trigger(string parameter) { - animator.SetTrigger(parameter); + Trigger(Animator.StringToHash(parameter)); } public void Trigger(int parameter) { - animator.SetTrigger(parameter); + switch (animator.GetParameter(parameter).type) + { + case AnimatorControllerParameterType.Trigger: + animator.SetTrigger(parameter); + break; + case AnimatorControllerParameterType.Bool: + var value = animator.GetBool(parameter); + animator.SetBool(parameter, !value); + break; + } } public void Trigger() { - animator.SetTrigger(parameter); + Trigger(parameter); } } } \ No newline at end of file diff --git a/Assets/Scripts/Extension/Editor.cs b/Assets/Scripts/Extension/Editor.cs new file mode 100644 index 0000000..2042056 --- /dev/null +++ b/Assets/Scripts/Extension/Editor.cs @@ -0,0 +1,26 @@ +using System.Reflection; +using UnityEditor; + +namespace KitsuneCafe.Extension +{ + public static class EditorExtension + { + public static bool TryGetValue(this SerializedProperty property, out T value) + { + var target = property.serializedObject.targetObject; + var type = target.GetType(); + var field = type.GetField(property.propertyPath, BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic); + + if (field != null) + { + value = (T)field.GetValue(target); + return true; + } + else + { + value = default; + return false; + } + } + } +} diff --git a/Assets/Scripts/Extension/Editor.cs.meta b/Assets/Scripts/Extension/Editor.cs.meta new file mode 100644 index 0000000..6bac590 --- /dev/null +++ b/Assets/Scripts/Extension/Editor.cs.meta @@ -0,0 +1,2 @@ +fileFormatVersion: 2 +guid: e3df130a0d7071ad3aa39588576cd273 \ No newline at end of file diff --git a/Assets/Scripts/Interaction/Gate.cs b/Assets/Scripts/Interaction/Gate.cs index 4fa5293..20ac068 100644 --- a/Assets/Scripts/Interaction/Gate.cs +++ b/Assets/Scripts/Interaction/Gate.cs @@ -1,6 +1,7 @@ +using System; using KitsuneCafe.ItemSystem; using KitsuneCafe.System; -using NaughtyAttributes; +using KitsuneCafe.System.Attributes; using UnityEngine; using UnityEngine.Events; @@ -35,50 +36,57 @@ namespace KitsuneCafe.Interaction [SerializeField] private UnityEvent opened = default; + [SerializeField] + private UnityEvent closed = default; + public bool IsInteractable => true; public bool IsOpen => isOpen; public bool IsLocked => isLocked; public IResult Interact(IInteractor interactor) { - return TryOpen(interactor); + return isOpen switch + { + true => TryClose(interactor), + false => TryOpen(interactor), + }; + } + + private IResult TryClose(IInteractor interactor) + { + if (!isOpen) + { + return Result.Ok(); + } + + return ForceClosed(); } private IResult TryOpen(IInteractor interactor) { - if (isOpen) + return requirement switch { - return Result.Ok(); - } - else if (!isLocked) - { - opened.Invoke(); - return Result.Ok(); - } - else if (requirement == Requirement.None) - { - return Result.Err(InteractionErrorCode.Locked); - } - else if (requirement == Requirement.Switch) - { - return Result.Err(InteractionErrorCode.RequiresSwitch); - } - else if (requirement == Requirement.Key && interactor.TryGetComponent>(out var inventory)) - { - if (inventory.Has(key)) - { - if (consumeKey) - { - inventory.Remove(key); - } + _ when isOpen => Result.Ok(), + _ when !isLocked => ForceOpen(), + Requirement.None => Result.Err(InteractionErrorCode.Locked), + Requirement.Key => TryOpenWithKey(interactor), + Requirement.Switch => Result.Err(InteractionErrorCode.RequiresSwitch), + var x => throw new ArgumentException($"{gameObject.name} requested invalid requirement type {x}") + }; + } - ForceOpen(); - return Result.Ok(); - } - else + private IResult TryOpenWithKey(IInteractor interactor) + { + if (interactor.TryGetComponent>(out var inventory) && inventory.Has(key)) + { + if (consumeKey) { - return Result.Err(InteractionErrorCode.MissingItem); + inventory.Remove(key); } + + isLocked = false; + ForceOpen(); + return Result.Ok(); } else { @@ -86,10 +94,28 @@ namespace KitsuneCafe.Interaction } } - private void ForceOpen() + public void ForceClosedAndForget() + { + isOpen = false; + closed.Invoke(); + } + + public IResult ForceClosed() + { + ForceClosedAndForget(); + return Result.Ok(); + } + + public void ForceOpenAndForget() { isOpen = true; opened.Invoke(); } + + public IResult ForceOpen() + { + ForceOpenAndForget(); + return Result.Ok(); + } } } diff --git a/Assets/Scripts/Item/Item.cs b/Assets/Scripts/Item/Item.cs index 2f901cf..8c0cad8 100644 --- a/Assets/Scripts/Item/Item.cs +++ b/Assets/Scripts/Item/Item.cs @@ -2,7 +2,7 @@ using System; using System.Collections.Generic; using KitsuneCafe.SOAP; using KitsuneCafe.System; -using NaughtyAttributes; +using KitsuneCafe.System.Attributes; using UnityEngine; namespace KitsuneCafe.ItemSystem diff --git a/Assets/Scripts/System/Attributes.meta b/Assets/Scripts/System/Attributes.meta new file mode 100644 index 0000000..ff090e9 --- /dev/null +++ b/Assets/Scripts/System/Attributes.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 92deb4c7848acfa62891cc4281e73470 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/System/Attributes/AnimatorParamAttribute.cs b/Assets/Scripts/System/Attributes/AnimatorParamAttribute.cs new file mode 100644 index 0000000..81ec69f --- /dev/null +++ b/Assets/Scripts/System/Attributes/AnimatorParamAttribute.cs @@ -0,0 +1,23 @@ +using System; +using UnityEngine; +using AnimatorControllerParameterType = UnityEngine.AnimatorControllerParameterType; + +namespace KitsuneCafe.System.Attributes +{ + [AttributeUsage(AttributeTargets.Field)] + public class AnimatorParamAttribute : PropertyAttribute + { + public readonly string AnimatorProperty; + public readonly AnimatorControllerParameterType? Type; + + public AnimatorParamAttribute(string animatorProperty) + { + AnimatorProperty = animatorProperty; + } + + public AnimatorParamAttribute(string animatorProperty, AnimatorControllerParameterType type) : this(animatorProperty) + { + Type = type; + } + } +} \ No newline at end of file diff --git a/Assets/Scripts/System/Attributes/AnimatorParamAttribute.cs.meta b/Assets/Scripts/System/Attributes/AnimatorParamAttribute.cs.meta new file mode 100644 index 0000000..750e6ce --- /dev/null +++ b/Assets/Scripts/System/Attributes/AnimatorParamAttribute.cs.meta @@ -0,0 +1,2 @@ +fileFormatVersion: 2 +guid: c79f244245ba37ba1b7b73fe1f7a893f \ No newline at end of file diff --git a/Assets/Scripts/System/Attributes/ButtonAttribute.cs b/Assets/Scripts/System/Attributes/ButtonAttribute.cs new file mode 100644 index 0000000..d4dbbb9 --- /dev/null +++ b/Assets/Scripts/System/Attributes/ButtonAttribute.cs @@ -0,0 +1,16 @@ +using System; +using UnityEngine; + +namespace KitsuneCafe.System.Attributes +{ + [AttributeUsage(AttributeTargets.Method, Inherited = false, AllowMultiple = false)] + public sealed class ButtonAttribute : PropertyAttribute + { + public readonly string Label; + + public ButtonAttribute(string label) + { + Label = label; + } + } +} \ No newline at end of file diff --git a/Assets/Scripts/System/Attributes/ButtonAttribute.cs.meta b/Assets/Scripts/System/Attributes/ButtonAttribute.cs.meta new file mode 100644 index 0000000..34f7a59 --- /dev/null +++ b/Assets/Scripts/System/Attributes/ButtonAttribute.cs.meta @@ -0,0 +1,2 @@ +fileFormatVersion: 2 +guid: a03d0b93702032990be1b4f7e721669c \ No newline at end of file diff --git a/Assets/Scripts/System/Attributes/ConditionalDisplayAttribute.cs b/Assets/Scripts/System/Attributes/ConditionalDisplayAttribute.cs new file mode 100644 index 0000000..5baa0eb --- /dev/null +++ b/Assets/Scripts/System/Attributes/ConditionalDisplayAttribute.cs @@ -0,0 +1,40 @@ +using UnityEngine; + +namespace KitsuneCafe.System.Attributes +{ + public enum LogicalOperator + { + And, + Or + } + + public enum ComparisonOperator + { + Less, + Equal, + LessEqual, + Greater, + NotEqual, + GreaterEqual, + } + + public abstract class ConditionalDisplayAttribute : PropertyAttribute + { + public readonly string[] Properties; + public readonly LogicalOperator LogicalOperator; + public readonly ComparisonOperator ComparisonOperator; + public readonly object Value; + + public ConditionalDisplayAttribute(LogicalOperator logicalOp, ComparisonOperator compareOp, object value, params string[] properties) + { + LogicalOperator = logicalOp; + ComparisonOperator = compareOp; + Properties = properties; + Value = value; + } + + public ConditionalDisplayAttribute(LogicalOperator op, object value, string property) : this(op, ComparisonOperator.Equal, value, property) { } + public ConditionalDisplayAttribute(ComparisonOperator op, object value, string property) : this(LogicalOperator.And, op, value, property) { } + public ConditionalDisplayAttribute(string property, object value) : this(LogicalOperator.And, ComparisonOperator.Equal, value, property) { } + } +} diff --git a/Assets/Scripts/System/Attributes/ConditionalDisplayAttribute.cs.meta b/Assets/Scripts/System/Attributes/ConditionalDisplayAttribute.cs.meta new file mode 100644 index 0000000..70007bb --- /dev/null +++ b/Assets/Scripts/System/Attributes/ConditionalDisplayAttribute.cs.meta @@ -0,0 +1,2 @@ +fileFormatVersion: 2 +guid: 8f81fabe472df26f688e0f84c32173ca \ No newline at end of file diff --git a/Assets/Scripts/System/Attributes/ShowIfAttribute.cs b/Assets/Scripts/System/Attributes/ShowIfAttribute.cs new file mode 100644 index 0000000..115e4b9 --- /dev/null +++ b/Assets/Scripts/System/Attributes/ShowIfAttribute.cs @@ -0,0 +1,19 @@ +using System; + +namespace KitsuneCafe.System.Attributes +{ + public class ShowIfAttribute : ConditionalDisplayAttribute + { + public ShowIfAttribute(string property) : this(property, true) + { + } + + public ShowIfAttribute(string property, object value) : base(ComparisonOperator.Equal, value, property) + { + } + + public ShowIfAttribute(LogicalOperator logicalOp, params string[] properties) : base(logicalOp, ComparisonOperator.Equal, true, properties) + { + } + } +} diff --git a/Assets/Scripts/System/Attributes/ShowIfAttribute.cs.meta b/Assets/Scripts/System/Attributes/ShowIfAttribute.cs.meta new file mode 100644 index 0000000..c862a4c --- /dev/null +++ b/Assets/Scripts/System/Attributes/ShowIfAttribute.cs.meta @@ -0,0 +1,2 @@ +fileFormatVersion: 2 +guid: 31abd55fdce4fc5f2a7e5f5a97545d00 \ No newline at end of file diff --git a/Assets/Scripts/System/KCMenu.cs b/Assets/Scripts/System/KCMenu.cs index 80f3760..1eee189 100644 --- a/Assets/Scripts/System/KCMenu.cs +++ b/Assets/Scripts/System/KCMenu.cs @@ -17,5 +17,6 @@ namespace KitsuneCafe.System public const string Ui = Base + "UI/"; public const string UiElement = Ui + "Element/"; + public const string UiEffect = Ui + "Effect/"; } } diff --git a/Assets/Scripts/System/SerializableDuration.cs b/Assets/Scripts/System/SerializableDuration.cs new file mode 100644 index 0000000..aaff7e5 --- /dev/null +++ b/Assets/Scripts/System/SerializableDuration.cs @@ -0,0 +1,24 @@ +using System; +using UnityEngine; +using UnityEngine.UIElements; + +namespace KitsuneCafe.System +{ + [Serializable] + public class SerializableDuration + { + [SerializeField] + private float duration; + + [SerializeField] + private TimeUnit unit = TimeUnit.Seconds; + + + public static implicit operator Duration(SerializableDuration d) => Duration.From(d.duration, d.unit); + public static implicit operator TimeValue(SerializableDuration d) + { + Duration duration = d; + return new TimeValue(duration.Into(TimeUnit.Seconds)); + } + } +} diff --git a/Assets/Scripts/System/SerializableDuration.cs.meta b/Assets/Scripts/System/SerializableDuration.cs.meta new file mode 100644 index 0000000..9b319aa --- /dev/null +++ b/Assets/Scripts/System/SerializableDuration.cs.meta @@ -0,0 +1,2 @@ +fileFormatVersion: 2 +guid: 490bd35fe5e91e4489990185d89762ec \ No newline at end of file diff --git a/Assets/Scripts/UI/Effect.meta b/Assets/Scripts/UI/Effect.meta new file mode 100644 index 0000000..4c540f2 --- /dev/null +++ b/Assets/Scripts/UI/Effect.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 7c7294f6df791f4a09fe571a06b508a9 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/UI/Effect/FadeEffect.cs b/Assets/Scripts/UI/Effect/FadeEffect.cs new file mode 100644 index 0000000..2275360 --- /dev/null +++ b/Assets/Scripts/UI/Effect/FadeEffect.cs @@ -0,0 +1,49 @@ +using KitsuneCafe.System; +using R3; +using UnityEngine; +using UnityEngine.UIElements; + +namespace KitsuneCafe.UI +{ + [CreateAssetMenu(menuName = KitsuneCafeMenu.UiEffect + "Fade")] + public class TransitionEffect : BaseUIEffect + { + [SerializeField] + private string propertyName; + + [SerializeField] + private SerializableDuration duration; + + [SerializeField] + private EasingMode easing; + + [SerializeField] + private SerializableDuration delay; + + public override IUIEffect Instantiate() + { + return new TransitionEffectInstance(propertyName, duration, easing, delay); + } + } + + public readonly struct TransitionEffectInstance : IUIEffect + { + public readonly StylePropertyName PropertyName; + public readonly TimeValue Duration; + public readonly EasingFunction Easing; + public readonly TimeValue Delay; + + public TransitionEffectInstance(StylePropertyName name, TimeValue duration, EasingFunction easing, TimeValue delay) + { + PropertyName = name; + Duration = duration; + Easing = easing; + Delay = delay; + } + + public Observable Execute(VisualElement target) + { + return Observable.Empty(); + } + } +} diff --git a/Assets/Scripts/UI/Effect/FadeEffect.cs.meta b/Assets/Scripts/UI/Effect/FadeEffect.cs.meta new file mode 100644 index 0000000..5d442ec --- /dev/null +++ b/Assets/Scripts/UI/Effect/FadeEffect.cs.meta @@ -0,0 +1,2 @@ +fileFormatVersion: 2 +guid: 94cc50e7b5f20a817aef3384d0889279 \ No newline at end of file diff --git a/Assets/Scripts/UI/Effect/IUIEffect.cs b/Assets/Scripts/UI/Effect/IUIEffect.cs new file mode 100644 index 0000000..9a3bc7e --- /dev/null +++ b/Assets/Scripts/UI/Effect/IUIEffect.cs @@ -0,0 +1,16 @@ +using R3; +using UnityEngine; +using UnityEngine.UIElements; + +namespace KitsuneCafe.UI +{ + public interface IUIEffect + { + Observable Execute(VisualElement target); + } + + public abstract class BaseUIEffect : ScriptableObject + { + public abstract IUIEffect Instantiate(); + } +} diff --git a/Assets/Scripts/UI/Effect/IUIEffect.cs.meta b/Assets/Scripts/UI/Effect/IUIEffect.cs.meta new file mode 100644 index 0000000..5fd2a25 --- /dev/null +++ b/Assets/Scripts/UI/Effect/IUIEffect.cs.meta @@ -0,0 +1,2 @@ +fileFormatVersion: 2 +guid: b90c500c681632620a8ce89a8f3aef3f \ No newline at end of file diff --git a/Assets/Scripts/UI/Notification.cs b/Assets/Scripts/UI/Notification.cs new file mode 100644 index 0000000..f68b70a --- /dev/null +++ b/Assets/Scripts/UI/Notification.cs @@ -0,0 +1,19 @@ +using UnityEngine; + +namespace KitsuneCafe.UI +{ + public class Notification : MonoBehaviour + { + [SerializeField] + private UIOrchestrator orchestrator; + + [SerializeField] + private ModalElement modal; + + [SerializeField] + private string title; + + [SerializeField] + private string message; + } +} diff --git a/Assets/Scripts/UI/Notification.cs.meta b/Assets/Scripts/UI/Notification.cs.meta new file mode 100644 index 0000000..976be22 --- /dev/null +++ b/Assets/Scripts/UI/Notification.cs.meta @@ -0,0 +1,2 @@ +fileFormatVersion: 2 +guid: 024d27dc807efe80e9810adeb225357b \ No newline at end of file diff --git a/Assets/UI/Modal.uxml b/Assets/UI/Modal.uxml index 47c437c..a9bbfd8 100644 --- a/Assets/UI/Modal.uxml +++ b/Assets/UI/Modal.uxml @@ -1,9 +1,10 @@ - - - +