forked from BilalY/Rasagar
659 lines
15 KiB
Plaintext
659 lines
15 KiB
Plaintext
{
|
|
"m_SGVersion": 3,
|
|
"m_Type": "UnityEditor.ShaderGraph.GraphData",
|
|
"m_ObjectId": "8085612cfff64213aca1aa28891f8243",
|
|
"m_Properties": [
|
|
{
|
|
"m_Id": "66c5b1522e484b83a037e266720497d9"
|
|
}
|
|
],
|
|
"m_Keywords": [],
|
|
"m_Dropdowns": [],
|
|
"m_CategoryData": [
|
|
{
|
|
"m_Id": "b0e3c3dcb5794b16a1a97073669703ab"
|
|
}
|
|
],
|
|
"m_Nodes": [
|
|
{
|
|
"m_Id": "9e9db59f8243489482c1e99d009687ee"
|
|
},
|
|
{
|
|
"m_Id": "318bf70ab87645aaa9ec65cdee13cb35"
|
|
},
|
|
{
|
|
"m_Id": "b4ba5220960e40808eeb423964b0a2db"
|
|
},
|
|
{
|
|
"m_Id": "e874d7dd3e654b0fb6639a63dd109998"
|
|
},
|
|
{
|
|
"m_Id": "ec2476a682be4a29af5db3497f97deca"
|
|
}
|
|
],
|
|
"m_GroupDatas": [],
|
|
"m_StickyNoteDatas": [],
|
|
"m_Edges": [
|
|
{
|
|
"m_OutputSlot": {
|
|
"m_Node": {
|
|
"m_Id": "318bf70ab87645aaa9ec65cdee13cb35"
|
|
},
|
|
"m_SlotId": 1
|
|
},
|
|
"m_InputSlot": {
|
|
"m_Node": {
|
|
"m_Id": "9e9db59f8243489482c1e99d009687ee"
|
|
},
|
|
"m_SlotId": 1
|
|
}
|
|
},
|
|
{
|
|
"m_OutputSlot": {
|
|
"m_Node": {
|
|
"m_Id": "b4ba5220960e40808eeb423964b0a2db"
|
|
},
|
|
"m_SlotId": 0
|
|
},
|
|
"m_InputSlot": {
|
|
"m_Node": {
|
|
"m_Id": "318bf70ab87645aaa9ec65cdee13cb35"
|
|
},
|
|
"m_SlotId": 0
|
|
}
|
|
},
|
|
{
|
|
"m_OutputSlot": {
|
|
"m_Node": {
|
|
"m_Id": "e874d7dd3e654b0fb6639a63dd109998"
|
|
},
|
|
"m_SlotId": 0
|
|
},
|
|
"m_InputSlot": {
|
|
"m_Node": {
|
|
"m_Id": "318bf70ab87645aaa9ec65cdee13cb35"
|
|
},
|
|
"m_SlotId": 2
|
|
}
|
|
},
|
|
{
|
|
"m_OutputSlot": {
|
|
"m_Node": {
|
|
"m_Id": "ec2476a682be4a29af5db3497f97deca"
|
|
},
|
|
"m_SlotId": 0
|
|
},
|
|
"m_InputSlot": {
|
|
"m_Node": {
|
|
"m_Id": "318bf70ab87645aaa9ec65cdee13cb35"
|
|
},
|
|
"m_SlotId": 3
|
|
}
|
|
}
|
|
],
|
|
"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": "9e9db59f8243489482c1e99d009687ee"
|
|
},
|
|
"m_ActiveTargets": []
|
|
}
|
|
|
|
{
|
|
"m_SGVersion": 0,
|
|
"m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot",
|
|
"m_ObjectId": "02d6a5e974b046c48cc4d60ce2325cc7",
|
|
"m_Id": 1,
|
|
"m_DisplayName": "Scale",
|
|
"m_SlotType": 1,
|
|
"m_Hidden": false,
|
|
"m_ShaderOutputName": "Scale",
|
|
"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": "2b74e82d08a945d1a02f821446263f6c",
|
|
"m_Id": 2,
|
|
"m_DisplayName": "Point2",
|
|
"m_SlotType": 0,
|
|
"m_Hidden": false,
|
|
"m_ShaderOutputName": "Point2",
|
|
"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": 1,
|
|
"m_Type": "UnityEditor.ShaderGraph.CustomFunctionNode",
|
|
"m_ObjectId": "318bf70ab87645aaa9ec65cdee13cb35",
|
|
"m_Group": {
|
|
"m_Id": ""
|
|
},
|
|
"m_Name": "HsiehDistance (Custom Function)",
|
|
"m_DrawState": {
|
|
"m_Expanded": true,
|
|
"m_Position": {
|
|
"serializedVersion": "2",
|
|
"x": -588.0,
|
|
"y": 107.0,
|
|
"width": 236.99996948242188,
|
|
"height": 325.9999694824219
|
|
}
|
|
},
|
|
"m_Slots": [
|
|
{
|
|
"m_Id": "6b90df8a1e8f4c2cabb5dccb88f97639"
|
|
},
|
|
{
|
|
"m_Id": "2b74e82d08a945d1a02f821446263f6c"
|
|
},
|
|
{
|
|
"m_Id": "ba3ca2801eda46a2a83d2180c71e5b22"
|
|
},
|
|
{
|
|
"m_Id": "93f2785d2b87478ba4b56d94d03164df"
|
|
}
|
|
],
|
|
"synonyms": [
|
|
"code",
|
|
"HLSL"
|
|
],
|
|
"m_Precision": 0,
|
|
"m_PreviewExpanded": false,
|
|
"m_PreviewMode": 0,
|
|
"m_CustomColors": {
|
|
"m_SerializableColors": []
|
|
},
|
|
"m_SourceType": 1,
|
|
"m_FunctionName": "HsiehDistance",
|
|
"m_FunctionSource": "",
|
|
"m_FunctionBody": "if (UseCheap == 0) {\nDist = distance(Point1, Point2);\n}\nelse \n{\n// 1/ (4 * sqrt3)\nconst float hsieh = 0.57216878364;\nfloat3 delta = abs(Point2 - Point1); \nfloat a = dot(float3(1,1,1), delta) / 1.73205080757;\nfloat b = max(delta.x, delta.y);\nb = max (b, delta.z);\nDist = hsieh * min(a,b);\n}"
|
|
}
|
|
|
|
{
|
|
"m_SGVersion": 0,
|
|
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
|
|
"m_ObjectId": "3cc1dc3137f24655856fde06c25831bc",
|
|
"m_Id": 4,
|
|
"m_DisplayName": "Far Plane",
|
|
"m_SlotType": 1,
|
|
"m_Hidden": false,
|
|
"m_ShaderOutputName": "Far Plane",
|
|
"m_StageCapability": 3,
|
|
"m_Value": 1.0,
|
|
"m_DefaultValue": 1.0,
|
|
"m_Labels": []
|
|
}
|
|
|
|
{
|
|
"m_SGVersion": 0,
|
|
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
|
|
"m_ObjectId": "5fc711564a764aec8bf0e6688ddbca68",
|
|
"m_Id": 2,
|
|
"m_DisplayName": "Orthographic",
|
|
"m_SlotType": 1,
|
|
"m_Hidden": false,
|
|
"m_ShaderOutputName": "Orthographic",
|
|
"m_StageCapability": 3,
|
|
"m_Value": 0.0,
|
|
"m_DefaultValue": 0.0,
|
|
"m_Labels": []
|
|
}
|
|
|
|
{
|
|
"m_SGVersion": 0,
|
|
"m_Type": "UnityEditor.ShaderGraph.Internal.BooleanShaderProperty",
|
|
"m_ObjectId": "66c5b1522e484b83a037e266720497d9",
|
|
"m_Guid": {
|
|
"m_GuidSerialized": "742bdf64-6a0c-4624-9850-6c94b19118aa"
|
|
},
|
|
"m_Name": "UseCheap",
|
|
"m_DefaultRefNameVersion": 1,
|
|
"m_RefNameGeneratedByDisplayName": "UseCheap",
|
|
"m_DefaultReferenceName": "_UseCheap",
|
|
"m_OverrideReferenceName": "",
|
|
"m_GeneratePropertyBlock": true,
|
|
"m_UseCustomSlotLabel": false,
|
|
"m_CustomSlotLabel": "",
|
|
"m_Precision": 0,
|
|
"overrideHLSLDeclaration": false,
|
|
"hlslDeclarationOverride": 0,
|
|
"m_Hidden": false,
|
|
"m_Value": false
|
|
}
|
|
|
|
{
|
|
"m_SGVersion": 0,
|
|
"m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot",
|
|
"m_ObjectId": "6b90df8a1e8f4c2cabb5dccb88f97639",
|
|
"m_Id": 0,
|
|
"m_DisplayName": "Point1",
|
|
"m_SlotType": 0,
|
|
"m_Hidden": false,
|
|
"m_ShaderOutputName": "Point1",
|
|
"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": "6fcce1fc9baa4a2fa37594a8df30b3ff",
|
|
"m_Id": 1,
|
|
"m_DisplayName": "Distance",
|
|
"m_SlotType": 0,
|
|
"m_Hidden": false,
|
|
"m_ShaderOutputName": "Distance",
|
|
"m_StageCapability": 3,
|
|
"m_Value": 0.0,
|
|
"m_DefaultValue": 0.0,
|
|
"m_Labels": []
|
|
}
|
|
|
|
{
|
|
"m_SGVersion": 0,
|
|
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
|
|
"m_ObjectId": "711732851c764e3fa0bbe47d0aa80427",
|
|
"m_Id": 7,
|
|
"m_DisplayName": "Height",
|
|
"m_SlotType": 1,
|
|
"m_Hidden": false,
|
|
"m_ShaderOutputName": "Height",
|
|
"m_StageCapability": 3,
|
|
"m_Value": 1.0,
|
|
"m_DefaultValue": 1.0,
|
|
"m_Labels": []
|
|
}
|
|
|
|
{
|
|
"m_SGVersion": 0,
|
|
"m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot",
|
|
"m_ObjectId": "9147a742356745769d0baf6f4f86fa23",
|
|
"m_Id": 1,
|
|
"m_DisplayName": "Direction",
|
|
"m_SlotType": 1,
|
|
"m_Hidden": false,
|
|
"m_ShaderOutputName": "Direction",
|
|
"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": "93f2785d2b87478ba4b56d94d03164df",
|
|
"m_Id": 1,
|
|
"m_DisplayName": "Dist",
|
|
"m_SlotType": 1,
|
|
"m_Hidden": false,
|
|
"m_ShaderOutputName": "Dist",
|
|
"m_StageCapability": 3,
|
|
"m_Value": 0.0,
|
|
"m_DefaultValue": 0.0,
|
|
"m_Labels": []
|
|
}
|
|
|
|
{
|
|
"m_SGVersion": 0,
|
|
"m_Type": "UnityEditor.ShaderGraph.SubGraphOutputNode",
|
|
"m_ObjectId": "9e9db59f8243489482c1e99d009687ee",
|
|
"m_Group": {
|
|
"m_Id": ""
|
|
},
|
|
"m_Name": "Output",
|
|
"m_DrawState": {
|
|
"m_Expanded": true,
|
|
"m_Position": {
|
|
"serializedVersion": "2",
|
|
"x": -184.0,
|
|
"y": 107.0,
|
|
"width": 99.0,
|
|
"height": 77.0
|
|
}
|
|
},
|
|
"m_Slots": [
|
|
{
|
|
"m_Id": "6fcce1fc9baa4a2fa37594a8df30b3ff"
|
|
}
|
|
],
|
|
"synonyms": [],
|
|
"m_Precision": 0,
|
|
"m_PreviewExpanded": true,
|
|
"m_PreviewMode": 0,
|
|
"m_CustomColors": {
|
|
"m_SerializableColors": []
|
|
},
|
|
"IsFirstSlotValid": true
|
|
}
|
|
|
|
{
|
|
"m_SGVersion": 0,
|
|
"m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot",
|
|
"m_ObjectId": "ac62823b29734d388c01c270cc7c5dc8",
|
|
"m_Id": 0,
|
|
"m_DisplayName": "Position",
|
|
"m_SlotType": 1,
|
|
"m_Hidden": false,
|
|
"m_ShaderOutputName": "Position",
|
|
"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": "b074da46a7074bc48c0e6af340ff9d29",
|
|
"m_Id": 6,
|
|
"m_DisplayName": "Width",
|
|
"m_SlotType": 1,
|
|
"m_Hidden": false,
|
|
"m_ShaderOutputName": "Width",
|
|
"m_StageCapability": 3,
|
|
"m_Value": 1.0,
|
|
"m_DefaultValue": 1.0,
|
|
"m_Labels": []
|
|
}
|
|
|
|
{
|
|
"m_SGVersion": 0,
|
|
"m_Type": "UnityEditor.ShaderGraph.CategoryData",
|
|
"m_ObjectId": "b0e3c3dcb5794b16a1a97073669703ab",
|
|
"m_Name": "",
|
|
"m_ChildObjectList": [
|
|
{
|
|
"m_Id": "66c5b1522e484b83a037e266720497d9"
|
|
}
|
|
]
|
|
}
|
|
|
|
{
|
|
"m_SGVersion": 0,
|
|
"m_Type": "UnityEditor.ShaderGraph.CameraNode",
|
|
"m_ObjectId": "b4ba5220960e40808eeb423964b0a2db",
|
|
"m_Group": {
|
|
"m_Id": ""
|
|
},
|
|
"m_Name": "Camera",
|
|
"m_DrawState": {
|
|
"m_Expanded": true,
|
|
"m_Position": {
|
|
"serializedVersion": "2",
|
|
"x": -818.0,
|
|
"y": -245.0,
|
|
"width": 122.0,
|
|
"height": 245.0
|
|
}
|
|
},
|
|
"m_Slots": [
|
|
{
|
|
"m_Id": "ac62823b29734d388c01c270cc7c5dc8"
|
|
},
|
|
{
|
|
"m_Id": "9147a742356745769d0baf6f4f86fa23"
|
|
},
|
|
{
|
|
"m_Id": "5fc711564a764aec8bf0e6688ddbca68"
|
|
},
|
|
{
|
|
"m_Id": "f02e1a9a9cdf424ab5c310dd098e8b97"
|
|
},
|
|
{
|
|
"m_Id": "3cc1dc3137f24655856fde06c25831bc"
|
|
},
|
|
{
|
|
"m_Id": "f4a8232ac6744098a27f422e1a541d2c"
|
|
},
|
|
{
|
|
"m_Id": "b074da46a7074bc48c0e6af340ff9d29"
|
|
},
|
|
{
|
|
"m_Id": "711732851c764e3fa0bbe47d0aa80427"
|
|
}
|
|
],
|
|
"synonyms": [
|
|
"position",
|
|
"direction",
|
|
"orthographic",
|
|
"near plane",
|
|
"far plane",
|
|
"width",
|
|
"height"
|
|
],
|
|
"m_Precision": 0,
|
|
"m_PreviewExpanded": true,
|
|
"m_PreviewMode": 0,
|
|
"m_CustomColors": {
|
|
"m_SerializableColors": []
|
|
}
|
|
}
|
|
|
|
{
|
|
"m_SGVersion": 0,
|
|
"m_Type": "UnityEditor.ShaderGraph.BooleanMaterialSlot",
|
|
"m_ObjectId": "ba3ca2801eda46a2a83d2180c71e5b22",
|
|
"m_Id": 3,
|
|
"m_DisplayName": "UseCheap",
|
|
"m_SlotType": 0,
|
|
"m_Hidden": false,
|
|
"m_ShaderOutputName": "UseCheap",
|
|
"m_StageCapability": 3,
|
|
"m_Value": false,
|
|
"m_DefaultValue": false
|
|
}
|
|
|
|
{
|
|
"m_SGVersion": 0,
|
|
"m_Type": "UnityEditor.ShaderGraph.ObjectNode",
|
|
"m_ObjectId": "e874d7dd3e654b0fb6639a63dd109998",
|
|
"m_Group": {
|
|
"m_Id": ""
|
|
},
|
|
"m_Name": "Object",
|
|
"m_DrawState": {
|
|
"m_Expanded": true,
|
|
"m_Position": {
|
|
"serializedVersion": "2",
|
|
"x": -805.0000610351563,
|
|
"y": 20.000022888183595,
|
|
"width": 97.0,
|
|
"height": 101.00000762939453
|
|
}
|
|
},
|
|
"m_Slots": [
|
|
{
|
|
"m_Id": "f8baaafac15548349d367726aac49bfc"
|
|
},
|
|
{
|
|
"m_Id": "02d6a5e974b046c48cc4d60ce2325cc7"
|
|
}
|
|
],
|
|
"synonyms": [
|
|
"position",
|
|
"scale"
|
|
],
|
|
"m_Precision": 0,
|
|
"m_PreviewExpanded": true,
|
|
"m_PreviewMode": 0,
|
|
"m_CustomColors": {
|
|
"m_SerializableColors": []
|
|
}
|
|
}
|
|
|
|
{
|
|
"m_SGVersion": 0,
|
|
"m_Type": "UnityEditor.ShaderGraph.PropertyNode",
|
|
"m_ObjectId": "ec2476a682be4a29af5db3497f97deca",
|
|
"m_Group": {
|
|
"m_Id": ""
|
|
},
|
|
"m_Name": "Property",
|
|
"m_DrawState": {
|
|
"m_Expanded": true,
|
|
"m_Position": {
|
|
"serializedVersion": "2",
|
|
"x": -798.4877319335938,
|
|
"y": 201.1342010498047,
|
|
"width": 0.0,
|
|
"height": 0.0
|
|
}
|
|
},
|
|
"m_Slots": [
|
|
{
|
|
"m_Id": "fe169328c6a94588bcc96d123c53bbae"
|
|
}
|
|
],
|
|
"synonyms": [],
|
|
"m_Precision": 0,
|
|
"m_PreviewExpanded": true,
|
|
"m_PreviewMode": 0,
|
|
"m_CustomColors": {
|
|
"m_SerializableColors": []
|
|
},
|
|
"m_Property": {
|
|
"m_Id": "66c5b1522e484b83a037e266720497d9"
|
|
}
|
|
}
|
|
|
|
{
|
|
"m_SGVersion": 0,
|
|
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
|
|
"m_ObjectId": "f02e1a9a9cdf424ab5c310dd098e8b97",
|
|
"m_Id": 3,
|
|
"m_DisplayName": "Near Plane",
|
|
"m_SlotType": 1,
|
|
"m_Hidden": false,
|
|
"m_ShaderOutputName": "Near Plane",
|
|
"m_StageCapability": 3,
|
|
"m_Value": 0.0,
|
|
"m_DefaultValue": 0.0,
|
|
"m_Labels": []
|
|
}
|
|
|
|
{
|
|
"m_SGVersion": 0,
|
|
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
|
|
"m_ObjectId": "f4a8232ac6744098a27f422e1a541d2c",
|
|
"m_Id": 5,
|
|
"m_DisplayName": "Z Buffer Sign",
|
|
"m_SlotType": 1,
|
|
"m_Hidden": false,
|
|
"m_ShaderOutputName": "Z Buffer Sign",
|
|
"m_StageCapability": 3,
|
|
"m_Value": 1.0,
|
|
"m_DefaultValue": 1.0,
|
|
"m_Labels": []
|
|
}
|
|
|
|
{
|
|
"m_SGVersion": 0,
|
|
"m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot",
|
|
"m_ObjectId": "f8baaafac15548349d367726aac49bfc",
|
|
"m_Id": 0,
|
|
"m_DisplayName": "Position",
|
|
"m_SlotType": 1,
|
|
"m_Hidden": false,
|
|
"m_ShaderOutputName": "Position",
|
|
"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.BooleanMaterialSlot",
|
|
"m_ObjectId": "fe169328c6a94588bcc96d123c53bbae",
|
|
"m_Id": 0,
|
|
"m_DisplayName": "UseCheap",
|
|
"m_SlotType": 1,
|
|
"m_Hidden": false,
|
|
"m_ShaderOutputName": "Out",
|
|
"m_StageCapability": 3,
|
|
"m_Value": false,
|
|
"m_DefaultValue": false
|
|
}
|
|
|