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§
- Transition
State 🔒 - One in-flight transition.
total_sis the configured duration (typically 2.7 s, mirror of MD2’s defaultf_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.