UnityGame/Library/PackageCache/com.unity.shadergraph/Samples~/FeatureExamples/Custom Lighting/PBR/PBRSpecular/HalfAngle.shadersubgraph

573 lines
13 KiB
Plaintext
Raw Normal View History

2024-10-27 10:53:47 +03:00
{
"m_SGVersion": 3,
"m_Type": "UnityEditor.ShaderGraph.GraphData",
"m_ObjectId": "82a297373e9e41f29ef1c3a2f051fb84",
"m_Properties": [
{
"m_Id": "8a509e197dfa460ea57a37cf82b88230"
},
{
"m_Id": "f68d481e214a46b3a4b8abc7859c5b8d"
}
],
"m_Keywords": [],
"m_Dropdowns": [],
"m_CategoryData": [
{
"m_Id": "1503f05cbffd45cd8dc08146aeff7e5f"
}
],
"m_Nodes": [
{
"m_Id": "2305e47ad4464ceba07a448cf1fb8c48"
},
{
"m_Id": "b3b8196f46224ae3a998bba24956de7f"
},
{
"m_Id": "2a8cf5c52e8c4e3fb8c3f9a87b68b2a2"
},
{
"m_Id": "fde52ad74bda46adabbcc34b42b16131"
},
{
"m_Id": "1dc55a6640574aaf8c04290eb0d5e816"
}
],
"m_GroupDatas": [],
"m_StickyNoteDatas": [],
"m_Edges": [
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "1dc55a6640574aaf8c04290eb0d5e816"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "2a8cf5c52e8c4e3fb8c3f9a87b68b2a2"
},
"m_SlotId": 1
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "2a8cf5c52e8c4e3fb8c3f9a87b68b2a2"
},
"m_SlotId": 2
},
"m_InputSlot": {
"m_Node": {
"m_Id": "b3b8196f46224ae3a998bba24956de7f"
},
"m_SlotId": 0
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "b3b8196f46224ae3a998bba24956de7f"
},
"m_SlotId": 1
},
"m_InputSlot": {
"m_Node": {
"m_Id": "2305e47ad4464ceba07a448cf1fb8c48"
},
"m_SlotId": 1
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "fde52ad74bda46adabbcc34b42b16131"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "2a8cf5c52e8c4e3fb8c3f9a87b68b2a2"
},
"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": "Sub Graphs",
"m_GraphPrecision": 1,
"m_PreviewMode": 2,
"m_OutputNode": {
"m_Id": "2305e47ad4464ceba07a448cf1fb8c48"
},
"m_SubDatas": [],
"m_ActiveTargets": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.CategoryData",
"m_ObjectId": "1503f05cbffd45cd8dc08146aeff7e5f",
"m_Name": "",
"m_ChildObjectList": [
{
"m_Id": "8a509e197dfa460ea57a37cf82b88230"
},
{
"m_Id": "f68d481e214a46b3a4b8abc7859c5b8d"
}
]
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.PropertyNode",
"m_ObjectId": "1dc55a6640574aaf8c04290eb0d5e816",
"m_Group": {
"m_Id": ""
},
"m_Name": "Property",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -344.99993896484377,
"y": 113.00001525878906,
"width": 114.0,
"height": 34.00001525878906
}
},
"m_Slots": [
{
"m_Id": "98fe87e5136a4f849c3483d117cb4e3d"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_Property": {
"m_Id": "f68d481e214a46b3a4b8abc7859c5b8d"
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.SubGraphOutputNode",
"m_ObjectId": "2305e47ad4464ceba07a448cf1fb8c48",
"m_Group": {
"m_Id": ""
},
"m_Name": "Output",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": 29.99998664855957,
"y": 46.5000114440918,
"width": 85.5000228881836,
"height": 76.99998474121094
}
},
"m_Slots": [
{
"m_Id": "4f3548e6117d4558a69e0b7c7e20cc34"
}
],
"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.AddNode",
"m_ObjectId": "2a8cf5c52e8c4e3fb8c3f9a87b68b2a2",
"m_Group": {
"m_Id": ""
},
"m_Name": "Add",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -230.8333740234375,
"y": 46.24998474121094,
"width": 129.5,
"height": 118.0
}
},
"m_Slots": [
{
"m_Id": "58e23090deb34144951002f38ecece61"
},
{
"m_Id": "4d6ad567704549b08cb7c7a6d936df8e"
},
{
"m_Id": "970352e5ab974361967578d5fd2e2c34"
}
],
"synonyms": [
"addition",
"sum",
"plus"
],
"m_Precision": 0,
"m_PreviewExpanded": false,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot",
"m_ObjectId": "4d6ad567704549b08cb7c7a6d936df8e",
"m_Id": 1,
"m_DisplayName": "B",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "B",
"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": "4f3548e6117d4558a69e0b7c7e20cc34",
"m_Id": 1,
"m_DisplayName": "Out",
"m_SlotType": 0,
"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": "58e23090deb34144951002f38ecece61",
"m_Id": 0,
"m_DisplayName": "A",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "A",
"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": "7b18a511cab04c9ebb76251c2836d982",
"m_Id": 0,
"m_DisplayName": "viewDir",
"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": 1,
"m_Type": "UnityEditor.ShaderGraph.Internal.Vector3ShaderProperty",
"m_ObjectId": "8a509e197dfa460ea57a37cf82b88230",
"m_Guid": {
"m_GuidSerialized": "a1878c72-d3cb-4a6c-a1eb-e6ec3b6b84ff"
},
"m_Name": "viewDir",
"m_DefaultRefNameVersion": 1,
"m_RefNameGeneratedByDisplayName": "viewDir",
"m_DefaultReferenceName": "_viewDir",
"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": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot",
"m_ObjectId": "90718e9446dc43d29a8eb6eebea63eba",
"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.DynamicVectorMaterialSlot",
"m_ObjectId": "970352e5ab974361967578d5fd2e2c34",
"m_Id": 2,
"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": "98fe87e5136a4f849c3483d117cb4e3d",
"m_Id": 0,
"m_DisplayName": "lightDir",
"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.NormalizeNode",
"m_ObjectId": "b3b8196f46224ae3a998bba24956de7f",
"m_Group": {
"m_Id": ""
},
"m_Name": "Normalize",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -101.3333740234375,
"y": 46.24998474121094,
"width": 131.49993896484376,
"height": 94.0
}
},
"m_Slots": [
{
"m_Id": "fa0e23366d8449c68af2eaee36b7a910"
},
{
"m_Id": "90718e9446dc43d29a8eb6eebea63eba"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": false,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
}
}
{
"m_SGVersion": 1,
"m_Type": "UnityEditor.ShaderGraph.Internal.Vector3ShaderProperty",
"m_ObjectId": "f68d481e214a46b3a4b8abc7859c5b8d",
"m_Guid": {
"m_GuidSerialized": "a1da7429-583c-46b9-8dde-3df1b87c446c"
},
"m_Name": "lightDir",
"m_DefaultRefNameVersion": 1,
"m_RefNameGeneratedByDisplayName": "lightDir",
"m_DefaultReferenceName": "_lightDir",
"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": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot",
"m_ObjectId": "fa0e23366d8449c68af2eaee36b7a910",
"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": "fde52ad74bda46adabbcc34b42b16131",
"m_Group": {
"m_Id": ""
},
"m_Name": "Property",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -347.0,
"y": 79.00000762939453,
"width": 116.00006103515625,
"height": 34.00000762939453
}
},
"m_Slots": [
{
"m_Id": "7b18a511cab04c9ebb76251c2836d982"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_Property": {
"m_Id": "8a509e197dfa460ea57a37cf82b88230"
}
}