Files
BABA_YAGA/Packages/app.rive.rive-unity/Runtime/Components/Shaders/SubGraphs/SampleEmission.shadersubgraph

761 lines
17 KiB
Plaintext
Raw Normal View History

2026-05-19 17:39:03 +07:00
{
"m_SGVersion": 3,
"m_Type": "UnityEditor.ShaderGraph.GraphData",
"m_ObjectId": "6b619450691d4acd8bb2e2ede69d3b11",
"m_Properties": [
{
"m_Id": "e41d6edd101b49f38ddd3fe98cbe839d"
},
{
"m_Id": "ec0ba007f0bc41e6b7507ffab93a4e81"
}
],
"m_Keywords": [],
"m_Dropdowns": [],
"m_CategoryData": [
{
"m_Id": "d1ede69802af4f6cad6f3067ef22d601"
}
],
"m_Nodes": [
{
"m_Id": "f11c51012e9e49c48347c1ed01688305"
},
{
"m_Id": "c3c7f2aaaa834aeaaac17e8f6edbf4ee"
},
{
"m_Id": "916e8be24dd940b9a815617014fea622"
},
{
"m_Id": "fe5f2e41089241ddb9665cdfded52ead"
},
{
"m_Id": "a6ca5138a21040c88fbbb604dacfbb52"
}
],
"m_GroupDatas": [
{
"m_Id": "31a187406d544c71addcb5f2ec60f0dd"
}
],
"m_StickyNoteDatas": [],
"m_Edges": [
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "916e8be24dd940b9a815617014fea622"
},
"m_SlotId": 2
},
"m_InputSlot": {
"m_Node": {
"m_Id": "f11c51012e9e49c48347c1ed01688305"
},
"m_SlotId": 1
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "a6ca5138a21040c88fbbb604dacfbb52"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "916e8be24dd940b9a815617014fea622"
},
"m_SlotId": 0
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "c3c7f2aaaa834aeaaac17e8f6edbf4ee"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "916e8be24dd940b9a815617014fea622"
},
"m_SlotId": 1
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "fe5f2e41089241ddb9665cdfded52ead"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "c3c7f2aaaa834aeaaac17e8f6edbf4ee"
},
"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": "Sub Graphs",
"m_GraphPrecision": 1,
"m_PreviewMode": 2,
"m_OutputNode": {
"m_Id": "f11c51012e9e49c48347c1ed01688305"
},
"m_ActiveTargets": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot",
"m_ObjectId": "127ce91b3943483c9de5b1070447418b",
"m_Id": 0,
"m_DisplayName": "EmissionColor",
"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_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot",
"m_ObjectId": "2db0a2a145da4be2836e69c5a0108f7c",
"m_Id": 0,
"m_DisplayName": "RGBA",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "RGBA",
"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.UVMaterialSlot",
"m_ObjectId": "30051f629c374179a6fd13d9fb476e26",
"m_Id": 2,
"m_DisplayName": "UV",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "UV",
"m_StageCapability": 3,
"m_Value": {
"x": 0.0,
"y": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0
},
"m_Labels": [],
"m_Channel": 0
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.GroupData",
"m_ObjectId": "31a187406d544c71addcb5f2ec60f0dd",
"m_Title": "Emission",
"m_Position": {
"x": -509.9999694824219,
"y": -73.99996948242188
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot",
"m_ObjectId": "43ec2b868c7f481eb85bf08eed225c8d",
"m_Id": 1,
"m_DisplayName": "Texture",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "Texture",
"m_StageCapability": 3,
"m_BareResource": false,
"m_Texture": {
"m_SerializedTexture": "{\"texture\":{\"instanceID\":0}}",
"m_Guid": ""
},
"m_DefaultType": 0
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot",
"m_ObjectId": "82c0444a2bf14afc8b1e33e64a389ab2",
"m_Id": 1,
"m_DisplayName": "Out_Emission",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "Out_Emission",
"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.MultiplyNode",
"m_ObjectId": "916e8be24dd940b9a815617014fea622",
"m_Group": {
"m_Id": "31a187406d544c71addcb5f2ec60f0dd"
},
"m_Name": "Multiply",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": 143.49993896484376,
"y": 378.4999694824219,
"width": 208.0,
"height": 302.0000305175781
}
},
"m_Slots": [
{
"m_Id": "cf892bd3a2a042fe9432dcb3df524adb"
},
{
"m_Id": "edaa132f45f240b5ba2c0389af96056a"
},
{
"m_Id": "ba915cd2e5d2465197c7177a4fd7d429"
}
],
"synonyms": [
"multiplication",
"times",
"x"
],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "9ed77e23228848baafc8f9ae0cf6ae5c",
"m_Id": 7,
"m_DisplayName": "A",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "A",
"m_StageCapability": 2,
"m_Value": 0.0,
"m_DefaultValue": 0.0,
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.PropertyNode",
"m_ObjectId": "a6ca5138a21040c88fbbb604dacfbb52",
"m_Group": {
"m_Id": "31a187406d544c71addcb5f2ec60f0dd"
},
"m_Name": "Property",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -301.49993896484377,
"y": 236.49996948242188,
"width": 151.0,
"height": 34.00006103515625
}
},
"m_Slots": [
{
"m_Id": "127ce91b3943483c9de5b1070447418b"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_Property": {
"m_Id": "e41d6edd101b49f38ddd3fe98cbe839d"
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Texture2DMaterialSlot",
"m_ObjectId": "a7afdcba447646dda5deb46af76ab0b2",
"m_Id": 0,
"m_DisplayName": "EmissionMap",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "Out",
"m_StageCapability": 3,
"m_BareResource": false
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot",
"m_ObjectId": "ba915cd2e5d2465197c7177a4fd7d429",
"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.SampleTexture2DNode",
"m_ObjectId": "c3c7f2aaaa834aeaaac17e8f6edbf4ee",
"m_Group": {
"m_Id": "31a187406d544c71addcb5f2ec60f0dd"
},
"m_Name": "Sample Texture 2D",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -247.0,
"y": 324.4999694824219,
"width": 208.0,
"height": 434.0001525878906
}
},
"m_Slots": [
{
"m_Id": "2db0a2a145da4be2836e69c5a0108f7c"
},
{
"m_Id": "dccd4f03ee2a45b2ab70812f50729cc7"
},
{
"m_Id": "c79bc36d84c443f5abc70525a05bdae0"
},
{
"m_Id": "f69e71976a2d4ecea22a95028807dbeb"
},
{
"m_Id": "9ed77e23228848baafc8f9ae0cf6ae5c"
},
{
"m_Id": "43ec2b868c7f481eb85bf08eed225c8d"
},
{
"m_Id": "30051f629c374179a6fd13d9fb476e26"
},
{
"m_Id": "fbfb207e7d1149d980d5acae2b983f1c"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_TextureType": 0,
"m_NormalMapSpace": 0,
"m_EnableGlobalMipBias": true
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "c79bc36d84c443f5abc70525a05bdae0",
"m_Id": 5,
"m_DisplayName": "G",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "G",
"m_StageCapability": 2,
"m_Value": 0.0,
"m_DefaultValue": 0.0,
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot",
"m_ObjectId": "cf892bd3a2a042fe9432dcb3df524adb",
"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.CategoryData",
"m_ObjectId": "d1ede69802af4f6cad6f3067ef22d601",
"m_Name": "",
"m_ChildObjectList": [
{
"m_Id": "e41d6edd101b49f38ddd3fe98cbe839d"
},
{
"m_Id": "ec0ba007f0bc41e6b7507ffab93a4e81"
}
]
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "dccd4f03ee2a45b2ab70812f50729cc7",
"m_Id": 4,
"m_DisplayName": "R",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "R",
"m_StageCapability": 2,
"m_Value": 0.0,
"m_DefaultValue": 0.0,
"m_Labels": []
}
{
"m_SGVersion": 3,
"m_Type": "UnityEditor.ShaderGraph.Internal.ColorShaderProperty",
"m_ObjectId": "e41d6edd101b49f38ddd3fe98cbe839d",
"m_Guid": {
"m_GuidSerialized": "417ee71e-80a1-414f-b809-df8c19e3743f"
},
"m_Name": "EmissionColor",
"m_DefaultRefNameVersion": 1,
"m_RefNameGeneratedByDisplayName": "EmissionColor",
"m_DefaultReferenceName": "_EmissionColor",
"m_OverrideReferenceName": "",
"m_GeneratePropertyBlock": true,
"m_UseCustomSlotLabel": false,
"m_CustomSlotLabel": "",
"m_Precision": 0,
"overrideHLSLDeclaration": false,
"hlslDeclarationOverride": 0,
"m_Hidden": false,
"m_Value": {
"r": 0.0,
"g": 0.0,
"b": 0.0,
"a": 0.0
},
"isMainColor": false,
"m_ColorMode": 0
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Internal.Texture2DShaderProperty",
"m_ObjectId": "ec0ba007f0bc41e6b7507ffab93a4e81",
"m_Guid": {
"m_GuidSerialized": "9fae8bf3-f659-4d48-8efb-5f8bda92ca8e"
},
"m_Name": "EmissionMap",
"m_DefaultRefNameVersion": 1,
"m_RefNameGeneratedByDisplayName": "EmissionMap",
"m_DefaultReferenceName": "_EmissionMap",
"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.DynamicValueMaterialSlot",
"m_ObjectId": "edaa132f45f240b5ba2c0389af96056a",
"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.SubGraphOutputNode",
"m_ObjectId": "f11c51012e9e49c48347c1ed01688305",
"m_Group": {
"m_Id": "31a187406d544c71addcb5f2ec60f0dd"
},
"m_Name": "Output",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": 1002.4999389648438,
"y": -15.499969482421875,
"width": 120.50006103515625,
"height": 76.99996948242188
}
},
"m_Slots": [
{
"m_Id": "82c0444a2bf14afc8b1e33e64a389ab2"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"IsFirstSlotValid": true
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "f69e71976a2d4ecea22a95028807dbeb",
"m_Id": 6,
"m_DisplayName": "B",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "B",
"m_StageCapability": 2,
"m_Value": 0.0,
"m_DefaultValue": 0.0,
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.SamplerStateMaterialSlot",
"m_ObjectId": "fbfb207e7d1149d980d5acae2b983f1c",
"m_Id": 3,
"m_DisplayName": "Sampler",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "Sampler",
"m_StageCapability": 3,
"m_BareResource": false
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.PropertyNode",
"m_ObjectId": "fe5f2e41089241ddb9665cdfded52ead",
"m_Group": {
"m_Id": "31a187406d544c71addcb5f2ec60f0dd"
},
"m_Name": "Property",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -484.99993896484377,
"y": 253.49993896484376,
"width": 152.5,
"height": 34.00006103515625
}
},
"m_Slots": [
{
"m_Id": "a7afdcba447646dda5deb46af76ab0b2"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_Property": {
"m_Id": "ec0ba007f0bc41e6b7507ffab93a4e81"
}
}