Module transition_state

Module transition_state 

Source
Expand description

Engine-side preset transition state.

A small delta-time-driven timer that the engine advances each frame to crossfade the outgoing preset (rendered on the renderer’s secondary chain) into the incoming preset (primary). Distinct from the Transition / TransitionManager in crate::transition which were built earlier on top of std::time::Instant and never wired up — this variant takes delta_time so the engine’s tick (and our tests) drive the progress without touching the wall clock.

Structs§

TransitionState 🔒
One in-flight transition. total_s is the configured duration (typically 2.7 s, mirror of MD2’s default f_transition_time).

Functions§

ease_in_out 🔒
EaseInOut S-curve used for the default transition. Slower at the endpoints, faster in the middle — softer to the eye than a strict linear crossfade.