UnityGame/Library/PackageCache/com.unity.shadergraph/Samples~/FeatureExamples/Custom Lighting/Cel Shader/DiffuseCelShader.shadersubgraph
2024-10-27 10:53:47 +03:00

1556 lines
35 KiB
Plaintext

{
"m_SGVersion": 3,
"m_Type": "UnityEditor.ShaderGraph.GraphData",
"m_ObjectId": "45e12b03da0940298831448640d67610",
"m_Properties": [
{
"m_Id": "a12354c78b694cc6b2bdddd67d09ccdc"
},
{
"m_Id": "68a7999ae9ea4bfba3702fd95b0d1a14"
}
],
"m_Keywords": [],
"m_Dropdowns": [],
"m_CategoryData": [
{
"m_Id": "d46b7225d21d49a39d3ed80211b1e867"
}
],
"m_Nodes": [
{
"m_Id": "e221ed40731b42e0b26b49a56ef3aa20"
},
{
"m_Id": "c979bfc9e06b459ca5e503658f2eda27"
},
{
"m_Id": "9b98c52259884722b0057a1410f58d3c"
},
{
"m_Id": "71cde5ac4ee04aacb1e2544c8017ba47"
},
{
"m_Id": "99ccf4aecf59420794efa0951355f7ab"
},
{
"m_Id": "d18845e766084954af1aa554531c90b9"
},
{
"m_Id": "daa979e4f9384944a14a23e079be6a5c"
},
{
"m_Id": "4747439b9bfa431293a93646ce71aa12"
},
{
"m_Id": "fa0151c045984bcab58e58725bae0709"
},
{
"m_Id": "4ab78bad8190435bb70ea4ce7d3a9942"
},
{
"m_Id": "3a279c5be0974f3792d13e8d2c4b09db"
},
{
"m_Id": "9cc6a2d6698649aab8ba9c371659673c"
}
],
"m_GroupDatas": [],
"m_StickyNoteDatas": [
{
"m_Id": "2077e7b431a54909806f32b057cad013"
}
],
"m_Edges": [
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "3a279c5be0974f3792d13e8d2c4b09db"
},
"m_SlotId": 2
},
"m_InputSlot": {
"m_Node": {
"m_Id": "9cc6a2d6698649aab8ba9c371659673c"
},
"m_SlotId": 0
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "4747439b9bfa431293a93646ce71aa12"
},
"m_SlotId": 1
},
"m_InputSlot": {
"m_Node": {
"m_Id": "e221ed40731b42e0b26b49a56ef3aa20"
},
"m_SlotId": 1
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "4ab78bad8190435bb70ea4ce7d3a9942"
},
"m_SlotId": 2
},
"m_InputSlot": {
"m_Node": {
"m_Id": "3a279c5be0974f3792d13e8d2c4b09db"
},
"m_SlotId": 0
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "71cde5ac4ee04aacb1e2544c8017ba47"
},
"m_SlotId": 3
},
"m_InputSlot": {
"m_Node": {
"m_Id": "daa979e4f9384944a14a23e079be6a5c"
},
"m_SlotId": 0
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "99ccf4aecf59420794efa0951355f7ab"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "d18845e766084954af1aa554531c90b9"
},
"m_SlotId": 0
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "99ccf4aecf59420794efa0951355f7ab"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "d18845e766084954af1aa554531c90b9"
},
"m_SlotId": 1
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "9b98c52259884722b0057a1410f58d3c"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "71cde5ac4ee04aacb1e2544c8017ba47"
},
"m_SlotId": 2
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "9cc6a2d6698649aab8ba9c371659673c"
},
"m_SlotId": 2
},
"m_InputSlot": {
"m_Node": {
"m_Id": "4747439b9bfa431293a93646ce71aa12"
},
"m_SlotId": 0
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "c979bfc9e06b459ca5e503658f2eda27"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "71cde5ac4ee04aacb1e2544c8017ba47"
},
"m_SlotId": 0
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "c979bfc9e06b459ca5e503658f2eda27"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "71cde5ac4ee04aacb1e2544c8017ba47"
},
"m_SlotId": 1
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "d18845e766084954af1aa554531c90b9"
},
"m_SlotId": 3
},
"m_InputSlot": {
"m_Node": {
"m_Id": "daa979e4f9384944a14a23e079be6a5c"
},
"m_SlotId": 1
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "daa979e4f9384944a14a23e079be6a5c"
},
"m_SlotId": 2
},
"m_InputSlot": {
"m_Node": {
"m_Id": "4ab78bad8190435bb70ea4ce7d3a9942"
},
"m_SlotId": 0
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "fa0151c045984bcab58e58725bae0709"
},
"m_SlotId": 1
},
"m_InputSlot": {
"m_Node": {
"m_Id": "d18845e766084954af1aa554531c90b9"
},
"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": "e221ed40731b42e0b26b49a56ef3aa20"
},
"m_SubDatas": [],
"m_ActiveTargets": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot",
"m_ObjectId": "035d096e7316487ba0042bcf8db69196",
"m_Id": 0,
"m_DisplayName": "LightVector",
"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.Vector3MaterialSlot",
"m_ObjectId": "10414013cad442d6bf3e1a8ae95ccfd8",
"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": 1.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot",
"m_ObjectId": "1dfdfcd6d563486da707a916a75165c1",
"m_Id": 2,
"m_DisplayName": "NotConnected",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "NotConnected",
"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.StickyNoteData",
"m_ObjectId": "2077e7b431a54909806f32b057cad013",
"m_Title": "",
"m_Content": "Standard diffuse lighting just does a dot product, but here we multiply by 0.5 and add 0.5 to make the lighting gradient wrap all the way around the model. This technique is called Half Lambert and was made popular by games like Valve's Team Fortress 2.",
"m_TextSize": 0,
"m_Theme": 0,
"m_Position": {
"serializedVersion": "2",
"x": -1307.0,
"y": 70.0,
"width": 209.0,
"height": 118.0
},
"m_Group": {
"m_Id": ""
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "2480f6826ff9467e88b340dd69c1ff56",
"m_Id": 3,
"m_DisplayName": "ShadowAtten",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "ShadowAtten",
"m_StageCapability": 3,
"m_Value": 0.0,
"m_DefaultValue": 0.0,
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot",
"m_ObjectId": "35aef9162f284ab1bc5690beafbf7df2",
"m_Id": 0,
"m_DisplayName": "A",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "A",
"m_StageCapability": 3,
"m_Value": {
"e00": 0.0,
"e01": 0.0,
"e02": 0.0,
"e03": 0.0,
"e10": 0.0,
"e11": 0.0,
"e12": 0.0,
"e13": 0.0,
"e20": 0.0,
"e21": 0.0,
"e22": 0.0,
"e23": 0.0,
"e30": 0.0,
"e31": 0.0,
"e32": 0.0,
"e33": 0.0
},
"m_DefaultValue": {
"e00": 1.0,
"e01": 0.0,
"e02": 0.0,
"e03": 0.0,
"e10": 0.0,
"e11": 1.0,
"e12": 0.0,
"e13": 0.0,
"e20": 0.0,
"e21": 0.0,
"e22": 1.0,
"e23": 0.0,
"e30": 0.0,
"e31": 0.0,
"e32": 0.0,
"e33": 1.0
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot",
"m_ObjectId": "35f722c5260e4f3dbca49ba14024c2d9",
"m_Id": 0,
"m_DisplayName": "NormalWS",
"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.AddNode",
"m_ObjectId": "3a279c5be0974f3792d13e8d2c4b09db",
"m_Group": {
"m_Id": ""
},
"m_Name": "Add",
"m_DrawState": {
"m_Expanded": false,
"m_Position": {
"serializedVersion": "2",
"x": -1201.0,
"y": 191.0,
"width": 126.0,
"height": 94.0
}
},
"m_Slots": [
{
"m_Id": "6010a2efd0da42ac9ed7b35e9fe22654"
},
{
"m_Id": "853d21d9e6804cd48f3b4330417de2e2"
},
{
"m_Id": "48f0199a75844c0382209aba9afca9a3"
}
],
"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.SaturateNode",
"m_ObjectId": "4747439b9bfa431293a93646ce71aa12",
"m_Group": {
"m_Id": ""
},
"m_Name": "Saturate",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -728.0,
"y": 191.00003051757813,
"width": 127.99993896484375,
"height": 94.0
}
},
"m_Slots": [
{
"m_Id": "fed98a223aaf4348bd6271a4c63dffd9"
},
{
"m_Id": "c65f92f2be694921a28c1c0432310138"
}
],
"synonyms": [
"clamp"
],
"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": "48f0199a75844c0382209aba9afca9a3",
"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.MultiplyNode",
"m_ObjectId": "4ab78bad8190435bb70ea4ce7d3a9942",
"m_Group": {
"m_Id": ""
},
"m_Name": "Multiply",
"m_DrawState": {
"m_Expanded": false,
"m_Position": {
"serializedVersion": "2",
"x": -1327.0,
"y": 191.0,
"width": 126.0,
"height": 94.0
}
},
"m_Slots": [
{
"m_Id": "35aef9162f284ab1bc5690beafbf7df2"
},
{
"m_Id": "85df5cda3cdc4417959bb8b7cc027fbe"
},
{
"m_Id": "ffcdd46316a642fa929bf17434d8b8cf"
}
],
"synonyms": [
"multiplication",
"times",
"x"
],
"m_Precision": 0,
"m_PreviewExpanded": false,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "4e11fbf7d8624c6f9b6fd3168560f9ec",
"m_Id": 2,
"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.DynamicVectorMaterialSlot",
"m_ObjectId": "5c17ca6ab2f448b09546c8dd1baaa090",
"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.DynamicVectorMaterialSlot",
"m_ObjectId": "5fd7ebcae9934978864b6b53c391da0e",
"m_Id": 1,
"m_DisplayName": "B",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "B",
"m_StageCapability": 3,
"m_Value": {
"x": 1.5,
"y": 2.0,
"z": 2.0,
"w": 2.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": "6010a2efd0da42ac9ed7b35e9fe22654",
"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": 1,
"m_Type": "UnityEditor.ShaderGraph.Internal.Vector3ShaderProperty",
"m_ObjectId": "68a7999ae9ea4bfba3702fd95b0d1a14",
"m_Guid": {
"m_GuidSerialized": "14a27ec0-1328-485d-8e92-4b76bfad84a4"
},
"m_Name": "NormalWS",
"m_DefaultRefNameVersion": 1,
"m_RefNameGeneratedByDisplayName": "NormalWS",
"m_DefaultReferenceName": "_NormalWS",
"m_OverrideReferenceName": "",
"m_GeneratePropertyBlock": true,
"m_UseCustomSlotLabel": true,
"m_CustomSlotLabel": "VertNormalWS",
"m_DismissedVersion": 0,
"m_Precision": 0,
"overrideHLSLDeclaration": false,
"hlslDeclarationOverride": 0,
"m_Hidden": false,
"m_Value": {
"x": 0.0,
"y": 1.0,
"z": 0.0,
"w": 0.0
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "6d84227eb25f49d6abe67650b85ab3c6",
"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.Vector3MaterialSlot",
"m_ObjectId": "6f529dede00749d598198d499fb13a03",
"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.DynamicVectorMaterialSlot",
"m_ObjectId": "70ca1e6e94f7439cb39da635c555c483",
"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.BranchOnInputConnectionNode",
"m_ObjectId": "71cde5ac4ee04aacb1e2544c8017ba47",
"m_Group": {
"m_Id": ""
},
"m_Name": "Branch On Input Connection",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -1711.0,
"y": 109.0,
"width": 206.0,
"height": 142.0
}
},
"m_Slots": [
{
"m_Id": "b96fefa5658f4efdb572040c33fb84f7"
},
{
"m_Id": "7d0789ef41d941a59acf758aaffcc75c"
},
{
"m_Id": "c40514218d584b4bbd0634b61f6fe4d9"
},
{
"m_Id": "f7371e31d39447218812086a5018f0ca"
}
],
"synonyms": [],
"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": "7a52cb2dbec4478eb3a51d5a5e854215",
"m_Id": 1,
"m_DisplayName": "B",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "B",
"m_StageCapability": 3,
"m_Value": {
"x": 0.0,
"y": 1.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": "7d0789ef41d941a59acf758aaffcc75c",
"m_Id": 1,
"m_DisplayName": "Connected",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "Connected",
"m_StageCapability": 3,
"m_Value": {
"x": 1.0,
"y": 1.0,
"z": 1.0,
"w": 1.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": "853d21d9e6804cd48f3b4330417de2e2",
"m_Id": 1,
"m_DisplayName": "B",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "B",
"m_StageCapability": 3,
"m_Value": {
"x": 0.5,
"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.DynamicValueMaterialSlot",
"m_ObjectId": "85df5cda3cdc4417959bb8b7cc027fbe",
"m_Id": 1,
"m_DisplayName": "B",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "B",
"m_StageCapability": 3,
"m_Value": {
"e00": 0.5,
"e01": 2.0,
"e02": 2.0,
"e03": 2.0,
"e10": 2.0,
"e11": 2.0,
"e12": 2.0,
"e13": 2.0,
"e20": 2.0,
"e21": 2.0,
"e22": 2.0,
"e23": 2.0,
"e30": 2.0,
"e31": 2.0,
"e32": 2.0,
"e33": 2.0
},
"m_DefaultValue": {
"e00": 1.0,
"e01": 0.0,
"e02": 0.0,
"e03": 0.0,
"e10": 0.0,
"e11": 1.0,
"e12": 0.0,
"e13": 0.0,
"e20": 0.0,
"e21": 0.0,
"e22": 1.0,
"e23": 0.0,
"e30": 0.0,
"e31": 0.0,
"e32": 0.0,
"e33": 1.0
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot",
"m_ObjectId": "8d931604f0734c48b595a99aa375f9c7",
"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.PropertyNode",
"m_ObjectId": "99ccf4aecf59420794efa0951355f7ab",
"m_Group": {
"m_Id": ""
},
"m_Name": "Property",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -1886.0,
"y": 287.0,
"width": 137.0,
"height": 34.0
}
},
"m_Slots": [
{
"m_Id": "035d096e7316487ba0042bcf8db69196"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_Property": {
"m_Id": "a12354c78b694cc6b2bdddd67d09ccdc"
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.NormalVectorNode",
"m_ObjectId": "9b98c52259884722b0057a1410f58d3c",
"m_Group": {
"m_Id": ""
},
"m_Name": "Normal Vector",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -1959.0,
"y": 161.0,
"width": 206.0,
"height": 131.0
}
},
"m_Slots": [
{
"m_Id": "10414013cad442d6bf3e1a8ae95ccfd8"
}
],
"synonyms": [
"surface direction"
],
"m_Precision": 0,
"m_PreviewExpanded": false,
"m_DismissedVersion": 0,
"m_PreviewMode": 2,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_Space": 2
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.PowerNode",
"m_ObjectId": "9cc6a2d6698649aab8ba9c371659673c",
"m_Group": {
"m_Id": ""
},
"m_Name": "Power",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -914.0,
"y": 191.00003051757813,
"width": 125.99993896484375,
"height": 117.99996948242188
}
},
"m_Slots": [
{
"m_Id": "8d931604f0734c48b595a99aa375f9c7"
},
{
"m_Id": "5fd7ebcae9934978864b6b53c391da0e"
},
{
"m_Id": "70ca1e6e94f7439cb39da635c555c483"
}
],
"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": "a12354c78b694cc6b2bdddd67d09ccdc",
"m_Guid": {
"m_GuidSerialized": "bc0dafd1-46fd-428e-a980-4ff409cd9b44"
},
"m_Name": "LightVector",
"m_DefaultRefNameVersion": 1,
"m_RefNameGeneratedByDisplayName": "LightVector",
"m_DefaultReferenceName": "_LightVector",
"m_OverrideReferenceName": "",
"m_GeneratePropertyBlock": true,
"m_UseCustomSlotLabel": true,
"m_CustomSlotLabel": "MainLight",
"m_DismissedVersion": 0,
"m_Precision": 0,
"overrideHLSLDeclaration": false,
"hlslDeclarationOverride": 0,
"m_Hidden": false,
"m_Value": {
"x": -0.699999988079071,
"y": 0.699999988079071,
"z": 0.699999988079071,
"w": 0.0
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot",
"m_ObjectId": "a5b419728b8449659d3b2fe07eb55458",
"m_Id": 1,
"m_DisplayName": "Connected",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "Connected",
"m_StageCapability": 3,
"m_Value": {
"x": 1.0,
"y": 1.0,
"z": 1.0,
"w": 1.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": "a6c990654d494f728240b7f9c9794d1a",
"m_Id": 3,
"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.PropertyConnectionStateMaterialSlot",
"m_ObjectId": "b96fefa5658f4efdb572040c33fb84f7",
"m_Id": 0,
"m_DisplayName": "Input",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "Input",
"m_StageCapability": 3
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.PropertyConnectionStateMaterialSlot",
"m_ObjectId": "bd6ec7c18fcb47a8ab7ff298b8ec3fa2",
"m_Id": 0,
"m_DisplayName": "Input",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "Input",
"m_StageCapability": 3
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot",
"m_ObjectId": "c40514218d584b4bbd0634b61f6fe4d9",
"m_Id": 2,
"m_DisplayName": "NotConnected",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "NotConnected",
"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": "c65f92f2be694921a28c1c0432310138",
"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.PropertyNode",
"m_ObjectId": "c979bfc9e06b459ca5e503658f2eda27",
"m_Group": {
"m_Id": ""
},
"m_Name": "Property",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -1885.0,
"y": 128.0,
"width": 132.0,
"height": 34.0
}
},
"m_Slots": [
{
"m_Id": "35f722c5260e4f3dbca49ba14024c2d9"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_Property": {
"m_Id": "68a7999ae9ea4bfba3702fd95b0d1a14"
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.BranchOnInputConnectionNode",
"m_ObjectId": "d18845e766084954af1aa554531c90b9",
"m_Group": {
"m_Id": ""
},
"m_Name": "Branch On Input Connection",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -1711.0,
"y": 273.0,
"width": 206.0,
"height": 142.0
}
},
"m_Slots": [
{
"m_Id": "bd6ec7c18fcb47a8ab7ff298b8ec3fa2"
},
{
"m_Id": "a5b419728b8449659d3b2fe07eb55458"
},
{
"m_Id": "1dfdfcd6d563486da707a916a75165c1"
},
{
"m_Id": "a6c990654d494f728240b7f9c9794d1a"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": false,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.CategoryData",
"m_ObjectId": "d46b7225d21d49a39d3ed80211b1e867",
"m_Name": "",
"m_ChildObjectList": [
{
"m_Id": "68a7999ae9ea4bfba3702fd95b0d1a14"
},
{
"m_Id": "a12354c78b694cc6b2bdddd67d09ccdc"
}
]
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot",
"m_ObjectId": "d96353e63bd34eb0953214e9f7144e98",
"m_Id": 2,
"m_DisplayName": "Color",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "Color",
"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.DotProductNode",
"m_ObjectId": "daa979e4f9384944a14a23e079be6a5c",
"m_Group": {
"m_Id": ""
},
"m_Name": "Dot Product",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -1470.0,
"y": 191.0,
"width": 128.0,
"height": 118.0
}
},
"m_Slots": [
{
"m_Id": "5c17ca6ab2f448b09546c8dd1baaa090"
},
{
"m_Id": "7a52cb2dbec4478eb3a51d5a5e854215"
},
{
"m_Id": "4e11fbf7d8624c6f9b6fd3168560f9ec"
}
],
"synonyms": [
"scalar product"
],
"m_Precision": 0,
"m_PreviewExpanded": false,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.SubGraphOutputNode",
"m_ObjectId": "e221ed40731b42e0b26b49a56ef3aa20",
"m_Group": {
"m_Id": ""
},
"m_Name": "Output",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -600.0000610351563,
"y": 191.00003051757813,
"width": 86.0,
"height": 76.99996948242188
}
},
"m_Slots": [
{
"m_Id": "6d84227eb25f49d6abe67650b85ab3c6"
}
],
"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.DynamicVectorMaterialSlot",
"m_ObjectId": "f7371e31d39447218812086a5018f0ca",
"m_Id": 3,
"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.SubGraphNode",
"m_ObjectId": "fa0151c045984bcab58e58725bae0709",
"m_Group": {
"m_Id": ""
},
"m_Name": "MainLight",
"m_DrawState": {
"m_Expanded": false,
"m_Position": {
"serializedVersion": "2",
"x": -1855.0,
"y": 333.0,
"width": 102.0,
"height": 95.0
}
},
"m_Slots": [
{
"m_Id": "6f529dede00749d598198d499fb13a03"
},
{
"m_Id": "d96353e63bd34eb0953214e9f7144e98"
},
{
"m_Id": "2480f6826ff9467e88b340dd69c1ff56"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": false,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_SerializedSubGraph": "{\n \"subGraph\": {\n \"fileID\": -5475051401550479605,\n \"guid\": \"62ad4455d271ca24aac0b75094d0ccff\",\n \"type\": 3\n }\n}",
"m_PropertyGuids": [],
"m_PropertyIds": [],
"m_Dropdowns": [],
"m_DropdownSelectedEntries": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot",
"m_ObjectId": "fed98a223aaf4348bd6271a4c63dffd9",
"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.DynamicValueMaterialSlot",
"m_ObjectId": "ffcdd46316a642fa929bf17434d8b8cf",
"m_Id": 2,
"m_DisplayName": "Out",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "Out",
"m_StageCapability": 3,
"m_Value": {
"e00": 0.0,
"e01": 0.0,
"e02": 0.0,
"e03": 0.0,
"e10": 0.0,
"e11": 0.0,
"e12": 0.0,
"e13": 0.0,
"e20": 0.0,
"e21": 0.0,
"e22": 0.0,
"e23": 0.0,
"e30": 0.0,
"e31": 0.0,
"e32": 0.0,
"e33": 0.0
},
"m_DefaultValue": {
"e00": 1.0,
"e01": 0.0,
"e02": 0.0,
"e03": 0.0,
"e10": 0.0,
"e11": 1.0,
"e12": 0.0,
"e13": 0.0,
"e20": 0.0,
"e21": 0.0,
"e22": 1.0,
"e23": 0.0,
"e30": 0.0,
"e31": 0.0,
"e32": 0.0,
"e33": 1.0
}
}