Point lights
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user