float cfg from engine -> frontend; more elimination of dead code in engine

This commit is contained in:
Ryan Fleury
2024-09-11 15:40:11 -07:00
parent f4726eee0a
commit f59694fcfb
6 changed files with 108 additions and 180 deletions
+2 -2
View File
@@ -8306,8 +8306,8 @@ DF_VIEW_UI_FUNCTION_DEF(geo3d)
//- rjf: animate camera
//
{
F32 fast_rate = 1 - pow_f32(2, (-60.f * d_dt()));
F32 slow_rate = 1 - pow_f32(2, (-30.f * d_dt()));
F32 fast_rate = 1 - pow_f32(2, (-60.f * df_state->frame_dt));
F32 slow_rate = 1 - pow_f32(2, (-30.f * df_state->frame_dt));
state->zoom += (zoom_target - state->zoom) * slow_rate;
state->yaw += (yaw_target - state->yaw) * fast_rate;
state->pitch += (pitch_target - state->pitch) * fast_rate;