summaryrefslogtreecommitdiff
path: root/src/renderer
diff options
context:
space:
mode:
authorOmniscient <17525998+omnisci3nce@users.noreply.github.com>2024-04-06 20:09:18 +1100
committerOmniscient <17525998+omnisci3nce@users.noreply.github.com>2024-04-06 20:09:18 +1100
commit6793c8317208bc2c8cb878554eeff166a418b2f2 (patch)
tree64be62dde5fc683262a93191742c4c9a80ba66c3 /src/renderer
parent76de359be82154193d1ed13f30c34019a92318b7 (diff)
storing joints and weights
Diffstat (limited to 'src/renderer')
-rw-r--r--src/renderer/render_types.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/renderer/render_types.h b/src/renderer/render_types.h
index 377cdc7..e4d3127 100644
--- a/src/renderer/render_types.h
+++ b/src/renderer/render_types.h
@@ -128,11 +128,14 @@ typedef struct skinned_vertex {
#ifndef TYPED_VERTEX_ARRAY
KITC_DECL_TYPED_ARRAY(vertex) // creates "vertex_darray"
+KITC_DECL_TYPED_ARRAY(skinned_vertex) // creates "skinned_vertex_darray"
#define TYPED_VERTEX_ARRAY
#endif
typedef struct mesh {
- vertex_darray *vertices;
+ vertex_darray* vertices;
+ // skinned_vertex_darray* skinned_vertices; // only used if model needs it
+ // bool is_skinned;
u32 vertex_size; /** size in bytes of each vertex including necessary padding */
bool has_indices;
u32 *indices;