diff options
author | metamuffin <metamuffin@disroot.org> | 2025-02-03 21:46:29 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2025-02-03 21:46:29 +0100 |
commit | ae14c194a25e258659104e89553ad48a8ae9ca3b (patch) | |
tree | 793b73af2c045d7acf218912afbc182a6720436f /client | |
parent | 163e10c9f618f0e4cd7b4456476ad1c2322db5d7 (diff) | |
download | weareserver-ae14c194a25e258659104e89553ad48a8ae9ca3b.tar weareserver-ae14c194a25e258659104e89553ad48a8ae9ca3b.tar.bz2 weareserver-ae14c194a25e258659104e89553ad48a8ae9ca3b.tar.zst |
armatures in prefab
Diffstat (limited to 'client')
-rw-r--r-- | client/src/armature.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/client/src/armature.rs b/client/src/armature.rs index daf2725..1156071 100644 --- a/client/src/armature.rs +++ b/client/src/armature.rs @@ -16,18 +16,18 @@ */ use glam::Mat4; use std::sync::Arc; -use weareshared::resources::Armature; +use weareshared::resources::ArmaturePart; use wgpu::{Buffer, BufferDescriptor, BufferUsages, Device, Queue}; const MAX_JOINTS: usize = 128; pub struct RArmature { pub joint_mat_uniform_buffer: Arc<Buffer>, joint_mat: Vec<Mat4>, - _data: Armature, + _data: ArmaturePart, } impl RArmature { - pub fn new(device: &Device, armature: Armature) -> Self { + pub fn new(device: &Device, armature: ArmaturePart) -> Self { Self { joint_mat_uniform_buffer: Arc::new(device.create_buffer(&BufferDescriptor { label: Some("joint uniform"), |