Skip to content

Commit

Permalink
Started work on Weave
Browse files Browse the repository at this point in the history
  • Loading branch information
Cooltomten committed Nov 1, 2023
1 parent 3f944b1 commit 2b7f22a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Volt/Volt/src/Volt/Asset/Asset.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ namespace Volt
Timeline = BIT(23),
NetContract = BIT(24),
PostProcessingMaterial = BIT(25),
PostProcessingStack = BIT(26)
PostProcessingStack = BIT(26),
MotionWeaver = BIT(27),
};

inline AssetType operator|(AssetType aLhs, AssetType aRhs)
Expand Down
14 changes: 14 additions & 0 deletions Volt/Volt/src/Volt/Components/RenderingComponents.h
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,20 @@ namespace Volt
REGISTER_COMPONENT(AnimationControllerComponent);
};

struct MotionWeaveComponent
{
AssetHandle motionWeave = Asset::Null();

static void ReflectType(TypeDesc<MotionWeaveComponent>& reflect)
{
reflect.SetGUID("{5D3B2C0D-5457-43D8-9623-98730E1556F4}"_guid);
reflect.SetLabel("Motion Weave Component");
reflect.AddMember(&MotionWeaveComponent::motionWeave, "motionGraph", "Motion Graph", "", Asset::Null(), AssetType::MotionWeave);
}

REGISTER_COMPONENT(MotionWeaveComponent);
};

struct VertexPaintedComponent
{
AssetHandle meshHandle = Asset::Null();
Expand Down

0 comments on commit 2b7f22a

Please sign in to comment.