Singularity/Library/PackageCache/com.unity.render-pipelines..../Samples~/URPPackageSamples/Decals/PaintSplat/WorldSpaceUV.shadersubgraph
2024-05-06 11:45:45 -07:00

942 lines
20 KiB
Plaintext

{
"m_SGVersion": 3,
"m_Type": "UnityEditor.ShaderGraph.GraphData",
"m_ObjectId": "a3f8c56332214e4f90b5337efd574ffd",
"m_Properties": [],
"m_Keywords": [],
"m_Dropdowns": [],
"m_CategoryData": [
{
"m_Id": "86f9cd1987d843459d5fab99b6a8f32a"
}
],
"m_Nodes": [
{
"m_Id": "ad4c83e11c0c46eb909dc5cba2c9acc8"
},
{
"m_Id": "fe05eb51c3c443efafd534f075310f7a"
},
{
"m_Id": "a920ea4e0f5a46ae8e6abc5933d5b0af"
},
{
"m_Id": "f1153f55efa74889b677f706e603b50e"
},
{
"m_Id": "e6c007b4bf314838b03d3daf2875105d"
},
{
"m_Id": "7a03c27087d340c8b56f22b2c761f85b"
},
{
"m_Id": "43d3ef6a9f8b4fcc9e09381e022783cc"
}
],
"m_GroupDatas": [],
"m_StickyNoteDatas": [
{
"m_Id": "f02b6fda26594da483562e3bd2f55957"
}
],
"m_Edges": [
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "43d3ef6a9f8b4fcc9e09381e022783cc"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "7a03c27087d340c8b56f22b2c761f85b"
},
"m_SlotId": 0
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "7a03c27087d340c8b56f22b2c761f85b"
},
"m_SlotId": 2
},
"m_InputSlot": {
"m_Node": {
"m_Id": "ad4c83e11c0c46eb909dc5cba2c9acc8"
},
"m_SlotId": 1
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "a920ea4e0f5a46ae8e6abc5933d5b0af"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "e6c007b4bf314838b03d3daf2875105d"
},
"m_SlotId": 1
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "e6c007b4bf314838b03d3daf2875105d"
},
"m_SlotId": 4
},
"m_InputSlot": {
"m_Node": {
"m_Id": "7a03c27087d340c8b56f22b2c761f85b"
},
"m_SlotId": 1
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "f1153f55efa74889b677f706e603b50e"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "e6c007b4bf314838b03d3daf2875105d"
},
"m_SlotId": 2
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "fe05eb51c3c443efafd534f075310f7a"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "e6c007b4bf314838b03d3daf2875105d"
},
"m_SlotId": 0
}
}
],
"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": "ad4c83e11c0c46eb909dc5cba2c9acc8"
},
"m_ActiveTargets": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot",
"m_ObjectId": "10848e949bcc4a9dbccb6666cbd6b27d",
"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.Vector4MaterialSlot",
"m_ObjectId": "1587ad0ff2e740e2a2a52a92a3f9b383",
"m_Id": 3,
"m_DisplayName": "M3",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "M3",
"m_StageCapability": 3,
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 1.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
},
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot",
"m_ObjectId": "183d2f3aed684a4f9c8fd69ae9a5c9a8",
"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.Vector4MaterialSlot",
"m_ObjectId": "390a84b7640e403d9c03a908ddece223",
"m_Id": 1,
"m_DisplayName": "M1",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "M1",
"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.DynamicValueMaterialSlot",
"m_ObjectId": "396bc6782d8b4968acf74850724f0c27",
"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": 1,
"m_Type": "UnityEditor.ShaderGraph.PositionNode",
"m_ObjectId": "43d3ef6a9f8b4fcc9e09381e022783cc",
"m_Group": {
"m_Id": ""
},
"m_Name": "Position",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -771.0,
"y": -98.0,
"width": 206.0,
"height": 131.0
}
},
"m_Slots": [
{
"m_Id": "86538999b93a4535a55ce4df1d58e739"
}
],
"synonyms": [],
"m_Precision": 1,
"m_PreviewExpanded": false,
"m_PreviewMode": 2,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_Space": 2,
"m_PositionSource": 0
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Matrix4MaterialSlot",
"m_ObjectId": "55222c52a1dd48ffb0056a933f34f237",
"m_Id": 4,
"m_DisplayName": "4x4",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "4x4",
"m_StageCapability": 3,
"m_Value": {
"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_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.Vector4MaterialSlot",
"m_ObjectId": "639097aff5ee49c2bd7cb74e5da807e7",
"m_Id": 0,
"m_DisplayName": "M0",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "M0",
"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.MultiplyNode",
"m_ObjectId": "7a03c27087d340c8b56f22b2c761f85b",
"m_Group": {
"m_Id": ""
},
"m_Name": "Multiply",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -533.0000610351563,
"y": -12.000007629394532,
"width": 207.99996948242188,
"height": 302.0
}
},
"m_Slots": [
{
"m_Id": "183d2f3aed684a4f9c8fd69ae9a5c9a8"
},
{
"m_Id": "800b86e145ad49b8967fc030f9b65c90"
},
{
"m_Id": "396bc6782d8b4968acf74850724f0c27"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot",
"m_ObjectId": "800b86e145ad49b8967fc030f9b65c90",
"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.Vector3MaterialSlot",
"m_ObjectId": "86538999b93a4535a55ce4df1d58e739",
"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": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.CategoryData",
"m_ObjectId": "86f9cd1987d843459d5fab99b6a8f32a",
"m_Name": "",
"m_ChildObjectList": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Matrix3MaterialSlot",
"m_ObjectId": "8b7acb7b8b404c9e9889c130898a1f88",
"m_Id": 5,
"m_DisplayName": "3x3",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "3x3",
"m_StageCapability": 3,
"m_Value": {
"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_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.Vector3MaterialSlot",
"m_ObjectId": "940a55e05e504a8286ed20d391764e03",
"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.Vector2MaterialSlot",
"m_ObjectId": "99a062a69562443f994a5107d715adf1",
"m_Id": 1,
"m_DisplayName": "WorldSpaceUV",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "WorldSpaceUV",
"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.Vector4MaterialSlot",
"m_ObjectId": "9b594693551d417ba53d4ab189d3261f",
"m_Id": 2,
"m_DisplayName": "M2",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "M2",
"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.NormalVectorNode",
"m_ObjectId": "a920ea4e0f5a46ae8e6abc5933d5b0af",
"m_Group": {
"m_Id": ""
},
"m_Name": "Normal Vector",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -1197.0,
"y": -77.99999237060547,
"width": 206.0,
"height": 130.99998474121095
}
},
"m_Slots": [
{
"m_Id": "10848e949bcc4a9dbccb6666cbd6b27d"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": false,
"m_PreviewMode": 2,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_Space": 2
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.SubGraphOutputNode",
"m_ObjectId": "ad4c83e11c0c46eb909dc5cba2c9acc8",
"m_Group": {
"m_Id": ""
},
"m_Name": "Output",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -303.0,
"y": -12.0,
"width": 134.0,
"height": 77.0
}
},
"m_Slots": [
{
"m_Id": "99a062a69562443f994a5107d715adf1"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"IsFirstSlotValid": true
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot",
"m_ObjectId": "b19499348809407ab8da2ef47b103dc9",
"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.Matrix2MaterialSlot",
"m_ObjectId": "e1a346ae25554a7591c50feab5cf886d",
"m_Id": 6,
"m_DisplayName": "2x2",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "2x2",
"m_StageCapability": 3,
"m_Value": {
"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_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.MatrixConstructionNode",
"m_ObjectId": "e6c007b4bf314838b03d3daf2875105d",
"m_Group": {
"m_Id": ""
},
"m_Name": "Matrix Construction",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -724.0,
"y": 32.99998092651367,
"width": 158.99993896484376,
"height": 184.00001525878907
}
},
"m_Slots": [
{
"m_Id": "639097aff5ee49c2bd7cb74e5da807e7"
},
{
"m_Id": "390a84b7640e403d9c03a908ddece223"
},
{
"m_Id": "9b594693551d417ba53d4ab189d3261f"
},
{
"m_Id": "1587ad0ff2e740e2a2a52a92a3f9b383"
},
{
"m_Id": "55222c52a1dd48ffb0056a933f34f237"
},
{
"m_Id": "8b7acb7b8b404c9e9889c130898a1f88"
},
{
"m_Id": "e1a346ae25554a7591c50feab5cf886d"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_Axis": 1
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.StickyNoteData",
"m_ObjectId": "f02b6fda26594da483562e3bd2f55957",
"m_Title": "World Space UV",
"m_Content": "This subgraph provides a tangent aligned world space UV which is useful for sampling world space textures in decals. Object rotation has a big impact on UV offset. ",
"m_TextSize": 0,
"m_Theme": 0,
"m_Position": {
"serializedVersion": "2",
"x": -883.0,
"y": -311.0,
"width": 200.0,
"height": 127.0
},
"m_Group": {
"m_Id": ""
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.BitangentVectorNode",
"m_ObjectId": "f1153f55efa74889b677f706e603b50e",
"m_Group": {
"m_Id": ""
},
"m_Name": "Bitangent Vector",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -1199.0,
"y": 52.9999885559082,
"width": 206.0,
"height": 130.99998474121095
}
},
"m_Slots": [
{
"m_Id": "b19499348809407ab8da2ef47b103dc9"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": false,
"m_PreviewMode": 2,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_Space": 2
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.TangentVectorNode",
"m_ObjectId": "fe05eb51c3c443efafd534f075310f7a",
"m_Group": {
"m_Id": ""
},
"m_Name": "Tangent Vector",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -1197.0,
"y": -209.00001525878907,
"width": 206.0,
"height": 131.00003051757813
}
},
"m_Slots": [
{
"m_Id": "940a55e05e504a8286ed20d391764e03"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": false,
"m_PreviewMode": 2,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_Space": 2
}