]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - client.h
implemented gpu-skinning (vertex shader skeletal animation), can be
[xonotic/darkplaces.git] / client.h
index da20b908f475fad8e64784369984b546b408f6d5..afd75a23c5e885859b894619f66c92962fb56ed0 100644 (file)
--- a/client.h
+++ b/client.h
@@ -377,6 +377,9 @@ typedef struct entity_render_s
        r_meshbuffer_t *animcache_vertex3fbuffer;
        r_vertexmesh_t *animcache_vertexmesh;
        r_meshbuffer_t *animcache_vertexmeshbuffer;
+       // gpu-skinning shader needs transforms in a certain format
+       // if this is not NULL, the other animcache variables are NULL
+       float *animcache_skeletaltransform3x4;
 
        // current lighting from map (updated ONLY by client code, not renderer)
        vec3_t modellight_ambient;