| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538 |
- {
- "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
- }
|