mirror of
https://github.com/maxartz15/VertexAnimation.git
synced 2025-06-13 14:56:18 +02:00
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:
@ -12,10 +12,10 @@ float2 VA_UV_float(float2 uv, int maxFrames, float time)
|
||||
float timeInFrames = frac(time);
|
||||
timeInFrames = ceil(timeInFrames * maxFrames);
|
||||
timeInFrames /= maxFrames;
|
||||
timeInFrames += (1 / maxFrames);
|
||||
timeInFrames += round(1.0f / maxFrames);
|
||||
|
||||
uvPosition.x = uv.x;
|
||||
uvPosition.y = (1 - (timeInFrames)) + (1 - (1 - uv.y));
|
||||
uvPosition.y = (1.0f - (timeInFrames)) + (1.0f - (1.0f - uv.y));
|
||||
|
||||
return uvPosition;
|
||||
}
|
||||
|
@ -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"
|
||||
]
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user