Pre-multiply V and P matrices

This commit is contained in:
Camden Dixie O'Brien committed 2025-10-04 14:10:00 +01:00
1 parent e7f4f4b51d
commit 2cf4f6832d
5 files changed
+21 -25

No files matched your search

+1 -6
View File
@@ -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);