Pre-multiply V and P matrices
This commit is contained in:
1 parent
e7f4f4b51d
commit
2cf4f6832d
5 files changed
+21
-25
No files matched your search
@@ -9,11 +9,6 @@
|
||||
|
||||
#define MAX_FRAMES_IN_FLIGHT 4
|
||||
|
||||
typedef struct {
|
||||
mat4_t view;
|
||||
mat4_t proj;
|
||||
} vp_t;
|
||||
|
||||
typedef struct {
|
||||
VkInstance inst;
|
||||
VkSurfaceKHR surface;
|
||||
@@ -73,7 +68,7 @@ void gpu_model_load(
|
||||
void gpu_model_cleanup(const gpu_ctx_t *ctx, const gpu_model_t *model);
|
||||
|
||||
void gpu_render(
|
||||
const gpu_ctx_t *ctx, vp_t vp, size_t model_count,
|
||||
const gpu_ctx_t *ctx, mat4_t vp, size_t model_count,
|
||||
const gpu_model_t *models, const mat4_t **bone_matrices,
|
||||
const mat4_t *model_transforms);
|
||||
|
||||
|
||||
Reference in new issue
Block a user