Add MeshDeformation utility for generic meshes vertices morphing (eg. via Blend Shapes or Cloth)

This commit is contained in:
Wojtek Figat
2023-07-03 09:49:23 +02:00
parent 60181a29a3
commit 99ee0b1bfe
26 changed files with 600 additions and 368 deletions

View File

@@ -159,7 +159,7 @@ public:
struct DrawInfo
{
/// <summary>
/// The instance buffer to use during model rendering
/// The instance buffer to use during model rendering.
/// </summary>
ModelInstanceEntries* Buffer;
@@ -169,10 +169,15 @@ public:
Matrix* World;
/// <summary>
/// The instance drawing state data container. Used for LOD transition handling and previous world transformation matrix updating.
/// The instance drawing state data container. Used for LOD transition handling and previous world transformation matrix updating.
/// </summary>
GeometryDrawStateData* DrawState;
/// <summary>
/// The instance deformation utility.
/// </summary>
MeshDeformation* Deformation;
union
{
struct
@@ -181,11 +186,6 @@ public:
/// The skinning.
/// </summary>
SkinnedMeshDrawData* Skinning;
/// <summary>
/// The blend shapes.
/// </summary>
BlendShapesInstance* BlendShapes;
};
struct