Files
beyond/Assets/Shaders/SoftStep.shadersubgraph
2024-11-20 15:21:28 +01:00

501 lines
12 KiB
Plaintext

{
"m_SGVersion": 2,
"m_Type": "UnityEditor.ShaderGraph.GraphData",
"m_ObjectId": "df9defdd6d094e6998a40073f92c692b",
"m_Properties": [
{
"m_Id": "246ad3cfec3543bfb99f816040f3d9e8"
},
{
"m_Id": "736662cebec945f989210d20f29beb93"
},
{
"m_Id": "c9b8c1f6671142adb2db2dd1dcbe3758"
}
],
"m_Keywords": [],
"m_Nodes": [
{
"m_Id": "fcdb28b239d84bf19e253821c5c72462"
},
{
"m_Id": "0e7dbaa577c64fada69c01f5f54d993f"
},
{
"m_Id": "14e837e6117546318157bba2734e3bcf"
},
{
"m_Id": "b3694b17aa114ee8aa2cb302fa3d1444"
},
{
"m_Id": "00bda6054f67414f9fd8077e430e0862"
}
],
"m_GroupDatas": [],
"m_StickyNoteDatas": [],
"m_Edges": [
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "00bda6054f67414f9fd8077e430e0862"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "0e7dbaa577c64fada69c01f5f54d993f"
},
"m_SlotId": 3
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "0e7dbaa577c64fada69c01f5f54d993f"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "fcdb28b239d84bf19e253821c5c72462"
},
"m_SlotId": 1
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "14e837e6117546318157bba2734e3bcf"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "0e7dbaa577c64fada69c01f5f54d993f"
},
"m_SlotId": 1
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "b3694b17aa114ee8aa2cb302fa3d1444"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "0e7dbaa577c64fada69c01f5f54d993f"
},
"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": ""
}
},
"m_Path": "Sub Graphs",
"m_ConcretePrecision": 0,
"m_PreviewMode": 2,
"m_OutputNode": {
"m_Id": "fcdb28b239d84bf19e253821c5c72462"
},
"m_ActiveTargets": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.PropertyNode",
"m_ObjectId": "00bda6054f67414f9fd8077e430e0862",
"m_Group": {
"m_Id": ""
},
"m_Name": "Property",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -757.0,
"y": -29.0,
"width": 106.0,
"height": 34.0
}
},
"m_Slots": [
{
"m_Id": "6f55af3458f04742a77638b2cee711b3"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_Property": {
"m_Id": "c9b8c1f6671142adb2db2dd1dcbe3758"
}
}
{
"m_SGVersion": 1,
"m_Type": "UnityEditor.ShaderGraph.CustomFunctionNode",
"m_ObjectId": "0e7dbaa577c64fada69c01f5f54d993f",
"m_Group": {
"m_Id": ""
},
"m_Name": "SoftStep (Custom Function)",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -565.0,
"y": -136.0,
"width": 0.0,
"height": 0.0
}
},
"m_Slots": [
{
"m_Id": "f6f3a0a3a0564ca6be1adb460cdc8b14"
},
{
"m_Id": "26736024791c46b09abfbf0dc8d73acf"
},
{
"m_Id": "7dda72cbec9a4908b908828de43f2970"
},
{
"m_Id": "91fe2b086ba14dfb83322c1f4a96e64d"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_SourceType": 1,
"m_FunctionName": "SoftStep",
"m_FunctionSource": "",
"m_FunctionBody": " if (value < th)\r\n {\r\n _out = 0.0;\r\n }\r\n else if (value > (th + width))\r\n {\r\n _out = 1.0f;\r\n }\r\n else\r\n {\r\n _out = value - th;\r\n _out /= width;\r\n }"
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.PropertyNode",
"m_ObjectId": "14e837e6117546318157bba2734e3bcf",
"m_Group": {
"m_Id": ""
},
"m_Name": "Property",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -754.0,
"y": -97.0,
"width": 0.0,
"height": 0.0
}
},
"m_Slots": [
{
"m_Id": "512694c884db4daaa26af6504a3388ae"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_Property": {
"m_Id": "246ad3cfec3543bfb99f816040f3d9e8"
}
}
{
"m_SGVersion": 1,
"m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty",
"m_ObjectId": "246ad3cfec3543bfb99f816040f3d9e8",
"m_Guid": {
"m_GuidSerialized": "b678301f-0a36-4acd-848f-6586b9458636"
},
"m_Name": "value",
"m_DefaultRefNameVersion": 1,
"m_RefNameGeneratedByDisplayName": "value",
"m_DefaultReferenceName": "value",
"m_OverrideReferenceName": "",
"m_GeneratePropertyBlock": true,
"m_Precision": 0,
"overrideHLSLDeclaration": false,
"hlslDeclarationOverride": 0,
"m_Hidden": false,
"m_Value": 0.0,
"m_FloatType": 0,
"m_RangeValues": {
"x": 0.0,
"y": 1.0
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "26736024791c46b09abfbf0dc8d73acf",
"m_Id": 2,
"m_DisplayName": "th",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "th",
"m_StageCapability": 3,
"m_Value": 0.0,
"m_DefaultValue": 0.0,
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "37f35f6d108245e3a741baca00f1f778",
"m_Id": 1,
"m_DisplayName": "_out",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "_out",
"m_StageCapability": 3,
"m_Value": 0.0,
"m_DefaultValue": 0.0,
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "496ad9877e094e2387aa4c2b8d039dc2",
"m_Id": 0,
"m_DisplayName": "th",
"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": "512694c884db4daaa26af6504a3388ae",
"m_Id": 0,
"m_DisplayName": "value",
"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": "6f55af3458f04742a77638b2cee711b3",
"m_Id": 0,
"m_DisplayName": "width",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "Out",
"m_StageCapability": 3,
"m_Value": 0.0,
"m_DefaultValue": 0.0,
"m_Labels": []
}
{
"m_SGVersion": 1,
"m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty",
"m_ObjectId": "736662cebec945f989210d20f29beb93",
"m_Guid": {
"m_GuidSerialized": "cd0b55cd-bba7-4bc0-b25b-a52271c1a5e1"
},
"m_Name": "th",
"m_DefaultRefNameVersion": 1,
"m_RefNameGeneratedByDisplayName": "th",
"m_DefaultReferenceName": "th",
"m_OverrideReferenceName": "",
"m_GeneratePropertyBlock": true,
"m_Precision": 0,
"overrideHLSLDeclaration": false,
"hlslDeclarationOverride": 0,
"m_Hidden": false,
"m_Value": 0.0,
"m_FloatType": 0,
"m_RangeValues": {
"x": 0.0,
"y": 1.0
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "7dda72cbec9a4908b908828de43f2970",
"m_Id": 3,
"m_DisplayName": "width",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "width",
"m_StageCapability": 3,
"m_Value": 0.0,
"m_DefaultValue": 0.0,
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "91fe2b086ba14dfb83322c1f4a96e64d",
"m_Id": 0,
"m_DisplayName": "_out",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "_out",
"m_StageCapability": 3,
"m_Value": 0.0,
"m_DefaultValue": 0.0,
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.PropertyNode",
"m_ObjectId": "b3694b17aa114ee8aa2cb302fa3d1444",
"m_Group": {
"m_Id": ""
},
"m_Name": "Property",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -738.0,
"y": -63.0,
"width": 87.0,
"height": 34.0
}
},
"m_Slots": [
{
"m_Id": "496ad9877e094e2387aa4c2b8d039dc2"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_Property": {
"m_Id": "736662cebec945f989210d20f29beb93"
}
}
{
"m_SGVersion": 1,
"m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty",
"m_ObjectId": "c9b8c1f6671142adb2db2dd1dcbe3758",
"m_Guid": {
"m_GuidSerialized": "9c79e190-2862-49da-9818-3c6b9fd2747c"
},
"m_Name": "width",
"m_DefaultRefNameVersion": 1,
"m_RefNameGeneratedByDisplayName": "width",
"m_DefaultReferenceName": "width",
"m_OverrideReferenceName": "",
"m_GeneratePropertyBlock": true,
"m_Precision": 0,
"overrideHLSLDeclaration": false,
"hlslDeclarationOverride": 0,
"m_Hidden": false,
"m_Value": 0.0,
"m_FloatType": 0,
"m_RangeValues": {
"x": 0.0,
"y": 1.0
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "f6f3a0a3a0564ca6be1adb460cdc8b14",
"m_Id": 1,
"m_DisplayName": "value",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "value",
"m_StageCapability": 3,
"m_Value": 0.0,
"m_DefaultValue": 0.0,
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.SubGraphOutputNode",
"m_ObjectId": "fcdb28b239d84bf19e253821c5c72462",
"m_Group": {
"m_Id": ""
},
"m_Name": "Output",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -264.0,
"y": -101.0,
"width": 85.0,
"height": 77.0
}
},
"m_Slots": [
{
"m_Id": "37f35f6d108245e3a741baca00f1f778"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"IsFirstSlotValid": true
}