fn adjust_terrain_view_distance(
    terrain_vd: u32,
    settings: &mut Settings,
    session_state: &mut SessionState,
)