Implement configurable lighting

This commit is contained in:
Camden Dixie O'Brien committed 2025-10-05 13:51:14 +01:00
1 parent 070758b6cc
commit b5bda150d2
6 files changed
+148 -49

No files matched your search

+8 -3
View File
@@ -9,6 +9,11 @@
#define MAX_FRAMES_IN_FLIGHT 4
typedef struct {
vec3_t sun_dir;
float cloudiness;
} light_params_t;
typedef struct {
VkInstance inst;
VkSurfaceKHR surface;
@@ -77,8 +82,8 @@ 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, mat4_t vp, mat4_t light_vp, size_t model_count,
const gpu_model_t *models, const mat4_t **bone_matrices,
const mat4_t *model_transforms);
const gpu_ctx_t *ctx, mat4_t vp, light_params_t light,
size_t model_count, const gpu_model_t *models,
const mat4_t **bone_matrices, const mat4_t *model_transforms);
#endif