Rasagar/Assets/TerrainDemoScene_URP/ShaderGraphs/SubGraphs/PseudoSubsurface.shadersubgraph
2024-08-26 23:07:20 +03:00

803 lines
19 KiB
Plaintext

{
"m_SGVersion": 3,
"m_Type": "UnityEditor.ShaderGraph.GraphData",
"m_ObjectId": "b0a654facb884db7b04051fa0f2b6b78",
"m_Properties": [
{
"m_Id": "e4428ca6ea9d45f1b3abea6daf853ccc"
},
{
"m_Id": "f8b29b64032d40bb97f7929d1bd5e8b4"
},
{
"m_Id": "fa637894a3d14ddca908a48b6f74457e"
},
{
"m_Id": "f65f0c1391904e669bec28ea34967ddc"
}
],
"m_Keywords": [],
"m_Dropdowns": [],
"m_CategoryData": [
{
"m_Id": "20513b2ca7eb4833a35784a9eec0f637"
}
],
"m_Nodes": [
{
"m_Id": "7ffa044d5b734979814711629d0c9a03"
},
{
"m_Id": "709e60500d6b41569075bd4864f67b88"
},
{
"m_Id": "ea43e60c5fb644bb91c953fbd2dbeb97"
},
{
"m_Id": "f787854d379940b49846c9528a923395"
},
{
"m_Id": "df96f9c4b84e479bba8e78be04cb38d6"
},
{
"m_Id": "2a98c51675fc4ff0b5d3f7c3e7fdd3c8"
},
{
"m_Id": "96c8aa8f1a594047a395661dafaba9fe"
}
],
"m_GroupDatas": [],
"m_StickyNoteDatas": [],
"m_Edges": [
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "2a98c51675fc4ff0b5d3f7c3e7fdd3c8"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "709e60500d6b41569075bd4864f67b88"
},
"m_SlotId": 4
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "709e60500d6b41569075bd4864f67b88"
},
"m_SlotId": 1
},
"m_InputSlot": {
"m_Node": {
"m_Id": "96c8aa8f1a594047a395661dafaba9fe"
},
"m_SlotId": 0
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "96c8aa8f1a594047a395661dafaba9fe"
},
"m_SlotId": 1
},
"m_InputSlot": {
"m_Node": {
"m_Id": "7ffa044d5b734979814711629d0c9a03"
},
"m_SlotId": 1
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "df96f9c4b84e479bba8e78be04cb38d6"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "709e60500d6b41569075bd4864f67b88"
},
"m_SlotId": 3
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "ea43e60c5fb644bb91c953fbd2dbeb97"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "709e60500d6b41569075bd4864f67b88"
},
"m_SlotId": 0
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "f787854d379940b49846c9528a923395"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "709e60500d6b41569075bd4864f67b88"
},
"m_SlotId": 2
}
}
],
"m_VertexContext": {
"m_Position": {
"x": 0.0,
"y": 0.0
},
"m_Blocks": []
},
"m_FragmentContext": {
"m_Position": {
"x": 0.0,
"y": 0.0
},
"m_Blocks": []
},
"m_PreviewData": {
"serializedMesh": {
"m_SerializedMesh": "{\"mesh\":{\"instanceID\":0}}",
"m_Guid": ""
},
"preventRotation": false
},
"m_Path": "Sub Graphs",
"m_GraphPrecision": 1,
"m_PreviewMode": 2,
"m_OutputNode": {
"m_Id": "7ffa044d5b734979814711629d0c9a03"
},
"m_ActiveTargets": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot",
"m_ObjectId": "02ff1d7c78114cf6a5bc7ada67337fd3",
"m_Id": 1,
"m_DisplayName": "Out",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "Out",
"m_StageCapability": 3,
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot",
"m_ObjectId": "15020811a2484e0487ebfb7e10b9a140",
"m_Id": 2,
"m_DisplayName": "WorldNormal",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "WorldNormal",
"m_StageCapability": 3,
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.CategoryData",
"m_ObjectId": "20513b2ca7eb4833a35784a9eec0f637",
"m_Name": "",
"m_ChildObjectList": [
{
"m_Id": "e4428ca6ea9d45f1b3abea6daf853ccc"
},
{
"m_Id": "f8b29b64032d40bb97f7929d1bd5e8b4"
},
{
"m_Id": "fa637894a3d14ddca908a48b6f74457e"
},
{
"m_Id": "f65f0c1391904e669bec28ea34967ddc"
}
]
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.PropertyNode",
"m_ObjectId": "2a98c51675fc4ff0b5d3f7c3e7fdd3c8",
"m_Group": {
"m_Id": ""
},
"m_Name": "Property",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -879.4624633789063,
"y": 197.052490234375,
"width": 0.0,
"height": 0.0
}
},
"m_Slots": [
{
"m_Id": "a54bcd0e9fcb4350b48dc0a01301869e"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_Property": {
"m_Id": "f65f0c1391904e669bec28ea34967ddc"
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "2b4caac210744db79cc8e36234b6e05a",
"m_Id": 0,
"m_DisplayName": "SubsurfaceRadius",
"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": "4dc605c84f144af6ab66eaaddc3f0989",
"m_Id": 3,
"m_DisplayName": "SSRadius",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "SSRadius",
"m_StageCapability": 3,
"m_Value": 0.0,
"m_DefaultValue": 0.0,
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot",
"m_ObjectId": "4fde392824c340f5bd251c5e824db2ec",
"m_Id": 1,
"m_DisplayName": "Out_Vector4",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "Out_Vector4",
"m_StageCapability": 3,
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "6c9e9517a8f34a4bb2b014d66bf20496",
"m_Id": 4,
"m_DisplayName": "ShadowResponse",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "ShadowResponse",
"m_StageCapability": 3,
"m_Value": 0.0,
"m_DefaultValue": 0.0,
"m_Labels": []
}
{
"m_SGVersion": 1,
"m_Type": "UnityEditor.ShaderGraph.CustomFunctionNode",
"m_ObjectId": "709e60500d6b41569075bd4864f67b88",
"m_Group": {
"m_Id": ""
},
"m_Name": "PseudoSubsurface (Custom Function)",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -627.0,
"y": -32.0,
"width": 262.0,
"height": 326.0
}
},
"m_Slots": [
{
"m_Id": "731c7b6ab7514287986e76f4d0c4c510"
},
{
"m_Id": "15020811a2484e0487ebfb7e10b9a140"
},
{
"m_Id": "4dc605c84f144af6ab66eaaddc3f0989"
},
{
"m_Id": "6c9e9517a8f34a4bb2b014d66bf20496"
},
{
"m_Id": "e4fa439b166a460687e7cf64ae56d0a9"
}
],
"synonyms": [
"code",
"HLSL"
],
"m_Precision": 2,
"m_PreviewExpanded": true,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_SourceType": 0,
"m_FunctionName": "PseudoSubsurface",
"m_FunctionSource": "42c69bce689ca1845a44cd416f3614ef",
"m_FunctionBody": "Enter function body here..."
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot",
"m_ObjectId": "731c7b6ab7514287986e76f4d0c4c510",
"m_Id": 0,
"m_DisplayName": "WorldPosition",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "WorldPosition",
"m_StageCapability": 3,
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot",
"m_ObjectId": "7e7c80c56ca84fe3842dfa6c9bfe676d",
"m_Id": 0,
"m_DisplayName": "WorldNormal",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "Out",
"m_StageCapability": 3,
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.SubGraphOutputNode",
"m_ObjectId": "7ffa044d5b734979814711629d0c9a03",
"m_Group": {
"m_Id": ""
},
"m_Name": "Output",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -78.0,
"y": -32.0,
"width": 121.0,
"height": 77.0
}
},
"m_Slots": [
{
"m_Id": "4fde392824c340f5bd251c5e824db2ec"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"IsFirstSlotValid": true
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.AbsoluteNode",
"m_ObjectId": "96c8aa8f1a594047a395661dafaba9fe",
"m_Group": {
"m_Id": ""
},
"m_Name": "Absolute",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -300.0,
"y": -19.0,
"width": 132.0,
"height": 94.0
}
},
"m_Slots": [
{
"m_Id": "c2736f9faa6246b781680fa4a5a0f91b"
},
{
"m_Id": "02ff1d7c78114cf6a5bc7ada67337fd3"
}
],
"synonyms": [
"positive"
],
"m_Precision": 0,
"m_PreviewExpanded": false,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "a54bcd0e9fcb4350b48dc0a01301869e",
"m_Id": 0,
"m_DisplayName": "ShadowResponse",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "Out",
"m_StageCapability": 3,
"m_Value": 0.0,
"m_DefaultValue": 0.0,
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot",
"m_ObjectId": "b176c785ba6243948e00b1bdcc01b9ea",
"m_Id": 0,
"m_DisplayName": "WorldPosition",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "Out",
"m_StageCapability": 3,
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot",
"m_ObjectId": "c2736f9faa6246b781680fa4a5a0f91b",
"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.PropertyNode",
"m_ObjectId": "df96f9c4b84e479bba8e78be04cb38d6",
"m_Group": {
"m_Id": ""
},
"m_Name": "Property",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -891.0,
"y": 103.0,
"width": 170.0,
"height": 34.0
}
},
"m_Slots": [
{
"m_Id": "2b4caac210744db79cc8e36234b6e05a"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_Property": {
"m_Id": "fa637894a3d14ddca908a48b6f74457e"
}
}
{
"m_SGVersion": 1,
"m_Type": "UnityEditor.ShaderGraph.Internal.Vector3ShaderProperty",
"m_ObjectId": "e4428ca6ea9d45f1b3abea6daf853ccc",
"m_Guid": {
"m_GuidSerialized": "a8952847-5d2f-43d3-a86b-be6d40929802"
},
"m_Name": "WorldPosition",
"m_DefaultRefNameVersion": 1,
"m_RefNameGeneratedByDisplayName": "WorldPosition",
"m_DefaultReferenceName": "_WorldPosition",
"m_OverrideReferenceName": "",
"m_GeneratePropertyBlock": true,
"m_UseCustomSlotLabel": false,
"m_CustomSlotLabel": "",
"m_Precision": 0,
"overrideHLSLDeclaration": false,
"hlslDeclarationOverride": 0,
"m_Hidden": false,
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot",
"m_ObjectId": "e4fa439b166a460687e7cf64ae56d0a9",
"m_Id": 1,
"m_DisplayName": "ssAmount",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "ssAmount",
"m_StageCapability": 3,
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.PropertyNode",
"m_ObjectId": "ea43e60c5fb644bb91c953fbd2dbeb97",
"m_Group": {
"m_Id": ""
},
"m_Name": "Property",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -882.0,
"y": -32.0,
"width": 149.0,
"height": 34.0
}
},
"m_Slots": [
{
"m_Id": "b176c785ba6243948e00b1bdcc01b9ea"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_Property": {
"m_Id": "e4428ca6ea9d45f1b3abea6daf853ccc"
}
}
{
"m_SGVersion": 1,
"m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty",
"m_ObjectId": "f65f0c1391904e669bec28ea34967ddc",
"m_Guid": {
"m_GuidSerialized": "827473d3-ffd3-48c1-b233-9ae2056dbea7"
},
"m_Name": "ShadowResponse",
"m_DefaultRefNameVersion": 1,
"m_RefNameGeneratedByDisplayName": "ShadowResponse",
"m_DefaultReferenceName": "_ShadowResponse",
"m_OverrideReferenceName": "",
"m_GeneratePropertyBlock": true,
"m_UseCustomSlotLabel": false,
"m_CustomSlotLabel": "",
"m_Precision": 0,
"overrideHLSLDeclaration": false,
"hlslDeclarationOverride": 0,
"m_Hidden": false,
"m_Value": 0.0,
"m_FloatType": 0,
"m_RangeValues": {
"x": 0.0,
"y": 1.0
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.PropertyNode",
"m_ObjectId": "f787854d379940b49846c9528a923395",
"m_Group": {
"m_Id": ""
},
"m_Name": "Property",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -882.0,
"y": 28.0,
"width": 145.0,
"height": 34.0
}
},
"m_Slots": [
{
"m_Id": "7e7c80c56ca84fe3842dfa6c9bfe676d"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_Property": {
"m_Id": "f8b29b64032d40bb97f7929d1bd5e8b4"
}
}
{
"m_SGVersion": 1,
"m_Type": "UnityEditor.ShaderGraph.Internal.Vector3ShaderProperty",
"m_ObjectId": "f8b29b64032d40bb97f7929d1bd5e8b4",
"m_Guid": {
"m_GuidSerialized": "9fdadecd-f325-4a8b-a5a3-9d16fe429967"
},
"m_Name": "WorldNormal",
"m_DefaultRefNameVersion": 1,
"m_RefNameGeneratedByDisplayName": "WorldNormal",
"m_DefaultReferenceName": "_WorldNormal",
"m_OverrideReferenceName": "",
"m_GeneratePropertyBlock": true,
"m_UseCustomSlotLabel": false,
"m_CustomSlotLabel": "",
"m_Precision": 0,
"overrideHLSLDeclaration": false,
"hlslDeclarationOverride": 0,
"m_Hidden": false,
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
}
}
{
"m_SGVersion": 1,
"m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty",
"m_ObjectId": "fa637894a3d14ddca908a48b6f74457e",
"m_Guid": {
"m_GuidSerialized": "8d087d31-6b90-4479-9415-44c4a813f83b"
},
"m_Name": "SubsurfaceRadius",
"m_DefaultRefNameVersion": 1,
"m_RefNameGeneratedByDisplayName": "SubsurfaceRadius",
"m_DefaultReferenceName": "_SubsurfaceRadius",
"m_OverrideReferenceName": "",
"m_GeneratePropertyBlock": true,
"m_UseCustomSlotLabel": false,
"m_CustomSlotLabel": "",
"m_Precision": 0,
"overrideHLSLDeclaration": false,
"hlslDeclarationOverride": 0,
"m_Hidden": false,
"m_Value": 0.0,
"m_FloatType": 0,
"m_RangeValues": {
"x": 0.0,
"y": 1.0
}
}