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

901 lines
20 KiB
Plaintext

{
"m_SGVersion": 3,
"m_Type": "UnityEditor.ShaderGraph.GraphData",
"m_ObjectId": "30a9a3d109fd4a89b14b7c253590762f",
"m_Properties": [
{
"m_Id": "3dda0a358f2844a9a372d184d2d4b092"
}
],
"m_Keywords": [],
"m_Dropdowns": [],
"m_CategoryData": [
{
"m_Id": "32c882c76e3b4ad9941b850721d877c9"
}
],
"m_Nodes": [
{
"m_Id": "4932c78bf0e94fc8bca4600cfc4a07eb"
},
{
"m_Id": "b5d365628d5d497fb9baee4f89e193d3"
},
{
"m_Id": "2a419752d627448eb716dc23a3a758a3"
},
{
"m_Id": "511591b346d94fc3b1b20ce0b2f2d942"
},
{
"m_Id": "266ac117f4ea41a4bcd7d9c570a3bb49"
},
{
"m_Id": "847f17df19be415790591f3fd44e75da"
},
{
"m_Id": "97ad7aa2ff6a48c59c7e15355e245208"
}
],
"m_GroupDatas": [],
"m_StickyNoteDatas": [],
"m_Edges": [
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "266ac117f4ea41a4bcd7d9c570a3bb49"
},
"m_SlotId": 2
},
"m_InputSlot": {
"m_Node": {
"m_Id": "511591b346d94fc3b1b20ce0b2f2d942"
},
"m_SlotId": 0
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "2a419752d627448eb716dc23a3a758a3"
},
"m_SlotId": 2
},
"m_InputSlot": {
"m_Node": {
"m_Id": "b5d365628d5d497fb9baee4f89e193d3"
},
"m_SlotId": 0
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "2a419752d627448eb716dc23a3a758a3"
},
"m_SlotId": 3
},
"m_InputSlot": {
"m_Node": {
"m_Id": "b5d365628d5d497fb9baee4f89e193d3"
},
"m_SlotId": 1
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "511591b346d94fc3b1b20ce0b2f2d942"
},
"m_SlotId": 1
},
"m_InputSlot": {
"m_Node": {
"m_Id": "4932c78bf0e94fc8bca4600cfc4a07eb"
},
"m_SlotId": 1
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "847f17df19be415790591f3fd44e75da"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "97ad7aa2ff6a48c59c7e15355e245208"
},
"m_SlotId": 0
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "97ad7aa2ff6a48c59c7e15355e245208"
},
"m_SlotId": 1
},
"m_InputSlot": {
"m_Node": {
"m_Id": "266ac117f4ea41a4bcd7d9c570a3bb49"
},
"m_SlotId": 0
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "b5d365628d5d497fb9baee4f89e193d3"
},
"m_SlotId": 2
},
"m_InputSlot": {
"m_Node": {
"m_Id": "266ac117f4ea41a4bcd7d9c570a3bb49"
},
"m_SlotId": 1
}
}
],
"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": 2,
"m_PreviewMode": 0,
"m_OutputNode": {
"m_Id": "4932c78bf0e94fc8bca4600cfc4a07eb"
},
"m_ActiveTargets": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot",
"m_ObjectId": "0019162cf29a49c58136e8149c4a1c62",
"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": "04110cab48ee46cd90e095a43c07b198",
"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.DynamicVectorMaterialSlot",
"m_ObjectId": "1f997e9bbf7a434990bc8499a73c53e9",
"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.AddNode",
"m_ObjectId": "266ac117f4ea41a4bcd7d9c570a3bb49",
"m_Group": {
"m_Id": ""
},
"m_Name": "Add",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": 113.0000228881836,
"y": -63.99998092651367,
"width": 125.0,
"height": 118.0
}
},
"m_Slots": [
{
"m_Id": "0019162cf29a49c58136e8149c4a1c62"
},
{
"m_Id": "571bb8baeb4442538f112a3a903c889b"
},
{
"m_Id": "af16d8130bdb4a2eac27040504d7b624"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": false,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.SubGraphNode",
"m_ObjectId": "2a419752d627448eb716dc23a3a758a3",
"m_Group": {
"m_Id": ""
},
"m_Name": "Main Light",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -300.0000305175781,
"y": 15.000021934509278,
"width": 157.5,
"height": 166.0
}
},
"m_Slots": [
{
"m_Id": "5810fc0d261c4cf9ae0b5039bdeadcde"
},
{
"m_Id": "04110cab48ee46cd90e095a43c07b198"
},
{
"m_Id": "51905aeda3ea46b9b814f1829df1e1b9"
},
{
"m_Id": "3800ac0340db4722b70aa9edccc138b0"
}
],
"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\": \"0138b3fd8429f41e0bfb1e4db7877d25\",\n \"type\": 3\n }\n}",
"m_PropertyGuids": [
"a1132b19-a012-42b5-9d5d-ec33e1665855"
],
"m_PropertyIds": [
-318674439
],
"m_Dropdowns": [],
"m_DropdownSelectedEntries": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.CategoryData",
"m_ObjectId": "32c882c76e3b4ad9941b850721d877c9",
"m_Name": "",
"m_ChildObjectList": [
{
"m_Id": "3dda0a358f2844a9a372d184d2d4b092"
}
]
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "3800ac0340db4722b70aa9edccc138b0",
"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": 1,
"m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty",
"m_ObjectId": "3dda0a358f2844a9a372d184d2d4b092",
"m_Guid": {
"m_GuidSerialized": "a0e27861-3c08-4fa4-bbdc-b72d1d95afd6"
},
"m_Name": "Shadow Strength",
"m_DefaultRefNameVersion": 1,
"m_RefNameGeneratedByDisplayName": "Shadow Strength",
"m_DefaultReferenceName": "Shadow_Strength",
"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": 0.0,
"m_FloatType": 0,
"m_RangeValues": {
"x": 0.0,
"y": 1.0
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.SubGraphOutputNode",
"m_ObjectId": "4932c78bf0e94fc8bca4600cfc4a07eb",
"m_Group": {
"m_Id": ""
},
"m_Name": "Output",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": 419.5,
"y": -47.0,
"width": 112.5,
"height": 77.0
}
},
"m_Slots": [
{
"m_Id": "f4372fad09b04d95a5f6d65a9988148f"
}
],
"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.SaturateNode",
"m_ObjectId": "511591b346d94fc3b1b20ce0b2f2d942",
"m_Group": {
"m_Id": ""
},
"m_Name": "Saturate",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": 250.0000457763672,
"y": -63.99998092651367,
"width": 127.00000762939453,
"height": 94.0
}
},
"m_Slots": [
{
"m_Id": "960beef39e78498d8bf19c602342ca67"
},
{
"m_Id": "1f997e9bbf7a434990bc8499a73c53e9"
}
],
"synonyms": [],
"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": "51905aeda3ea46b9b814f1829df1e1b9",
"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.DynamicVectorMaterialSlot",
"m_ObjectId": "571bb8baeb4442538f112a3a903c889b",
"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": "5810fc0d261c4cf9ae0b5039bdeadcde",
"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.DynamicValueMaterialSlot",
"m_ObjectId": "796132f82b3f4522b9ed5fcf54080837",
"m_Id": 1,
"m_DisplayName": "B",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "B",
"m_StageCapability": 3,
"m_Value": {
"e00": 2.0,
"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.Vector1MaterialSlot",
"m_ObjectId": "8161c124a298417288010e678d2da28b",
"m_Id": 0,
"m_DisplayName": "Shadow Strength",
"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": "847f17df19be415790591f3fd44e75da",
"m_Group": {
"m_Id": ""
},
"m_Name": "Property",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -309.0,
"y": -115.0,
"width": 166.5,
"height": 34.0
}
},
"m_Slots": [
{
"m_Id": "8161c124a298417288010e678d2da28b"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_Property": {
"m_Id": "3dda0a358f2844a9a372d184d2d4b092"
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot",
"m_ObjectId": "9185b38e5e3841c48661f3cc49040ba0",
"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.DynamicVectorMaterialSlot",
"m_ObjectId": "960beef39e78498d8bf19c602342ca67",
"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.OneMinusNode",
"m_ObjectId": "97ad7aa2ff6a48c59c7e15355e245208",
"m_Group": {
"m_Id": ""
},
"m_Name": "One Minus",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -100.49996185302735,
"y": -141.00001525878907,
"width": 127.00000762939453,
"height": 94.0
}
},
"m_Slots": [
{
"m_Id": "b57cf24bc8bb46f0a664cad454f45be0"
},
{
"m_Id": "ab81e104cc69462dab4e61ac16c8e433"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": false,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot",
"m_ObjectId": "a144777030f44e51b9eccb049daaa435",
"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
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot",
"m_ObjectId": "ab81e104cc69462dab4e61ac16c8e433",
"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": "af16d8130bdb4a2eac27040504d7b624",
"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.DynamicVectorMaterialSlot",
"m_ObjectId": "b57cf24bc8bb46f0a664cad454f45be0",
"m_Id": 0,
"m_DisplayName": "In",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "In",
"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.MultiplyNode",
"m_ObjectId": "b5d365628d5d497fb9baee4f89e193d3",
"m_Group": {
"m_Id": ""
},
"m_Name": "Multiply",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -98.50003814697266,
"y": 63.00001525878906,
"width": 125.0,
"height": 118.0
}
},
"m_Slots": [
{
"m_Id": "9185b38e5e3841c48661f3cc49040ba0"
},
{
"m_Id": "796132f82b3f4522b9ed5fcf54080837"
},
{
"m_Id": "a144777030f44e51b9eccb049daaa435"
}
],
"synonyms": [],
"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": "f4372fad09b04d95a5f6d65a9988148f",
"m_Id": 1,
"m_DisplayName": "Attenuation",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "Attenuation",
"m_StageCapability": 3,
"m_Value": 0.0,
"m_DefaultValue": 0.0,
"m_Labels": []
}