Point lights

This commit is contained in:
2024-12-04 23:41:52 +01:00
parent 71668cc2f5
commit c4073d7d91
5 changed files with 66 additions and 5 deletions

View File

@@ -32,6 +32,7 @@ Engine_Core :: struct {
time_buffer : Buffer_Handle;
screen_data_buffer : Buffer_Handle;
directional_light_buffer : Buffer_Handle;
point_light_buffer : Buffer_Handle;
procs: struct {
on_scene_loaded: (*Scene, Engine_Mode);
@@ -41,6 +42,9 @@ Engine_Core :: struct {
}
paused: bool;
time: float;
dt: float;
}
engine: Engine_Core;
@@ -94,6 +98,8 @@ coven_run :: (game_update_proc: (float), game_update_post_physics_proc: (float))
now : float = xx seconds_since_init();
dt = now - time;
time = now;
engine.time = time;
engine.dt = dt;
update_fps_counter(dt);