diff options
Diffstat (limited to 'src/vk/uniform_data_object.hpp')
-rw-r--r-- | src/vk/uniform_data_object.hpp | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/vk/uniform_data_object.hpp b/src/vk/uniform_data_object.hpp index 102b82d..4ee4e73 100644 --- a/src/vk/uniform_data_object.hpp +++ b/src/vk/uniform_data_object.hpp @@ -1,5 +1,5 @@ /* - * Copyright 2022 Frederico de Oliveira Linhares + * Copyright 2022-2023 Frederico de Oliveira Linhares * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -18,6 +18,7 @@ #define CANDY_GEAR_VK_UNIFORM_DATA_OBJECT_H 1 #include "core.hpp" +#include "skeletal_mesh_vertex.hpp" namespace VK { @@ -44,9 +45,15 @@ struct ODOWorld3D_Frag glm::vec4 directional_light_color; }; -struct ODOModelInstance +struct ODOStaticModel { - glm::mat4 matrix; + glm::mat4 base_matrix; +}; + +struct ODOSkeletalModel +{ + glm::mat4 base_matrix; + glm::mat4 bone_matrices[SKELETAL_MESH_MAX_NUM_OF_BONES]; }; struct ODOVector4D |