AnimationLibrary

AnimationLibraryBook editor setup.
AnimationLibrary AnimationData generation and material setup.
AnimationBook added support for non animation textures as well. This allows the user for example, to link Albedo maps with animations.
MaterialData is now in one component.
Note: Only 1/3th of the performance when having 4 swapping texture maps/arrays.
This commit is contained in:
max
2020-12-14 20:27:44 +01:00
parent e4ca15301b
commit ea1d2412b1
9 changed files with 247 additions and 182 deletions

View File

@ -245,7 +245,7 @@
"m_Id": "5ff96695f49e4d1182cf67a53de68be6"
},
{
"m_Id": "6cb7d5a539a9483598c17e29f13c9871"
"m_Id": "f6f46ec323d94a088f47d6ed87a8560e"
}
],
"m_Precision": 0,
@ -272,6 +272,31 @@
"m_StageCapability": 3
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot",
"m_ObjectId": "4a5cf08366814dfbb54e1ab1eacf2e33",
"m_Id": 1,
"m_DisplayName": "RGBA",
"m_SlotType": 0,
"m_Priority": 2147483647,
"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_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Internal.Texture2DArrayShaderProperty",
@ -446,24 +471,6 @@
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "6cb7d5a539a9483598c17e29f13c9871",
"m_Id": 5,
"m_DisplayName": "LOD",
"m_SlotType": 0,
"m_Priority": 2147483647,
"m_Hidden": false,
"m_ShaderOutputName": "LOD",
"m_StageCapability": 3,
"m_Value": 0.0,
"m_DefaultValue": 0.0,
"m_Labels": [
"X"
]
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.SamplerStateMaterialSlot",
@ -627,7 +634,7 @@
},
"m_Slots": [
{
"m_Id": "d2d519a5c5484c799973056f62d350a2"
"m_Id": "4a5cf08366814dfbb54e1ab1eacf2e33"
}
],
"m_Precision": 0,
@ -656,31 +663,6 @@
]
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot",
"m_ObjectId": "d2d519a5c5484c799973056f62d350a2",
"m_Id": 1,
"m_DisplayName": "Out_Vector4",
"m_SlotType": 0,
"m_Priority": 2147483647,
"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_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.PropertyNode",
@ -739,3 +721,21 @@
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "f6f46ec323d94a088f47d6ed87a8560e",
"m_Id": 5,
"m_DisplayName": "LOD",
"m_SlotType": 0,
"m_Priority": 2147483647,
"m_Hidden": false,
"m_ShaderOutputName": "LOD",
"m_StageCapability": 3,
"m_Value": 0.0,
"m_DefaultValue": 0.0,
"m_Labels": [
"X"
]
}