Blending stuff

This commit is contained in:
2024-10-27 22:00:03 +01:00
parent 36375c2d15
commit a3e5cf7e4a
8 changed files with 579 additions and 357 deletions

View File

@@ -104,15 +104,20 @@ coven_run :: (game_update_proc: (float), game_update_post_physics_proc: (float))
}
if engine.mode == .PLAYING {
game_update_proc(clamped_dt);
update_animators(clamped_dt);
update_physics(engine.current_scene, clamped_dt);
game_update_post_physics_proc(clamped_dt);
if engine.current_scene != null {
update_animators(clamped_dt);
update_physics(engine.current_scene, clamped_dt);
game_update_post_physics_proc(clamped_dt);
}
}
update_transforms();
sync_engine_buffers();
if engine.current_scene != null {
update_transforms();
sync_engine_buffers();
update_particle_systems(clamped_dt);
update_particle_systems(clamped_dt);
}
#if EDITOR {
ui_end();