Net-Game/Library/PackageCache/com.unity.shadergraph@cdef3258c742/Samples~/UGUIShaders/Examples/ProgressBars/Gradient Bar.shadergraph
2025-03-28 08:33:16 -04:00

716 lines
17 KiB
Plaintext

{
"m_SGVersion": 3,
"m_Type": "UnityEditor.ShaderGraph.GraphData",
"m_ObjectId": "a8812284364b4cc48ee44ec9ea79910c",
"m_Properties": [],
"m_Keywords": [],
"m_Dropdowns": [],
"m_CategoryData": [
{
"m_Id": "73b51a3412e742a794c278f2c4cbf46d"
}
],
"m_Nodes": [
{
"m_Id": "6592898a2b754667869b2cab7e0b95d1"
},
{
"m_Id": "0a2f9b144d0045178609f9877af4a179"
},
{
"m_Id": "1795d618ff9042e7bf5dcb0540585086"
},
{
"m_Id": "95429b1cde884ae692c102136ca638d7"
},
{
"m_Id": "62f207aaba804903abeb8c1403fe00b2"
},
{
"m_Id": "0a03babd593e4a04953603dea07a0eca"
}
],
"m_GroupDatas": [],
"m_StickyNoteDatas": [],
"m_Edges": [
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "0a03babd593e4a04953603dea07a0eca"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "95429b1cde884ae692c102136ca638d7"
},
"m_SlotId": 1964807939
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "62f207aaba804903abeb8c1403fe00b2"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "95429b1cde884ae692c102136ca638d7"
},
"m_SlotId": -2050571996
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "95429b1cde884ae692c102136ca638d7"
},
"m_SlotId": 1
},
"m_InputSlot": {
"m_Node": {
"m_Id": "6592898a2b754667869b2cab7e0b95d1"
},
"m_SlotId": 0
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "95429b1cde884ae692c102136ca638d7"
},
"m_SlotId": 2
},
"m_InputSlot": {
"m_Node": {
"m_Id": "1795d618ff9042e7bf5dcb0540585086"
},
"m_SlotId": 0
}
}
],
"m_VertexContext": {
"m_Position": {
"x": 0.0,
"y": 0.0
},
"m_Blocks": []
},
"m_FragmentContext": {
"m_Position": {
"x": 0.0,
"y": 200.0
},
"m_Blocks": [
{
"m_Id": "6592898a2b754667869b2cab7e0b95d1"
},
{
"m_Id": "0a2f9b144d0045178609f9877af4a179"
},
{
"m_Id": "1795d618ff9042e7bf5dcb0540585086"
}
]
},
"m_PreviewData": {
"serializedMesh": {
"m_SerializedMesh": "{\"mesh\":{\"instanceID\":0}}",
"m_Guid": ""
},
"preventRotation": false
},
"m_Path": "Shader Graphs",
"m_GraphPrecision": 1,
"m_PreviewMode": 2,
"m_OutputNode": {
"m_Id": ""
},
"m_SubDatas": [],
"m_ActiveTargets": [
{
"m_Id": "22929cd6541a4502a7c90bf8b79b287a"
},
{
"m_Id": "3b2540bad94e4697b395dac2fc498d1c"
}
]
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.RectTransformSizeNode",
"m_ObjectId": "0a03babd593e4a04953603dea07a0eca",
"m_Group": {
"m_Id": ""
},
"m_Name": "RectTransform Size",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -540.2801513671875,
"y": 362.5564270019531,
"width": 0.0,
"height": 0.0
}
},
"m_Slots": [
{
"m_Id": "b52f9d2ba3ac4766955dd24fa811e05a"
},
{
"m_Id": "9310a8c24cc74b08ad6bfc8ce4ad5a9c"
},
{
"m_Id": "0be4f0c13b0145a58f78851bfa2f322f"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"previewSize": {
"x": 100.0,
"y": 100.0
},
"previewScaleFactor": 1.0,
"previewPixelsPerUnit": 100.0
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.BlockNode",
"m_ObjectId": "0a2f9b144d0045178609f9877af4a179",
"m_Group": {
"m_Id": ""
},
"m_Name": "SurfaceDescription.Emission",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": 0.0,
"y": 0.0,
"width": 0.0,
"height": 0.0
}
},
"m_Slots": [
{
"m_Id": "216bddc8dd0c4c85b696ea6b1dc8bf89"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_SerializedDescriptor": "SurfaceDescription.Emission"
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "0be4f0c13b0145a58f78851bfa2f322f",
"m_Id": 2,
"m_DisplayName": "Pixel Per Unit",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "_CanvasPixelPerUnit",
"m_StageCapability": 3,
"m_Value": 100.0,
"m_DefaultValue": 100.0,
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.BlockNode",
"m_ObjectId": "1795d618ff9042e7bf5dcb0540585086",
"m_Group": {
"m_Id": ""
},
"m_Name": "SurfaceDescription.Alpha",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": 0.0,
"y": 0.0,
"width": 0.0,
"height": 0.0
}
},
"m_Slots": [
{
"m_Id": "19f24945d088461eb626ea399986d27a"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_SerializedDescriptor": "SurfaceDescription.Alpha"
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "19f24945d088461eb626ea399986d27a",
"m_Id": 0,
"m_DisplayName": "Alpha",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "Alpha",
"m_StageCapability": 2,
"m_Value": 1.0,
"m_DefaultValue": 1.0,
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.ColorRGBMaterialSlot",
"m_ObjectId": "216bddc8dd0c4c85b696ea6b1dc8bf89",
"m_Id": 0,
"m_DisplayName": "Emission",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "Emission",
"m_StageCapability": 2,
"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_ColorMode": 1,
"m_DefaultColor": {
"r": 0.0,
"g": 0.0,
"b": 0.0,
"a": 1.0
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.Rendering.HighDefinition.ShaderGraph.HDTarget",
"m_ObjectId": "22929cd6541a4502a7c90bf8b79b287a",
"m_ActiveSubTarget": {
"m_Id": "f84934c605d0438b9d9b65af0e04993e"
},
"m_Datas": [
{
"m_Id": "25c84c3be2784231b19e9acff34d2d1b"
},
{
"m_Id": "ec0773b35401476ea81c2e6afc45d427"
}
],
"m_CustomEditorGUI": "",
"m_SupportVFX": false,
"m_SupportLineRendering": false
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.Rendering.Canvas.ShaderGraph.CanvasData",
"m_ObjectId": "25c84c3be2784231b19e9acff34d2d1b",
"m_Version": 0,
"m_AlphaClip": false,
"m_DisableTint": false
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.Rendering.Canvas.ShaderGraph.CanvasData",
"m_ObjectId": "2b0ce370dcf14f6b85a9202cf7dfb6e7",
"m_Version": 0,
"m_AlphaClip": false,
"m_DisableTint": false
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "3465e479a02143f194555f0969e1ed97",
"m_Id": 2,
"m_DisplayName": "Alpha",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "Alpha",
"m_StageCapability": 2,
"m_Value": 0.0,
"m_DefaultValue": 0.0,
"m_Labels": []
}
{
"m_SGVersion": 1,
"m_Type": "UnityEditor.Rendering.Universal.ShaderGraph.UniversalTarget",
"m_ObjectId": "3b2540bad94e4697b395dac2fc498d1c",
"m_Datas": [
{
"m_Id": "4fe9d10aca444e399240f26aa5032e51"
},
{
"m_Id": "6a01ef8d206a4035bb0614e2a9f7e172"
},
{
"m_Id": "7baa4dfb16cf411cbcefee4df950c940"
},
{
"m_Id": "2b0ce370dcf14f6b85a9202cf7dfb6e7"
}
],
"m_ActiveSubTarget": {
"m_Id": "d4c64a3ec6124e59ab94142d70644f47"
},
"m_AllowMaterialOverride": false,
"m_SurfaceType": 0,
"m_ZTestMode": 4,
"m_ZWriteControl": 0,
"m_AlphaMode": 0,
"m_RenderFace": 2,
"m_AlphaClip": false,
"m_CastShadows": true,
"m_ReceiveShadows": true,
"m_DisableTint": false,
"m_AdditionalMotionVectorMode": 0,
"m_AlembicMotionVectors": false,
"m_SupportsLODCrossFade": false,
"m_CustomEditorGUI": "",
"m_SupportVFX": false
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.SliderValueNode",
"m_ObjectId": "62f207aaba804903abeb8c1403fe00b2",
"m_Group": {
"m_Id": ""
},
"m_Name": "Slider Value",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -679.0,
"y": 200.0,
"width": 113.0,
"height": 125.0
}
},
"m_Slots": [
{
"m_Id": "dd126bbe4ebf40f9952d045389d749c7"
},
{
"m_Id": "d036f063d4544c9eb84d5f3f738a0e87"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.BlockNode",
"m_ObjectId": "6592898a2b754667869b2cab7e0b95d1",
"m_Group": {
"m_Id": ""
},
"m_Name": "SurfaceDescription.BaseColor",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": 0.0,
"y": 0.0,
"width": 0.0,
"height": 0.0
}
},
"m_Slots": [
{
"m_Id": "ba8f7b82eb5248aea55ca2a115d7a707"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_SerializedDescriptor": "SurfaceDescription.BaseColor"
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.CategoryData",
"m_ObjectId": "73b51a3412e742a794c278f2c4cbf46d",
"m_Name": "",
"m_ChildObjectList": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "9310a8c24cc74b08ad6bfc8ce4ad5a9c",
"m_Id": 1,
"m_DisplayName": "Scale Factor",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "_CanvasScaleFactor",
"m_StageCapability": 3,
"m_Value": 1.0,
"m_DefaultValue": 1.0,
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.SubGraphNode",
"m_ObjectId": "95429b1cde884ae692c102136ca638d7",
"m_Group": {
"m_Id": ""
},
"m_Name": "Gradient Bar",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -315.0000305175781,
"y": 219.0,
"width": 208.00003051757813,
"height": 302.99993896484377
}
},
"m_Slots": [
{
"m_Id": "bf977ee708df40d09240c84224e70286"
},
{
"m_Id": "9cc8145ab2a44e5ab122312908736d2e"
},
{
"m_Id": "efdc5efddbab451cad66d04c0a671be2"
},
{
"m_Id": "3465e479a02143f194555f0969e1ed97"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_SerializedSubGraph": "{\n \"subGraph\": {\n \"fileID\": -5475051401550479605,\n \"guid\": \"dd4dd6c540c27a54287d500225826154\",\n \"type\": 3\n }\n}",
"m_PropertyGuids": [
"89caf6e6-b07e-42f3-9fc7-1c382340e376",
"4d994003-0e74-4031-9b21-a940eff81d38"
],
"m_PropertyIds": [
-2050571996,
1964807939
],
"m_Dropdowns": [],
"m_DropdownSelectedEntries": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector2MaterialSlot",
"m_ObjectId": "9cc8145ab2a44e5ab122312908736d2e",
"m_Id": 1964807939,
"m_DisplayName": "Width Height",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "_Width_Height",
"m_StageCapability": 2,
"m_Value": {
"x": 100.0,
"y": 100.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0
},
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector2MaterialSlot",
"m_ObjectId": "b52f9d2ba3ac4766955dd24fa811e05a",
"m_Id": 0,
"m_DisplayName": "Size",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "_RectTransformSize",
"m_StageCapability": 3,
"m_Value": {
"x": 1.0,
"y": 1.0
},
"m_DefaultValue": {
"x": 100.0,
"y": 100.0
},
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.ColorRGBMaterialSlot",
"m_ObjectId": "ba8f7b82eb5248aea55ca2a115d7a707",
"m_Id": 0,
"m_DisplayName": "Base Color",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "BaseColor",
"m_StageCapability": 2,
"m_Value": {
"x": 0.5,
"y": 0.5,
"z": 0.5
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"m_Labels": [],
"m_ColorMode": 0,
"m_DefaultColor": {
"r": 0.5,
"g": 0.5,
"b": 0.5,
"a": 1.0
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "bf977ee708df40d09240c84224e70286",
"m_Id": -2050571996,
"m_DisplayName": "Progress",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "_Progress",
"m_StageCapability": 2,
"m_Value": 0.75,
"m_DefaultValue": 0.0,
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector2MaterialSlot",
"m_ObjectId": "d036f063d4544c9eb84d5f3f738a0e87",
"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
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0
},
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.Rendering.Universal.ShaderGraph.UniversalCanvasSubTarget",
"m_ObjectId": "d4c64a3ec6124e59ab94142d70644f47"
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "dd126bbe4ebf40f9952d045389d749c7",
"m_Id": 0,
"m_DisplayName": "Value",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "_Value",
"m_StageCapability": 3,
"m_Value": 0.0,
"m_DefaultValue": 0.0,
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.Rendering.HighDefinition.ShaderGraph.HDCanvasData",
"m_ObjectId": "ec0773b35401476ea81c2e6afc45d427",
"supportsMotionVectors": false
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot",
"m_ObjectId": "efdc5efddbab451cad66d04c0a671be2",
"m_Id": 1,
"m_DisplayName": "Out",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "Out",
"m_StageCapability": 2,
"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.Rendering.HighDefinition.ShaderGraph.HDCanvasSubTarget",
"m_ObjectId": "f84934c605d0438b9d9b65af0e04993e"
}