{ "m_SGVersion": 3, "m_Type": "UnityEditor.ShaderGraph.GraphData", "m_ObjectId": "57690dd0a7044f7db9b1be37ca7e775d", "m_Properties": [ { "m_Id": "200f509d2717478aafb21bf54a385efe" } ], "m_Keywords": [], "m_Dropdowns": [], "m_CategoryData": [ { "m_Id": "1e7e0d3d682d45a7a0ec9de71fda43ed" } ], "m_Nodes": [ { "m_Id": "56d03c1d5a3c4eeda95194690450ca92" }, { "m_Id": "9d08d3bb7e77482f85e9e256a6794e1b" }, { "m_Id": "acb0268c2b414e38970678a4b85e9910" }, { "m_Id": "fc2165714e974278a2d27395c1eb6187" }, { "m_Id": "4052b4219eee4e098e150ecf2fe73b14" } ], "m_GroupDatas": [ { "m_Id": "14b75083cee14a7bab583b8e1e8e7c0d" } ], "m_StickyNoteDatas": [], "m_Edges": [ { "m_OutputSlot": { "m_Node": { "m_Id": "4052b4219eee4e098e150ecf2fe73b14" }, "m_SlotId": 0 }, "m_InputSlot": { "m_Node": { "m_Id": "acb0268c2b414e38970678a4b85e9910" }, "m_SlotId": 2 } }, { "m_OutputSlot": { "m_Node": { "m_Id": "9d08d3bb7e77482f85e9e256a6794e1b" }, "m_SlotId": 0 }, "m_InputSlot": { "m_Node": { "m_Id": "acb0268c2b414e38970678a4b85e9910" }, "m_SlotId": 1 } }, { "m_OutputSlot": { "m_Node": { "m_Id": "acb0268c2b414e38970678a4b85e9910" }, "m_SlotId": 3 }, "m_InputSlot": { "m_Node": { "m_Id": "56d03c1d5a3c4eeda95194690450ca92" }, "m_SlotId": 1 } }, { "m_OutputSlot": { "m_Node": { "m_Id": "fc2165714e974278a2d27395c1eb6187" }, "m_SlotId": 1 }, "m_InputSlot": { "m_Node": { "m_Id": "acb0268c2b414e38970678a4b85e9910" }, "m_SlotId": 0 } } ], "m_VertexContext": { "m_Position": { "x": 0.0, "y": 0.0 }, "m_Blocks": [] }, "m_FragmentContext": { "m_Position": { "x": 0.0, "y": 0.0 }, "m_Blocks": [] }, "m_PreviewData": { "serializedMesh": { "m_SerializedMesh": "{\"mesh\":{\"instanceID\":0}}", "m_Guid": "" }, "preventRotation": false }, "m_Path": "Water", "m_GraphPrecision": 1, "m_PreviewMode": 2, "m_OutputNode": { "m_Id": "56d03c1d5a3c4eeda95194690450ca92" }, "m_SubDatas": [], "m_ActiveTargets": [] } { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.GroupData", "m_ObjectId": "14b75083cee14a7bab583b8e1e8e7c0d", "m_Title": "Percieved depth (underwater fog)", "m_Position": { "x": -304.0, "y": -30.0 } } { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.CategoryData", "m_ObjectId": "1e7e0d3d682d45a7a0ec9de71fda43ed", "m_Name": "", "m_ChildObjectList": [ { "m_Id": "200f509d2717478aafb21bf54a385efe" } ] } { "m_SGVersion": 1, "m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty", "m_ObjectId": "200f509d2717478aafb21bf54a385efe", "m_Guid": { "m_GuidSerialized": "9eee8145-7387-4aa2-b151-9547c20b60d1" }, "m_Name": "Fog Density", "m_DefaultRefNameVersion": 1, "m_RefNameGeneratedByDisplayName": "Fog Density", "m_DefaultReferenceName": "_Fog_Density", "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": 6.0, "m_FloatType": 0, "m_RangeValues": { "x": 0.0, "y": 1.0 } } { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.PropertyNode", "m_ObjectId": "4052b4219eee4e098e150ecf2fe73b14", "m_Group": { "m_Id": "14b75083cee14a7bab583b8e1e8e7c0d" }, "m_Name": "Property", "m_DrawState": { "m_Expanded": true, "m_Position": { "serializedVersion": "2", "x": -266.0, "y": 288.0, "width": 138.0, "height": 34.0 } }, "m_Slots": [ { "m_Id": "ebfce0ea751d44f8835e9b30dc1c8b2b" } ], "synonyms": [], "m_Precision": 0, "m_PreviewExpanded": true, "m_DismissedVersion": 0, "m_PreviewMode": 0, "m_CustomColors": { "m_SerializableColors": [] }, "m_Property": { "m_Id": "200f509d2717478aafb21bf54a385efe" } } { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", "m_ObjectId": "4563ae525d1041a1a544494802624c15", "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": "4ceff05fc3494e178d74e4f66112da10", "m_Id": 1, "m_DisplayName": "Fog_Attentuation", "m_SlotType": 0, "m_Hidden": false, "m_ShaderOutputName": "Fog_Attentuation", "m_StageCapability": 2, "m_Value": 0.0, "m_DefaultValue": 0.0, "m_Labels": [] } { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.SubGraphOutputNode", "m_ObjectId": "56d03c1d5a3c4eeda95194690450ca92", "m_Group": { "m_Id": "" }, "m_Name": "Output", "m_DrawState": { "m_Expanded": true, "m_Position": { "serializedVersion": "2", "x": 375.0000305175781, "y": 162.99998474121095, "width": 142.99996948242188, "height": 77.00001525878906 } }, "m_Slots": [ { "m_Id": "4ceff05fc3494e178d74e4f66112da10" } ], "synonyms": [], "m_Precision": 0, "m_PreviewExpanded": true, "m_DismissedVersion": 0, "m_PreviewMode": 0, "m_CustomColors": { "m_SerializableColors": [] }, "IsFirstSlotValid": true } { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", "m_ObjectId": "6369b3ee5861467c9563190ccf2198db", "m_Id": 1, "m_DisplayName": "positionCS", "m_SlotType": 0, "m_Hidden": false, "m_ShaderOutputName": "positionCS", "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": "6f81186116594405b8db61ef33eaeec7", "m_Id": 3, "m_DisplayName": "depthAttenuation", "m_SlotType": 1, "m_Hidden": false, "m_ShaderOutputName": "depthAttenuation", "m_StageCapability": 3, "m_Value": 0.0, "m_DefaultValue": 0.0, "m_Labels": [] } { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.ScreenPositionNode", "m_ObjectId": "9d08d3bb7e77482f85e9e256a6794e1b", "m_Group": { "m_Id": "14b75083cee14a7bab583b8e1e8e7c0d" }, "m_Name": "Screen Position", "m_DrawState": { "m_Expanded": true, "m_Position": { "serializedVersion": "2", "x": -273.5, "y": 152.0, "width": 145.0, "height": 129.0 } }, "m_Slots": [ { "m_Id": "4563ae525d1041a1a544494802624c15" } ], "synonyms": [], "m_Precision": 0, "m_PreviewExpanded": false, "m_DismissedVersion": 0, "m_PreviewMode": 0, "m_CustomColors": { "m_SerializableColors": [] }, "m_ScreenSpaceType": 1 } { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", "m_ObjectId": "a5a15fc6e6f4433a919d21d7ef135465", "m_Id": 0, "m_DisplayName": "eyeDepth", "m_SlotType": 0, "m_Hidden": false, "m_ShaderOutputName": "eyeDepth", "m_StageCapability": 3, "m_Value": 0.0, "m_DefaultValue": 0.0, "m_Labels": [] } { "m_SGVersion": 1, "m_Type": "UnityEditor.ShaderGraph.CustomFunctionNode", "m_ObjectId": "acb0268c2b414e38970678a4b85e9910", "m_Group": { "m_Id": "14b75083cee14a7bab583b8e1e8e7c0d" }, "m_Name": "CalcWaterDepth (Custom Function)", "m_DrawState": { "m_Expanded": true, "m_Position": { "serializedVersion": "2", "x": -6.5, "y": 162.99993896484376, "width": 254.0, "height": 166.0 } }, "m_Slots": [ { "m_Id": "a5a15fc6e6f4433a919d21d7ef135465" }, { "m_Id": "6369b3ee5861467c9563190ccf2198db" }, { "m_Id": "b1aea78a4cb846b687c3e3c8a51a8131" }, { "m_Id": "6f81186116594405b8db61ef33eaeec7" } ], "synonyms": [ "code", "HLSL" ], "m_Precision": 0, "m_PreviewExpanded": false, "m_DismissedVersion": 0, "m_PreviewMode": 0, "m_CustomColors": { "m_SerializableColors": [] }, "m_SourceType": 1, "m_FunctionName": "CalcWaterDepth", "m_FunctionSource": "", "m_FunctionBody": "const float sceneDepth = eyeDepth;\r\r\n\rconst float clipSpaceDepth = positionCS.w;\n\nfloat surfaceDepth = (sceneDepth - clipSpaceDepth);\r\n\r\ndepthAttenuation = saturate(1.0 - exp(-surfaceDepth * depthScalar * 0.1));" } { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", "m_ObjectId": "b1aea78a4cb846b687c3e3c8a51a8131", "m_Id": 2, "m_DisplayName": "depthScalar", "m_SlotType": 0, "m_Hidden": false, "m_ShaderOutputName": "depthScalar", "m_StageCapability": 3, "m_Value": 0.0, "m_DefaultValue": 0.0, "m_Labels": [] } { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", "m_ObjectId": "dfeed0284ab2426081fbde3ae2d4cf98", "m_Id": 1, "m_DisplayName": "Out", "m_SlotType": 1, "m_Hidden": false, "m_ShaderOutputName": "Out", "m_StageCapability": 2, "m_Value": 0.0, "m_DefaultValue": 0.0, "m_Labels": [] } { "m_SGVersion": 0, "m_Type": "UnityEditor.ShaderGraph.ScreenPositionMaterialSlot", "m_ObjectId": "e98042f018904841862a997efed96a8d", "m_Id": 0, "m_DisplayName": "UV", "m_SlotType": 0, "m_Hidden": false, "m_ShaderOutputName": "UV", "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": "ebfce0ea751d44f8835e9b30dc1c8b2b", "m_Id": 0, "m_DisplayName": "Fog Density", "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.SceneDepthNode", "m_ObjectId": "fc2165714e974278a2d27395c1eb6187", "m_Group": { "m_Id": "14b75083cee14a7bab583b8e1e8e7c0d" }, "m_Name": "Scene Depth", "m_DrawState": { "m_Expanded": true, "m_Position": { "serializedVersion": "2", "x": -279.5, "y": 29.0, "width": 145.0, "height": 112.0 } }, "m_Slots": [ { "m_Id": "e98042f018904841862a997efed96a8d" }, { "m_Id": "dfeed0284ab2426081fbde3ae2d4cf98" } ], "synonyms": [ "zbuffer", "zdepth" ], "m_Precision": 0, "m_PreviewExpanded": true, "m_DismissedVersion": 0, "m_PreviewMode": 0, "m_CustomColors": { "m_SerializableColors": [] }, "m_DepthSamplingMode": 2 }