Fix issues for Hybrid Renderer V2

This commit is contained in:
Jingcheng 2022-04-18 15:01:19 +08:00
parent 4499f67f31
commit 5779382b55
2 changed files with 393 additions and 49 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,5 +1,5 @@
{
"m_SGVersion": 2,
"m_SGVersion": 3,
"m_Type": "UnityEditor.ShaderGraph.GraphData",
"m_ObjectId": "144dcb1a2d15470a91360080bc9bd989",
"m_Properties": [
@ -23,6 +23,12 @@
}
],
"m_Keywords": [],
"m_Dropdowns": [],
"m_CategoryData": [
{
"m_Id": "58e43e7e4d3e4570b82c499816256ad9"
}
],
"m_Nodes": [
{
"m_Id": "031d019a3f114a639fed0a731159883c"
@ -183,10 +189,12 @@
"serializedMesh": {
"m_SerializedMesh": "{\"mesh\":{\"instanceID\":0}}",
"m_Guid": ""
}
},
"preventRotation": false
},
"m_Path": "Sub Graphs",
"m_ConcretePrecision": 0,
"m_GraphPrecision": 0,
"m_PreviewMode": 2,
"m_OutputNode": {
"m_Id": "031d019a3f114a639fed0a731159883c"
},
@ -222,6 +230,7 @@
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
@ -254,7 +263,8 @@
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "texSampler",
"m_StageCapability": 3
"m_StageCapability": 3,
"m_BareResource": true
}
{
@ -283,6 +293,7 @@
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
@ -317,6 +328,7 @@
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
@ -334,7 +346,8 @@
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "Out",
"m_StageCapability": 3
"m_StageCapability": 3,
"m_BareResource": false
}
{
@ -354,6 +367,33 @@
]
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.CategoryData",
"m_ObjectId": "58e43e7e4d3e4570b82c499816256ad9",
"m_Name": "",
"m_ChildObjectList": [
{
"m_Id": "c333595616b942739573e272a2bcc553"
},
{
"m_Id": "a09a6ce7e08545d99b5bda70586f4e79"
},
{
"m_Id": "975a04061f8d4786bce18d1574108732"
},
{
"m_Id": "f9b649ed28584dca8a522f3fb582f350"
},
{
"m_Id": "967e0c2bcb6e48c2b85b82c6d4c734a4"
},
{
"m_Id": "cc4eba55004546408c4665cdb22d3111"
}
]
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
@ -409,13 +449,13 @@
}
{
"m_SGVersion": 0,
"m_SGVersion": 1,
"m_Type": "UnityEditor.ShaderGraph.CustomFunctionNode",
"m_ObjectId": "83aca69ecbd845e888867dea88a660f1",
"m_Group": {
"m_Id": ""
},
"m_Name": "Custom Function",
"m_Name": "VA_ARRAY (Custom Function)",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
@ -455,6 +495,7 @@
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
@ -496,9 +537,13 @@
"m_GuidSerialized": "26e53708-434a-4d58-b8b2-d8fb8005d644"
},
"m_Name": "MaxFrames",
"m_DefaultRefNameVersion": 0,
"m_RefNameGeneratedByDisplayName": "",
"m_DefaultReferenceName": "Vector1_967e0c2bcb6e48c2b85b82c6d4c734a4",
"m_OverrideReferenceName": "",
"m_GeneratePropertyBlock": true,
"m_UseCustomSlotLabel": false,
"m_CustomSlotLabel": "",
"m_Precision": 0,
"overrideHLSLDeclaration": false,
"hlslDeclarationOverride": 0,
@ -512,23 +557,28 @@
}
{
"m_SGVersion": 0,
"m_SGVersion": 1,
"m_Type": "UnityEditor.ShaderGraph.SamplerStateShaderProperty",
"m_ObjectId": "975a04061f8d4786bce18d1574108732",
"m_Guid": {
"m_GuidSerialized": "374e9a5f-1ef4-43a2-9ff2-6108a1976ab0"
},
"m_Name": "SamplerState",
"m_DefaultReferenceName": "",
"m_OverrideReferenceName": "SamplerState_Linear_Repeat",
"m_DefaultRefNameVersion": 0,
"m_RefNameGeneratedByDisplayName": "",
"m_DefaultReferenceName": "SamplerState_975a04061f8d4786bce18d1574108732",
"m_OverrideReferenceName": "",
"m_GeneratePropertyBlock": true,
"m_UseCustomSlotLabel": false,
"m_CustomSlotLabel": "",
"m_Precision": 0,
"overrideHLSLDeclaration": false,
"hlslDeclarationOverride": 0,
"m_Hidden": false,
"m_Value": {
"m_filter": 0,
"m_wrap": 0
"m_wrap": 0,
"m_anisotropic": 0
}
}
@ -540,9 +590,13 @@
"m_GuidSerialized": "96fb959c-8624-4642-9ac6-6b405b5a6dd4"
},
"m_Name": "UV",
"m_DefaultRefNameVersion": 0,
"m_RefNameGeneratedByDisplayName": "",
"m_DefaultReferenceName": "Vector2_a09a6ce7e08545d99b5bda70586f4e79",
"m_OverrideReferenceName": "",
"m_GeneratePropertyBlock": true,
"m_UseCustomSlotLabel": false,
"m_CustomSlotLabel": "",
"m_Precision": 0,
"overrideHLSLDeclaration": false,
"hlslDeclarationOverride": 0,
@ -642,6 +696,7 @@
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
@ -660,6 +715,7 @@
"m_Hidden": false,
"m_ShaderOutputName": "positionMap",
"m_StageCapability": 3,
"m_BareResource": true,
"m_TextureArray": {
"m_SerializedTexture": "{\"textureArray\":{\"instanceID\":0}}",
"m_Guid": ""
@ -718,9 +774,13 @@
"m_GuidSerialized": "484a186e-c3de-457f-80e1-65e0ac649faf"
},
"m_Name": "PositionMap",
"m_DefaultRefNameVersion": 0,
"m_RefNameGeneratedByDisplayName": "",
"m_DefaultReferenceName": "Texture2DArray_c333595616b942739573e272a2bcc553",
"m_OverrideReferenceName": "",
"m_GeneratePropertyBlock": true,
"m_UseCustomSlotLabel": false,
"m_CustomSlotLabel": "",
"m_Precision": 0,
"overrideHLSLDeclaration": false,
"hlslDeclarationOverride": 0,
@ -744,9 +804,9 @@
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -626.0,
"y": -32.0,
"width": 170.0,
"x": -627.0,
"y": -25.0,
"width": 168.0,
"height": 34.0
}
},
@ -758,6 +818,7 @@
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
@ -774,11 +835,15 @@
"m_GuidSerialized": "3f779194-c6e4-40be-9134-677bb0c69785"
},
"m_Name": "PositionMapIndex",
"m_DefaultRefNameVersion": 0,
"m_RefNameGeneratedByDisplayName": "",
"m_DefaultReferenceName": "Vector1_cc4eba55004546408c4665cdb22d3111",
"m_OverrideReferenceName": "",
"m_GeneratePropertyBlock": true,
"m_UseCustomSlotLabel": false,
"m_CustomSlotLabel": "",
"m_Precision": 0,
"overrideHLSLDeclaration": true,
"overrideHLSLDeclaration": false,
"hlslDeclarationOverride": 3,
"m_Hidden": false,
"m_Value": 0.0,
@ -798,7 +863,8 @@
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "Out",
"m_StageCapability": 3
"m_StageCapability": 3,
"m_BareResource": false
}
{
@ -827,6 +893,7 @@
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
@ -878,6 +945,7 @@
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
@ -894,9 +962,13 @@
"m_GuidSerialized": "07478aa4-3d18-4430-bf12-24688db601b8"
},
"m_Name": "Time",
"m_DefaultRefNameVersion": 0,
"m_RefNameGeneratedByDisplayName": "",
"m_DefaultReferenceName": "Vector1_f9b649ed28584dca8a522f3fb582f350",
"m_OverrideReferenceName": "",
"m_GeneratePropertyBlock": true,
"m_UseCustomSlotLabel": false,
"m_CustomSlotLabel": "",
"m_Precision": 0,
"overrideHLSLDeclaration": false,
"hlslDeclarationOverride": 0,