From 6edc755bc040bc67ad3cd88fa694e9d29daf4a3b Mon Sep 17 00:00:00 2001 From: metamuffin Date: Wed, 19 Feb 2025 19:56:54 +0100 Subject: animation res dicts --- shared/src/resources.rs | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) (limited to 'shared/src') diff --git a/shared/src/resources.rs b/shared/src/resources.rs index f9a22bf..5e2e268 100644 --- a/shared/src/resources.rs +++ b/shared/src/resources.rs @@ -75,11 +75,13 @@ macro_rules! resource_dicts { resource_dicts!( pub struct Prefab { name: String, - mesh[multi]: (Affine3A, Resource), + mesh[multi]: (Affine3A, Resource), collision[multi]: (Affine3A, Resource), light[multi]: (Vec3A, Resource), armature[multi]: Resource, particles[multi]: (Affine3A, Resource), + animations[multi]: Resource, + avatar_info: Resource, environment: Resource, } @@ -89,6 +91,32 @@ resource_dicts!( radius: f32, } + pub struct AnimationPart { + channel[multi]: Resource, + } + + pub struct AnimationChannel { + t_mesh_translation: u32, + t_mesh_rotation: u32, + t_mesh_scale: u32, + t_mesh_morph_weight: (u32, u32), + t_joint_translation: (u32, u32), + t_joint_rotation: (u32, u32), + t_joint_scale: (u32, u32), + t_light_translation: u32, + time: Resource>, + value: Resource>, + } + + pub struct AvatarInfoPart { + armature: u32, + camera_mount: u32, + camera_mount_offset: Vec3A, + a_walk: u32, + a_run: u32, + a_sit: u32, + } + pub struct EnvironmentPart { skybox: Resource>, sun: (Vec3A, Vec3A), -- cgit v1.2.3-70-g09d2