summaryrefslogtreecommitdiff
path: root/src/renderer
diff options
context:
space:
mode:
Diffstat (limited to 'src/renderer')
-rw-r--r--src/renderer/render_types.h8
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