OldBlueWater/BlueWater/Assets/Quibli/Shaders/Subgraphs/Gradient Shading.shadersubgraph
2023-08-02 18:12:26 +09:00

794 lines
19 KiB
Plaintext

{
"m_SGVersion": 3,
"m_Type": "UnityEditor.ShaderGraph.GraphData",
"m_ObjectId": "7f5606f4a2bc421ab28e1bf9e6ad5e25",
"m_Properties": [
{
"m_Id": "dfd2791c52894e789a23fa50e061004a"
},
{
"m_Id": "63279c4ed4294dfb930da87f1903fc75"
}
],
"m_Keywords": [],
"m_Dropdowns": [],
"m_CategoryData": [
{
"m_Id": "4f4f1ba83da04b83b344d06ffa660840"
}
],
"m_Nodes": [
{
"m_Id": "669ee5590e54417886a09f458e5d1029"
},
{
"m_Id": "4016291ebad249dc8405825ca312ceba"
},
{
"m_Id": "7944a80142424eb2ae53a31364fb9587"
},
{
"m_Id": "68f076dd61984673bb7a0a8a64d96c64"
},
{
"m_Id": "fef60f1bd000422694f604e52fda5170"
},
{
"m_Id": "dd6d9de5813a45e8b73e2c3f9566cdff"
},
{
"m_Id": "67e402a18a9848a4891791df845a138e"
}
],
"m_GroupDatas": [],
"m_StickyNoteDatas": [],
"m_Edges": [
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "4016291ebad249dc8405825ca312ceba"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "68f076dd61984673bb7a0a8a64d96c64"
},
"m_SlotId": 0
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "67e402a18a9848a4891791df845a138e"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "68f076dd61984673bb7a0a8a64d96c64"
},
"m_SlotId": 6
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "68f076dd61984673bb7a0a8a64d96c64"
},
"m_SlotId": 5
},
"m_InputSlot": {
"m_Node": {
"m_Id": "dd6d9de5813a45e8b73e2c3f9566cdff"
},
"m_SlotId": 1939322632
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "7944a80142424eb2ae53a31364fb9587"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "68f076dd61984673bb7a0a8a64d96c64"
},
"m_SlotId": 1
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "dd6d9de5813a45e8b73e2c3f9566cdff"
},
"m_SlotId": 1
},
"m_InputSlot": {
"m_Node": {
"m_Id": "669ee5590e54417886a09f458e5d1029"
},
"m_SlotId": 1
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "fef60f1bd000422694f604e52fda5170"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "dd6d9de5813a45e8b73e2c3f9566cdff"
},
"m_SlotId": 588238879
}
}
],
"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": "Quibli",
"m_GraphPrecision": 0,
"m_PreviewMode": 2,
"m_OutputNode": {
"m_Id": "669ee5590e54417886a09f458e5d1029"
},
"m_ActiveTargets": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "197ba582b08d453b83360a2a39d9a8da",
"m_Id": 6,
"m_DisplayName": "ShadingFactor",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "ShadingFactor",
"m_StageCapability": 3,
"m_Value": 0.0,
"m_DefaultValue": 0.0,
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Texture2DMaterialSlot",
"m_ObjectId": "24626ad5feb74c3892bd90c02b7370be",
"m_Id": 0,
"m_DisplayName": "GradientTexture",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "Out",
"m_StageCapability": 3,
"m_BareResource": false
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot",
"m_ObjectId": "28026b14c5c64e81babdf81213b13891",
"m_Id": 0,
"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.Vector4MaterialSlot",
"m_ObjectId": "31b20ee85d414189905d4508eb876580",
"m_Id": 1,
"m_DisplayName": "Color",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "Color",
"m_StageCapability": 2,
"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_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.NormalVectorNode",
"m_ObjectId": "4016291ebad249dc8405825ca312ceba",
"m_Group": {
"m_Id": ""
},
"m_Name": "Normal Vector",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -401.932373046875,
"y": -96.12020874023438,
"width": 206.0,
"height": 132.0
}
},
"m_Slots": [
{
"m_Id": "ab9c552dc9bc4b9fadaec6da1340b0ad"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": false,
"m_PreviewMode": 2,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_Space": 2
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.CategoryData",
"m_ObjectId": "4f4f1ba83da04b83b344d06ffa660840",
"m_Name": "",
"m_ChildObjectList": [
{
"m_Id": "dfd2791c52894e789a23fa50e061004a"
},
{
"m_Id": "63279c4ed4294dfb930da87f1903fc75"
}
]
}
{
"m_SGVersion": 1,
"m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty",
"m_ObjectId": "63279c4ed4294dfb930da87f1903fc75",
"m_Guid": {
"m_GuidSerialized": "82797421-e72c-48bc-9f64-ad465d84b44a"
},
"m_Name": "ShadingFactor",
"m_DefaultRefNameVersion": 1,
"m_RefNameGeneratedByDisplayName": "ShadingFactor",
"m_DefaultReferenceName": "ShadingFactor",
"m_OverrideReferenceName": "",
"m_GeneratePropertyBlock": true,
"m_UseCustomSlotLabel": false,
"m_CustomSlotLabel": "",
"m_Precision": 0,
"overrideHLSLDeclaration": false,
"hlslDeclarationOverride": 0,
"m_Hidden": false,
"m_Value": 1.0,
"m_FloatType": 0,
"m_RangeValues": {
"x": 0.0,
"y": 1.0
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.SubGraphOutputNode",
"m_ObjectId": "669ee5590e54417886a09f458e5d1029",
"m_Group": {
"m_Id": ""
},
"m_Name": "Output",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": 725.0,
"y": -211.00003051757813,
"width": 85.00000762939453,
"height": 77.0
}
},
"m_Slots": [
{
"m_Id": "e7449b48289d4e4390653cfd831e3b39"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"IsFirstSlotValid": true
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.PropertyNode",
"m_ObjectId": "67e402a18a9848a4891791df845a138e",
"m_Group": {
"m_Id": ""
},
"m_Name": "Property",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -345.50006103515627,
"y": 201.99996948242188,
"width": 151.00006103515626,
"height": 34.00006103515625
}
},
"m_Slots": [
{
"m_Id": "ff1f7239049a433393f78386641c9fc2"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_Property": {
"m_Id": "63279c4ed4294dfb930da87f1903fc75"
}
}
{
"m_SGVersion": 1,
"m_Type": "UnityEditor.ShaderGraph.CustomFunctionNode",
"m_ObjectId": "68f076dd61984673bb7a0a8a64d96c64",
"m_Group": {
"m_Id": ""
},
"m_Name": "NDotL (Custom Function)",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -53.999969482421878,
"y": -25.999984741210939,
"width": 220.0,
"height": 189.99998474121095
}
},
"m_Slots": [
{
"m_Id": "6f32e136dc70492dadb95a49ad3d74f8"
},
{
"m_Id": "85c1958fb92e4688b22a013d30c63652"
},
{
"m_Id": "89f598b17bc3428594b17b7f35cb20e2"
},
{
"m_Id": "197ba582b08d453b83360a2a39d9a8da"
}
],
"synonyms": [],
"m_Precision": 2,
"m_PreviewExpanded": false,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_SourceType": 0,
"m_FunctionName": "NDotL",
"m_FunctionSource": "f9bb98ce947be449ab445810ed5d1454",
"m_FunctionBody": "Enter function body here..."
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "6f32e136dc70492dadb95a49ad3d74f8",
"m_Id": 5,
"m_DisplayName": "Shading",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "Shading",
"m_StageCapability": 3,
"m_Value": 0.0,
"m_DefaultValue": 0.0,
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.SubGraphNode",
"m_ObjectId": "7944a80142424eb2ae53a31364fb9587",
"m_Group": {
"m_Id": ""
},
"m_Name": "Main Light",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -353.932373046875,
"y": 35.879791259765628,
"width": 158.0,
"height": 166.0
}
},
"m_Slots": [
{
"m_Id": "28026b14c5c64e81babdf81213b13891"
},
{
"m_Id": "e0f85e70d9ba420990f348a2afa4dd00"
},
{
"m_Id": "8a0609ea030344bab08f29e69faf2b7c"
},
{
"m_Id": "eae7e94ea7ee493cb3723dd018686857"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": false,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_SerializedSubGraph": "{\n \"subGraph\": {\n \"fileID\": -5475051401550479605,\n \"guid\": \"0138b3fd8429f41e0bfb1e4db7877d25\",\n \"type\": 3\n }\n}",
"m_PropertyGuids": [],
"m_PropertyIds": [],
"m_Dropdowns": [],
"m_DropdownSelectedEntries": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot",
"m_ObjectId": "85c1958fb92e4688b22a013d30c63652",
"m_Id": 0,
"m_DisplayName": "Normal",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "Normal",
"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": "89f598b17bc3428594b17b7f35cb20e2",
"m_Id": 1,
"m_DisplayName": "LightDirection",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "LightDirection",
"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": "8a0609ea030344bab08f29e69faf2b7c",
"m_Id": 2,
"m_DisplayName": "DistanceAttenuation",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "DistanceAttenuation",
"m_StageCapability": 3,
"m_Value": 0.0,
"m_DefaultValue": 0.0,
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot",
"m_ObjectId": "90c322c6b520484f844672523742fedd",
"m_Id": 588238879,
"m_DisplayName": "GradientTexture",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "GradientTexture",
"m_StageCapability": 2,
"m_BareResource": false,
"m_Texture": {
"m_SerializedTexture": "{\"texture\":{\"instanceID\":0}}",
"m_Guid": ""
},
"m_DefaultType": 0
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot",
"m_ObjectId": "ab9c552dc9bc4b9fadaec6da1340b0ad",
"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.SubGraphNode",
"m_ObjectId": "dd6d9de5813a45e8b73e2c3f9566cdff",
"m_Group": {
"m_Id": ""
},
"m_Name": "Sample Gradient Texture",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": 388.99993896484377,
"y": -183.0,
"width": 0.0,
"height": 0.0
}
},
"m_Slots": [
{
"m_Id": "90c322c6b520484f844672523742fedd"
},
{
"m_Id": "e953e621110045a9b24513640cb45ff2"
},
{
"m_Id": "31b20ee85d414189905d4508eb876580"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": false,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_SerializedSubGraph": "{\n \"subGraph\": {\n \"fileID\": -5475051401550479605,\n \"guid\": \"9ffdd192734524e92994ef259f7c4d05\",\n \"type\": 3\n }\n}",
"m_PropertyGuids": [
"fcd99d88-19d6-4d2b-ba5b-c6d2456533bc",
"c7cbf28c-575c-454c-8b8d-e380676422c8"
],
"m_PropertyIds": [
588238879,
1939322632
],
"m_Dropdowns": [],
"m_DropdownSelectedEntries": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Internal.Texture2DShaderProperty",
"m_ObjectId": "dfd2791c52894e789a23fa50e061004a",
"m_Guid": {
"m_GuidSerialized": "a4a80c20-a999-401f-bbd6-b8545eaa6a81"
},
"m_Name": "GradientTexture",
"m_DefaultRefNameVersion": 1,
"m_RefNameGeneratedByDisplayName": "GradientTexture",
"m_DefaultReferenceName": "GradientTexture",
"m_OverrideReferenceName": "",
"m_GeneratePropertyBlock": true,
"m_UseCustomSlotLabel": false,
"m_CustomSlotLabel": "",
"m_Precision": 0,
"overrideHLSLDeclaration": false,
"hlslDeclarationOverride": 0,
"m_Hidden": false,
"m_Value": {
"m_SerializedTexture": "{\"texture\":{\"instanceID\":0}}",
"m_Guid": ""
},
"isMainTexture": false,
"useTilingAndOffset": false,
"m_Modifiable": true,
"m_DefaultType": 0
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot",
"m_ObjectId": "e0f85e70d9ba420990f348a2afa4dd00",
"m_Id": 1,
"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.Vector4MaterialSlot",
"m_ObjectId": "e7449b48289d4e4390653cfd831e3b39",
"m_Id": 1,
"m_DisplayName": "Color",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "Color",
"m_StageCapability": 2,
"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_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "e953e621110045a9b24513640cb45ff2",
"m_Id": 1939322632,
"m_DisplayName": "Time",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "Time",
"m_StageCapability": 2,
"m_Value": 0.0,
"m_DefaultValue": 0.0,
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "eae7e94ea7ee493cb3723dd018686857",
"m_Id": 3,
"m_DisplayName": "ShadowAttenuation",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "ShadowAttenuation",
"m_StageCapability": 3,
"m_Value": 0.0,
"m_DefaultValue": 0.0,
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.PropertyNode",
"m_ObjectId": "fef60f1bd000422694f604e52fda5170",
"m_Group": {
"m_Id": ""
},
"m_Name": "Property",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": 177.0000457763672,
"y": -183.00003051757813,
"width": 168.0,
"height": 34.0
}
},
"m_Slots": [
{
"m_Id": "24626ad5feb74c3892bd90c02b7370be"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_Property": {
"m_Id": "dfd2791c52894e789a23fa50e061004a"
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "ff1f7239049a433393f78386641c9fc2",
"m_Id": 0,
"m_DisplayName": "ShadingFactor",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "Out",
"m_StageCapability": 3,
"m_Value": 0.0,
"m_DefaultValue": 0.0,
"m_Labels": []
}