pub struct Md2Blend {
pub progress: f32,
pub vert_alpha: Vec<u8>,
pub old: Md2OldPass,
pub old_wave_mode: Option<i32>,
pub shape_alpha_mult: Vec<f32>,
pub wave_alpha_mult: Vec<f32>,
}Expand description
Everything the renderer needs to draw a blend frame, on top of the new state’s crate::FrameInput (whose
per-frame values are already the blended m_pState->var_pf_*).
Fields§
§progress: f32m_pState->m_fBlendProgress: linear, 0..=1 (a blend ends once it exceeds 1).
vert_alpha: Vec<u8>m_verts[n].Diffuse >> 24 for every warp-mesh vertex (lactea mesh order): (DWORD)(mix2 * 255), mix2 being
the clamped per-vertex blend factor (255 = new preset only).
old: Md2OldPassThe old state’s shader-pass inputs.
old_wave_mode: Option<i32>Some(m_nOldWaveMode) when the main wave is drawn twice (its == 2: blending and the wave mode changed).
shape_alpha_mult: Vec<f32>alpha_mult of every entry of FrameInput::shapes / FrameInput::waves (progress for the new state’s,
1 - progress for the old one’s). Missing entries mean 1.
wave_alpha_mult: Vec<f32>Same for FrameInput::waves.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Md2Blend
impl RefUnwindSafe for Md2Blend
impl Send for Md2Blend
impl Sync for Md2Blend
impl Unpin for Md2Blend
impl UnsafeUnpin for Md2Blend
impl UnwindSafe for Md2Blend
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more