- Home /
UI CustomShader disappears when Android losing focus
Hello everyone,
I am struggling to get my custom shader to work on Android. The shader is functioning on PC, and on Android until the device loses focus (application on background or overlay like Unity ads). The UI canvas mode was set to Overlay and the shader was created with ShaderGraph Sprite Unlit. This problem has occurred on several Android devices.
I am using Unity 2020.3.23f1 on URP.
Many thanks for your help!
{
"m_SGVersion": 2,
"m_Type": "UnityEditor.ShaderGraph.GraphData",
"m_ObjectId": "2496de3bac514cf390126d05411d6b3a",
"m_Properties": [
{
"m_Id": "d511ed3ba6b94c9681e6699320930d14"
},
{
"m_Id": "98fb1c22a3d645fcb996d0cb0805b625"
}
],
"m_Keywords": [],
"m_Nodes": [
{
"m_Id": "2c80cf7eb3f84616a73a1ca6e6e767b6"
},
{
"m_Id": "95c4395b7fc8492382e8f033c92ef543"
},
{
"m_Id": "31c19759a62d4c7ea52e8818d18d9707"
},
{
"m_Id": "093c012923ea4ec281df6cd501e15e77"
},
{
"m_Id": "d58a056980de425999ee07e7b4e8ea62"
},
{
"m_Id": "36f51c9c50fc405daa20e7e08e08e626"
},
{
"m_Id": "c5d9b9d86e054f7897a452d39afd1f28"
},
{
"m_Id": "c398eb7a11394583bafbe771d9c5c37a"
},
{
"m_Id": "b87f240803e44da1bc1de4a8fdeb1304"
},
{
"m_Id": "74000e96fa444b29af6b92a77b4bc00b"
},
{
"m_Id": "eb92cd3fe5a945039b04574872418f64"
},
{
"m_Id": "083bd58f1e7747aca61ce3518aa2e1eb"
},
{
"m_Id": "7da764c8b5a9441790331703431d6283"
},
{
"m_Id": "3c0b4e1ba09944e89495b7277793c943"
}
],
"m_GroupDatas": [
{
"m_Id": "211dfcc1037b45deb7904fe6a278fd1e"
},
{
"m_Id": "bed96e1ef42e42b48a631f9c0ed74eae"
}
],
"m_StickyNoteDatas": [],
"m_Edges": [
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "083bd58f1e7747aca61ce3518aa2e1eb"
},
"m_SlotId": 3
},
"m_InputSlot": {
"m_Node": {
"m_Id": "74000e96fa444b29af6b92a77b4bc00b"
},
"m_SlotId": 0
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "36f51c9c50fc405daa20e7e08e08e626"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "c5d9b9d86e054f7897a452d39afd1f28"
},
"m_SlotId": 1
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "3c0b4e1ba09944e89495b7277793c943"
},
"m_SlotId": 1
},
"m_InputSlot": {
"m_Node": {
"m_Id": "c5d9b9d86e054f7897a452d39afd1f28"
},
"m_SlotId": 2
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "74000e96fa444b29af6b92a77b4bc00b"
},
"m_SlotId": 2
},
"m_InputSlot": {
"m_Node": {
"m_Id": "eb92cd3fe5a945039b04574872418f64"
},
"m_SlotId": 0
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "7da764c8b5a9441790331703431d6283"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "083bd58f1e7747aca61ce3518aa2e1eb"
},
"m_SlotId": 2
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "b87f240803e44da1bc1de4a8fdeb1304"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "c398eb7a11394583bafbe771d9c5c37a"
},
"m_SlotId": 1
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "c398eb7a11394583bafbe771d9c5c37a"
},
"m_SlotId": 7
},
"m_InputSlot": {
"m_Node": {
"m_Id": "d58a056980de425999ee07e7b4e8ea62"
},
"m_SlotId": 0
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "c5d9b9d86e054f7897a452d39afd1f28"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "093c012923ea4ec281df6cd501e15e77"
},
"m_SlotId": 0
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "eb92cd3fe5a945039b04574872418f64"
},
"m_SlotId": 2
},
"m_InputSlot": {
"m_Node": {
"m_Id": "3c0b4e1ba09944e89495b7277793c943"
},
"m_SlotId": 730945472
}
}
],
"m_VertexContext": {
"m_Position": {
"x": -785.9999389648438,
"y": -425.9999694824219
},
"m_Blocks": [
{
"m_Id": "95c4395b7fc8492382e8f033c92ef543"
},
{
"m_Id": "2c80cf7eb3f84616a73a1ca6e6e767b6"
},
{
"m_Id": "31c19759a62d4c7ea52e8818d18d9707"
}
]
},
"m_FragmentContext": {
"m_Position": {
"x": -785.9999389648438,
"y": -88.00005340576172
},
"m_Blocks": [
{
"m_Id": "093c012923ea4ec281df6cd501e15e77"
},
{
"m_Id": "d58a056980de425999ee07e7b4e8ea62"
}
]
},
"m_PreviewData": {
"serializedMesh": {
"m_SerializedMesh": "{\"mesh\":{\"fileID\":10210,\"guid\":\"0000000000000000e000000000000000\",\"type\":0}}",
"m_Guid": ""
}
},
"m_Path": "Basalt",
"m_ConcretePrecision": 0,
"m_PreviewMode": 2,
"m_OutputNode": {
"m_Id": ""
},
"m_ActiveTargets": [
{
"m_Id": "3dcaced5e53d4858af47046dec9523f6"
}
]
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot",
"m_ObjectId": "02dd6686a08d4faf9e4359782f2fa091",
"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.Vector1MaterialSlot",
"m_ObjectId": "0475e447f3c8483ba531d989606cf8fe",
"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.DynamicValueMaterialSlot",
"m_ObjectId": "05730ce4e7644a16aa0896bb813dbab6",
"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.Texture2DInputMaterialSlot",
"m_ObjectId": "062a0bd09fb44327ab7770c633d44d24",
"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.DynamicVectorMaterialSlot",
"m_ObjectId": "07366bd8d5134e859416eeb5cb74491c",
"m_Id": 0,
"m_DisplayName": "A",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "A",
"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.RotateNode",
"m_ObjectId": "083bd58f1e7747aca61ce3518aa2e1eb",
"m_Group": {
"m_Id": "211dfcc1037b45deb7904fe6a278fd1e"
},
"m_Name": "Rotate",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -2709.0,
"y": -522.0,
"width": 207.99998474121095,
"height": 362.0
}
},
"m_Slots": [
{
"m_Id": "82a797f7809644478a6de1bd63877b24"
},
{
"m_Id": "30b08aa26ec1428a947a3b0293bd2f0d"
},
{
"m_Id": "cc03318c08164721a7f58fcfc80dde42"
},
{
"m_Id": "7cd09f16a8144d2eb9867fdc273dd8f7"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_Unit": 0
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.BlockNode",
"m_ObjectId": "093c012923ea4ec281df6cd501e15e77",
"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": "a48fd024df4f48988cbf27cd90415aa4"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_SerializedDescriptor": "SurfaceDescription.BaseColor"
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.UVMaterialSlot",
"m_ObjectId": "0c82c9a20bbd4a409ff0071fba766fe4",
"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.Vector1MaterialSlot",
"m_ObjectId": "1291d1b223f343299ebeabbfc995c408",
"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.PositionMaterialSlot",
"m_ObjectId": "1e401c02d05a4a98b418630ee0fbca21",
"m_Id": 0,
"m_DisplayName": "Position",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "Position",
"m_StageCapability": 1,
"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_Space": 0
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.GroupData",
"m_ObjectId": "211dfcc1037b45deb7904fe6a278fd1e",
"m_Title": "Pos -1 1",
"m_Position": {
"x": -2906.486328125,
"y": -580.6852416992188
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector2MaterialSlot",
"m_ObjectId": "2367d43cd7b046dfabbc12926faa05fc",
"m_Id": 730945472,
"m_DisplayName": "UV",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "Vector2_63a13a2eae574cf79503b09374ecf62a",
"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.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "278bea821e234f38928b86f18464fe6f",
"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.Vector1MaterialSlot",
"m_ObjectId": "2b8924846c29496282dc6b0e37b604f7",
"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": 0,
"m_Type": "UnityEditor.ShaderGraph.BlockNode",
"m_ObjectId": "2c80cf7eb3f84616a73a1ca6e6e767b6",
"m_Group": {
"m_Id": ""
},
"m_Name": "VertexDescription.Position",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -377.0000305175781,
"y": -479.0000305175781,
"width": 200.0,
"height": 41.0
}
},
"m_Slots": [
{
"m_Id": "1e401c02d05a4a98b418630ee0fbca21"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_SerializedDescriptor": "VertexDescription.Position"
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "2d3af0e73b5443a1a69e2154d6ad7185",
"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.Vector2MaterialSlot",
"m_ObjectId": "30b08aa26ec1428a947a3b0293bd2f0d",
"m_Id": 1,
"m_DisplayName": "Center",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "Center",
"m_StageCapability": 3,
"m_Value": {
"x": 0.5,
"y": 0.5
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0
},
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.BlockNode",
"m_ObjectId": "31c19759a62d4c7ea52e8818d18d9707",
"m_Group": {
"m_Id": ""
},
"m_Name": "VertexDescription.Tangent",
"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": "554f26d2a5c7438c857332403b2a6ff4"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_SerializedDescriptor": "VertexDescription.Tangent"
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.PropertyNode",
"m_ObjectId": "36f51c9c50fc405daa20e7e08e08e626",
"m_Group": {
"m_Id": "bed96e1ef42e42b48a631f9c0ed74eae"
},
"m_Name": "Property",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -1323.0,
"y": -121.99999237060547,
"width": 129.0,
"height": 34.0
}
},
"m_Slots": [
{
"m_Id": "62dff663b9d64137be3dc170b2d6c7ff"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_Property": {
"m_Id": "98fb1c22a3d645fcb996d0cb0805b625"
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "39d4eeeba39f465ab42f6562cc54cd59",
"m_Id": 0,
"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.SubGraphNode",
"m_ObjectId": "3c0b4e1ba09944e89495b7277793c943",
"m_Group": {
"m_Id": ""
},
"m_Name": "UVSpherizer",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -1656.0001220703125,
"y": -71.99996185302735,
"width": 222.0,
"height": 302.0
}
},
"m_Slots": [
{
"m_Id": "2367d43cd7b046dfabbc12926faa05fc"
},
{
"m_Id": "c62909dc14cd48b3b8dbee6fc6c8741f"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_SerializedSubGraph": "{\n \"subGraph\": {\n \"fileID\": -5475051401550479605,\n \"guid\": \"8e14e95518b729446ad287b928f91567\",\n \"type\": 3\n }\n}",
"m_PropertyGuids": [
"b3a8fe15-fb5b-44dd-8b95-e52b35fcb5a9",
"3e5e18b0-bea0-407b-bf98-2837603d6886",
"c63410e2-f0a5-47ff-9a88-1dc70aa5e7dd"
],
"m_PropertyIds": [
-1376535967,
-1459726259,
730945472
]
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.Rendering.Universal.ShaderGraph.UniversalTarget",
"m_ObjectId": "3dcaced5e53d4858af47046dec9523f6",
"m_ActiveSubTarget": {
"m_Id": "cd904d47b8324f76b110c3ed5d801d47"
},
"m_SurfaceType": 0,
"m_AlphaMode": 0,
"m_TwoSided": false,
"m_AlphaClip": false,
"m_CustomEditorGUI": ""
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "4164c3210776428aa3dd5d6a0765d223",
"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": 0,
"m_Type": "UnityEditor.ShaderGraph.UVMaterialSlot",
"m_ObjectId": "42fb8ead60954446b3f05042cb3f987d",
"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.TangentMaterialSlot",
"m_ObjectId": "554f26d2a5c7438c857332403b2a6ff4",
"m_Id": 0,
"m_DisplayName": "Tangent",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "Tangent",
"m_StageCapability": 1,
"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_Space": 0
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot",
"m_ObjectId": "60ddc8702d1d4b89b6b893191b1d2efc",
"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.Texture2DMaterialSlot",
"m_ObjectId": "62dff663b9d64137be3dc170b2d6c7ff",
"m_Id": 0,
"m_DisplayName": "Gradiant",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "Out",
"m_StageCapability": 3,
"m_BareResource": false
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.NormalMaterialSlot",
"m_ObjectId": "6894535ba28e47f7931620b10cb219a3",
"m_Id": 0,
"m_DisplayName": "Normal",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "Normal",
"m_StageCapability": 1,
"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_Space": 0
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot",
"m_ObjectId": "7065946889ef48c99a143eceec9bf9bf",
"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": 21.0,
"e03": 1.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.SubtractNode",
"m_ObjectId": "74000e96fa444b29af6b92a77b4bc00b",
"m_Group": {
"m_Id": "211dfcc1037b45deb7904fe6a278fd1e"
},
"m_Name": "Subtract",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -2403.0,
"y": -223.0000762939453,
"width": 207.99998474121095,
"height": 302.0
}
},
"m_Slots": [
{
"m_Id": "07366bd8d5134e859416eeb5cb74491c"
},
{
"m_Id": "ea758a9851164f069789b0b7810fb768"
},
{
"m_Id": "779386789ad04c7b974a0a54cd1729f1"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot",
"m_ObjectId": "779386789ad04c7b974a0a54cd1729f1",
"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.Vector2MaterialSlot",
"m_ObjectId": "7cd09f16a8144d2eb9867fdc273dd8f7",
"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
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0
},
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.ConstantNode",
"m_ObjectId": "7da764c8b5a9441790331703431d6283",
"m_Group": {
"m_Id": "211dfcc1037b45deb7904fe6a278fd1e"
},
"m_Name": "Constant",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -2880.999755859375,
"y": -366.9999694824219,
"width": 144.99998474121095,
"height": 112.99999237060547
}
},
"m_Slots": [
{
"m_Id": "39d4eeeba39f465ab42f6562cc54cd59"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_constant": 0
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "7e4dd99ee0b54ee483b35854ea354d42",
"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.Vector1MaterialSlot",
"m_ObjectId": "8137e80b25bb45519e8b8b7b7ae8b68c",
"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.UVMaterialSlot",
"m_ObjectId": "82a797f7809644478a6de1bd63877b24",
"m_Id": 0,
"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.SamplerStateMaterialSlot",
"m_ObjectId": "8552fc4341a442eab42b5a26bc011c29",
"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.Vector4MaterialSlot",
"m_ObjectId": "8f7da8d8bda145ae9bb3abc1b3c14d33",
"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.Vector1MaterialSlot",
"m_ObjectId": "9135ff5e1553483a962b5bd33f0cf577",
"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.BlockNode",
"m_ObjectId": "95c4395b7fc8492382e8f033c92ef543",
"m_Group": {
"m_Id": ""
},
"m_Name": "VertexDescription.Normal",
"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": "6894535ba28e47f7931620b10cb219a3"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_SerializedDescriptor": "VertexDescription.Normal"
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Internal.Texture2DShaderProperty",
"m_ObjectId": "98fb1c22a3d645fcb996d0cb0805b625",
"m_Guid": {
"m_GuidSerialized": "41c65d61-2183-40a5-8b0f-34aebd0639c6"
},
"m_Name": "Gradiant",
"m_DefaultReferenceName": "Texture2D_98fb1c22a3d645fcb996d0cb0805b625",
"m_OverrideReferenceName": "Gradiant",
"m_GeneratePropertyBlock": true,
"m_Precision": 0,
"overrideHLSLDeclaration": false,
"hlslDeclarationOverride": 0,
"m_Hidden": false,
"m_Value": {
"m_SerializedTexture": "{\"texture\":{\"fileID\":2800000,\"guid\":\"e7ef9d571fa297149b865fa60fb604d7\",\"type\":3}}",
"m_Guid": ""
},
"m_Modifiable": true,
"m_DefaultType": 0
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.ColorRGBMaterialSlot",
"m_ObjectId": "a48fd024df4f48988cbf27cd90415aa4",
"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.Texture2DMaterialSlot",
"m_ObjectId": "b6c3b6b097744123b54a29e9d2d9a835",
"m_Id": 0,
"m_DisplayName": "Mask",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "Out",
"m_StageCapability": 3,
"m_BareResource": false
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.PropertyNode",
"m_ObjectId": "b87f240803e44da1bc1de4a8fdeb1304",
"m_Group": {
"m_Id": "bed96e1ef42e42b48a631f9c0ed74eae"
},
"m_Name": "Property",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -1337.0,
"y": 401.9999694824219,
"width": 103.0,
"height": 34.0
}
},
"m_Slots": [
{
"m_Id": "b6c3b6b097744123b54a29e9d2d9a835"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_Property": {
"m_Id": "d511ed3ba6b94c9681e6699320930d14"
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.GroupData",
"m_ObjectId": "bed96e1ef42e42b48a631f9c0ed74eae",
"m_Title": "Mask merging",
"m_Position": {
"x": -1361.9998779296875,
"y": -181.00001525878907
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.SampleTexture2DNode",
"m_ObjectId": "c398eb7a11394583bafbe771d9c5c37a",
"m_Group": {
"m_Id": "bed96e1ef42e42b48a631f9c0ed74eae"
},
"m_Name": "Sample Texture 2D",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -1207.0001220703125,
"y": 436.00006103515627,
"width": 184.0,
"height": 252.99998474121095
}
},
"m_Slots": [
{
"m_Id": "8f7da8d8bda145ae9bb3abc1b3c14d33"
},
{
"m_Id": "2b8924846c29496282dc6b0e37b604f7"
},
{
"m_Id": "2d3af0e73b5443a1a69e2154d6ad7185"
},
{
"m_Id": "0475e447f3c8483ba531d989606cf8fe"
},
{
"m_Id": "278bea821e234f38928b86f18464fe6f"
},
{
"m_Id": "062a0bd09fb44327ab7770c633d44d24"
},
{
"m_Id": "42fb8ead60954446b3f05042cb3f987d"
},
{
"m_Id": "e86c6c339bf44a0f9fee79c3ca29e069"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": false,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_TextureType": 0,
"m_NormalMapSpace": 0
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.SampleTexture2DNode",
"m_ObjectId": "c5d9b9d86e054f7897a452d39afd1f28",
"m_Group": {
"m_Id": "bed96e1ef42e42b48a631f9c0ed74eae"
},
"m_Name": "Sample Texture 2D",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -1179.0001220703125,
"y": -73.0000228881836,
"width": 184.0,
"height": 252.99998474121095
}
},
"m_Slots": [
{
"m_Id": "60ddc8702d1d4b89b6b893191b1d2efc"
},
{
"m_Id": "4164c3210776428aa3dd5d6a0765d223"
},
{
"m_Id": "1291d1b223f343299ebeabbfc995c408"
},
{
"m_Id": "9135ff5e1553483a962b5bd33f0cf577"
},
{
"m_Id": "7e4dd99ee0b54ee483b35854ea354d42"
},
{
"m_Id": "f298f9a127f94899a781fab56fde32e9"
},
{
"m_Id": "0c82c9a20bbd4a409ff0071fba766fe4"
},
{
"m_Id": "8552fc4341a442eab42b5a26bc011c29"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": false,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_TextureType": 0,
"m_NormalMapSpace": 0
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot",
"m_ObjectId": "c62909dc14cd48b3b8dbee6fc6c8741f",
"m_Id": 1,
"m_DisplayName": "Out_Vector4",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "OutVector4",
"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.Vector1MaterialSlot",
"m_ObjectId": "cc03318c08164721a7f58fcfc80dde42",
"m_Id": 2,
"m_DisplayName": "Rotation",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "Rotation",
"m_StageCapability": 3,
"m_Value": 3.140000104904175,
"m_DefaultValue": 0.0,
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.Rendering.Universal.ShaderGraph.UniversalSpriteUnlitSubTarget",
"m_ObjectId": "cd904d47b8324f76b110c3ed5d801d47"
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Internal.Texture2DShaderProperty",
"m_ObjectId": "d511ed3ba6b94c9681e6699320930d14",
"m_Guid": {
"m_GuidSerialized": "09992510-bb28-434e-97d6-3a736e756801"
},
"m_Name": "Mask",
"m_DefaultReferenceName": "Texture2D_d511ed3ba6b94c9681e6699320930d14",
"m_OverrideReferenceName": "_MainTex",
"m_GeneratePropertyBlock": false,
"m_Precision": 0,
"overrideHLSLDeclaration": false,
"hlslDeclarationOverride": 0,
"m_Hidden": false,
"m_Value": {
"m_SerializedTexture": "{\"texture\":{\"instanceID\":0}}",
"m_Guid": ""
},
"m_Modifiable": true,
"m_DefaultType": 0
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.BlockNode",
"m_ObjectId": "d58a056980de425999ee07e7b4e8ea62",
"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": "8137e80b25bb45519e8b8b7b7ae8b68c"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_SerializedDescriptor": "SurfaceDescription.Alpha"
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.SamplerStateMaterialSlot",
"m_ObjectId": "e86c6c339bf44a0f9fee79c3ca29e069",
"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.DynamicVectorMaterialSlot",
"m_ObjectId": "ea758a9851164f069789b0b7810fb768",
"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.5,
"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": "eb92cd3fe5a945039b04574872418f64",
"m_Group": {
"m_Id": "211dfcc1037b45deb7904fe6a278fd1e"
},
"m_Name": "Multiply",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -2166.999755859375,
"y": 58.999977111816409,
"width": 207.99998474121095,
"height": 302.0
}
},
"m_Slots": [
{
"m_Id": "02dd6686a08d4faf9e4359782f2fa091"
},
{
"m_Id": "7065946889ef48c99a143eceec9bf9bf"
},
{
"m_Id": "05730ce4e7644a16aa0896bb813dbab6"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot",
"m_ObjectId": "f298f9a127f94899a781fab56fde32e9",
"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
}
Comment
Your answer
Follow this Question
Related Questions
UI leads to game crash 1 Answer
Horizontally gradient on image UI element 5 Answers
OpenGL ES 2.0 support breaks simple shader 0 Answers
Water4 Advanced Edge blend Not working with GearVR 0 Answers
GL - Shader not working in Android 1 Answer