VertexAnimation/Runtime/Shaders/SubGraphs/SampleTexture2dArrayLOD.shadersubgraph

744 lines
17 KiB
Plaintext
Raw Normal View History

{
"m_SGVersion": 2,
"m_Type": "UnityEditor.ShaderGraph.GraphData",
"m_ObjectId": "cbab75119725437aa16a28e453ccbff3",
"m_Properties": [
{
"m_Id": "56de5f3015004a03be4fb3303dacdbc8"
},
{
"m_Id": "8e06a56cd1e244f197e6c9bd75a8474a"
},
{
"m_Id": "b0260d3a49914d1db233f511237ebf85"
},
{
"m_Id": "67550e6ee3cc4f93917d5f97c2ab01a7"
},
{
"m_Id": "6c228c0694f148038c732bcc5395679d"
}
],
"m_Keywords": [],
"m_Nodes": [
{
"m_Id": "ca7a6f238b7644eaa658f7e33e751520"
},
{
"m_Id": "38f0c7c461ee4a4d8bc6c68c89625cd1"
},
{
"m_Id": "bff190e49a7a40bbbeb3f0cdb4fe3b26"
},
{
"m_Id": "5ad050d9f7c64d6cb1562bc8e974de2e"
},
{
"m_Id": "05c90fb44edf466d87c24596ca3c98f4"
},
{
"m_Id": "db576b9d628d44ddac846cc571225702"
},
{
"m_Id": "6631a119b51441f2ab2322e2ec92a0fe"
}
],
"m_GroupDatas": [],
"m_StickyNoteDatas": [],
"m_Edges": [
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "05c90fb44edf466d87c24596ca3c98f4"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "38f0c7c461ee4a4d8bc6c68c89625cd1"
},
"m_SlotId": 3
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "38f0c7c461ee4a4d8bc6c68c89625cd1"
},
"m_SlotId": 1
},
"m_InputSlot": {
"m_Node": {
"m_Id": "ca7a6f238b7644eaa658f7e33e751520"
},
"m_SlotId": 1
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "5ad050d9f7c64d6cb1562bc8e974de2e"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "38f0c7c461ee4a4d8bc6c68c89625cd1"
},
"m_SlotId": 2
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "6631a119b51441f2ab2322e2ec92a0fe"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "38f0c7c461ee4a4d8bc6c68c89625cd1"
},
"m_SlotId": 5
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "bff190e49a7a40bbbeb3f0cdb4fe3b26"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "38f0c7c461ee4a4d8bc6c68c89625cd1"
},
"m_SlotId": 0
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "db576b9d628d44ddac846cc571225702"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "38f0c7c461ee4a4d8bc6c68c89625cd1"
},
"m_SlotId": 4
}
}
],
"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": ""
}
},
"m_Path": "Sub Graphs",
"m_ConcretePrecision": 0,
"m_OutputNode": {
"m_Id": "ca7a6f238b7644eaa658f7e33e751520"
},
"m_ActiveTargets": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.PropertyNode",
"m_ObjectId": "05c90fb44edf466d87c24596ca3c98f4",
"m_Group": {
"m_Id": ""
},
"m_Name": "Property",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -430.0,
"y": 88.0,
"width": 155.0,
"height": 34.0
}
},
"m_Slots": [
{
"m_Id": "3e4d522c290842969d37626d90937b59"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_Property": {
"m_Id": "b0260d3a49914d1db233f511237ebf85"
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "3739175e78cb4b10997f85da1fa4dd08",
"m_Id": 0,
"m_DisplayName": "Index",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "Out",
"m_StageCapability": 3,
"m_Value": 0.0,
"m_DefaultValue": 0.0,
"m_Labels": [
"X"
]
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.CustomFunctionNode",
"m_ObjectId": "38f0c7c461ee4a4d8bc6c68c89625cd1",
"m_Group": {
"m_Id": ""
},
"m_Name": "Custom Function",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -261.0,
"y": 0.0,
"width": 214.0,
"height": 374.0
}
},
"m_Slots": [
{
"m_Id": "f0b2f1d1369445a1b8b30901b35c81d7"
},
{
"m_Id": "7bddec395df24cd0b6c3a89aec8e0d0d"
},
{
"m_Id": "66a50b21d25741c0a00aea150a2edfba"
},
{
"m_Id": "7878c1efdd114f6e8fdd93f7ffab3a48"
},
{
"m_Id": "5ff96695f49e4d1182cf67a53de68be6"
},
{
"m_Id": "f6f46ec323d94a088f47d6ed87a8560e"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_SourceType": 0,
"m_FunctionName": "SampleTexture2DArrayLOD",
"m_FunctionSource": "eb87dde6533ca4440aae5a15702ee904",
"m_FunctionBody": "Enter function body here..."
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.SamplerStateMaterialSlot",
"m_ObjectId": "3e4d522c290842969d37626d90937b59",
"m_Id": 0,
"m_DisplayName": "SamplerState",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "Out",
"m_StageCapability": 3
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot",
"m_ObjectId": "4a5cf08366814dfbb54e1ab1eacf2e33",
"m_Id": 1,
"m_DisplayName": "RGBA",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "RGBA",
"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.Internal.Texture2DArrayShaderProperty",
"m_ObjectId": "56de5f3015004a03be4fb3303dacdbc8",
"m_Guid": {
"m_GuidSerialized": "fa470f3b-4f2b-4934-8621-bf38606654cd"
},
"m_Name": "Texture2D Array",
"m_DefaultReferenceName": "Texture2DArray_56de5f3015004a03be4fb3303dacdbc8",
"m_OverrideReferenceName": "",
"m_GeneratePropertyBlock": true,
"m_Precision": 0,
"overrideHLSLDeclaration": false,
"hlslDeclarationOverride": 0,
"m_Hidden": false,
"m_Value": {
"m_SerializedTexture": "{\"textureArray\":{\"instanceID\":0}}",
"m_Guid": ""
},
"m_Modifiable": true
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.PropertyNode",
"m_ObjectId": "5ad050d9f7c64d6cb1562bc8e974de2e",
"m_Group": {
"m_Id": ""
},
"m_Name": "Property",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -369.0,
"y": 64.0,
"width": 93.0,
"height": 34.0
}
},
"m_Slots": [
{
"m_Id": "87be4a5d04ff4012b150c8d7e9e970f9"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_Property": {
"m_Id": "8e06a56cd1e244f197e6c9bd75a8474a"
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "5ff96695f49e4d1182cf67a53de68be6",
"m_Id": 4,
"m_DisplayName": "Index",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "Index",
"m_StageCapability": 3,
"m_Value": 0.0,
"m_DefaultValue": 0.0,
"m_Labels": [
"X"
]
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.PropertyNode",
"m_ObjectId": "6631a119b51441f2ab2322e2ec92a0fe",
"m_Group": {
"m_Id": ""
},
"m_Name": "Property",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -377.0,
"y": 136.0,
"width": 98.0,
"height": 34.0
}
},
"m_Slots": [
{
"m_Id": "d127f4bc74d14171b956d138cacb9893"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_Property": {
"m_Id": "6c228c0694f148038c732bcc5395679d"
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector2MaterialSlot",
"m_ObjectId": "66a50b21d25741c0a00aea150a2edfba",
"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": [
"X",
"Y"
]
}
{
"m_SGVersion": 1,
"m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty",
"m_ObjectId": "67550e6ee3cc4f93917d5f97c2ab01a7",
"m_Guid": {
"m_GuidSerialized": "c9a3f125-3d0c-431a-ad9f-b37a8c9256fd"
},
"m_Name": "Index",
"m_DefaultReferenceName": "Vector1_67550e6ee3cc4f93917d5f97c2ab01a7",
"m_OverrideReferenceName": "",
"m_GeneratePropertyBlock": true,
"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": 1,
"m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty",
"m_ObjectId": "6c228c0694f148038c732bcc5395679d",
"m_Guid": {
"m_GuidSerialized": "0b74a32b-db28-45cd-bc74-0da627317bf3"
},
"m_Name": "LOD",
"m_DefaultReferenceName": "Vector1_6c228c0694f148038c732bcc5395679d",
"m_OverrideReferenceName": "",
"m_GeneratePropertyBlock": true,
"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.SamplerStateMaterialSlot",
"m_ObjectId": "7878c1efdd114f6e8fdd93f7ffab3a48",
"m_Id": 3,
"m_DisplayName": "Sampler",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "Sampler",
"m_StageCapability": 3
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Texture2DArrayInputMaterialSlot",
"m_ObjectId": "7bddec395df24cd0b6c3a89aec8e0d0d",
"m_Id": 0,
"m_DisplayName": "TextureArray",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "TextureArray",
"m_StageCapability": 3,
"m_TextureArray": {
"m_SerializedTexture": "{\"textureArray\":{\"instanceID\":0}}",
"m_Guid": ""
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector2MaterialSlot",
"m_ObjectId": "87be4a5d04ff4012b150c8d7e9e970f9",
"m_Id": 0,
"m_DisplayName": "UV",
"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": [
"X",
"Y"
]
}
{
"m_SGVersion": 1,
"m_Type": "UnityEditor.ShaderGraph.Internal.Vector2ShaderProperty",
"m_ObjectId": "8e06a56cd1e244f197e6c9bd75a8474a",
"m_Guid": {
"m_GuidSerialized": "3755068c-1d51-4f97-b21f-e0e26e1d01c7"
},
"m_Name": "UV",
"m_DefaultReferenceName": "Vector2_8e06a56cd1e244f197e6c9bd75a8474a",
"m_OverrideReferenceName": "",
"m_GeneratePropertyBlock": true,
"m_Precision": 0,
"overrideHLSLDeclaration": false,
"hlslDeclarationOverride": 0,
"m_Hidden": false,
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.SamplerStateShaderProperty",
"m_ObjectId": "b0260d3a49914d1db233f511237ebf85",
"m_Guid": {
"m_GuidSerialized": "ccb5d131-0aaa-4142-ab36-1aa19ba33eff"
},
"m_Name": "SamplerState",
"m_DefaultReferenceName": "",
"m_OverrideReferenceName": "SamplerState_Linear_Repeat",
"m_GeneratePropertyBlock": true,
"m_Precision": 0,
"overrideHLSLDeclaration": false,
"hlslDeclarationOverride": 0,
"m_Hidden": false,
"m_Value": {
"m_filter": 0,
"m_wrap": 0
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Texture2DArrayMaterialSlot",
"m_ObjectId": "ba8b8ce0934d473eb1e921e11b4a358f",
"m_Id": 0,
"m_DisplayName": "Texture2D Array",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "Out",
"m_StageCapability": 3
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.PropertyNode",
"m_ObjectId": "bff190e49a7a40bbbeb3f0cdb4fe3b26",
"m_Group": {
"m_Id": ""
},
"m_Name": "Property",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -452.0,
"y": 40.0,
"width": 176.0,
"height": 34.0
}
},
"m_Slots": [
{
"m_Id": "ba8b8ce0934d473eb1e921e11b4a358f"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_Property": {
"m_Id": "56de5f3015004a03be4fb3303dacdbc8"
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.SubGraphOutputNode",
"m_ObjectId": "ca7a6f238b7644eaa658f7e33e751520",
"m_Group": {
"m_Id": ""
},
"m_Name": "Output",
"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": "4a5cf08366814dfbb54e1ab1eacf2e33"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_CustomColors": {
"m_SerializableColors": []
},
"IsFirstSlotValid": true
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "d127f4bc74d14171b956d138cacb9893",
"m_Id": 0,
"m_DisplayName": "LOD",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "Out",
"m_StageCapability": 3,
"m_Value": 0.0,
"m_DefaultValue": 0.0,
"m_Labels": [
"X"
]
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.PropertyNode",
"m_ObjectId": "db576b9d628d44ddac846cc571225702",
"m_Group": {
"m_Id": ""
},
"m_Name": "Property",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -381.0,
"y": 112.0,
"width": 104.0,
"height": 34.0
}
},
"m_Slots": [
{
"m_Id": "3739175e78cb4b10997f85da1fa4dd08"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_Property": {
"m_Id": "67550e6ee3cc4f93917d5f97c2ab01a7"
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot",
"m_ObjectId": "f0b2f1d1369445a1b8b30901b35c81d7",
"m_Id": 1,
"m_DisplayName": "RGBA",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "RGBA",
"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": "f6f46ec323d94a088f47d6ed87a8560e",
"m_Id": 5,
"m_DisplayName": "LOD",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "LOD",
"m_StageCapability": 3,
"m_Value": 0.0,
"m_DefaultValue": 0.0,
"m_Labels": [
"X"
]
}