diff options
author | omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-04-06 12:17:56 +1100 |
---|---|---|
committer | omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-04-06 12:17:56 +1100 |
commit | 76de359be82154193d1ed13f30c34019a92318b7 (patch) | |
tree | a1528ff6b499fc9a7390626398f6e08ccb3a4fbc /src/renderer | |
parent | ef264da91e1e7efc209bd49320fc5907f62312a7 (diff) |
wip: get integers
Diffstat (limited to 'src/renderer')
-rw-r--r-- | src/renderer/render_types.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/renderer/render_types.h b/src/renderer/render_types.h index 8d12183..377cdc7 100644 --- a/src/renderer/render_types.h +++ b/src/renderer/render_types.h @@ -118,6 +118,14 @@ typedef struct vertex { vec2 uv; } vertex; +typedef struct skinned_vertex { + vec3 position; + vec3 normal; + vec2 uv; + vec4i joints; /** @brief 4 indices of joints that influence vectors position */ + vec4 weights; /** @brief weight (0,1) of each joint */ +} skinned_vertex; + #ifndef TYPED_VERTEX_ARRAY KITC_DECL_TYPED_ARRAY(vertex) // creates "vertex_darray" #define TYPED_VERTEX_ARRAY |