mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-04 21:08:40 +00:00
float cfg from engine -> frontend; more elimination of dead code in engine
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user