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 Forget for Md2Blend
impl Freeze for Md2Blendwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const ArcInner<[f32; 512]> is !null: Freeze,
PhantomData<ArcInner<[f32; 512]>>: Freeze,
*const ArcInner<BeatDropTexture> is !null: Freeze,
PhantomData<ArcInner<BeatDropTexture>>: Freeze,
*const [[[f32; 4]; 3]; 24] is !null: Freeze,
PhantomData<[[[f32; 4]; 3]; 24]>: Freeze,
PhantomData<f32>: Freeze,
impl Move for Md2Blend
impl RefUnwindSafe for Md2Blend
impl Send for Md2Blend
impl Sync for Md2Blend
impl Unpin for Md2Blend
impl UnsafeUnpin for Md2Blendwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const ArcInner<[f32; 512]> is !null: UnsafeUnpin,
PhantomData<ArcInner<[f32; 512]>>: UnsafeUnpin,
*const ArcInner<BeatDropTexture> is !null: UnsafeUnpin,
PhantomData<ArcInner<BeatDropTexture>>: UnsafeUnpin,
*const [[[f32; 4]; 3]; 24] is !null: UnsafeUnpin,
PhantomData<[[[f32; 4]; 3]; 24]>: UnsafeUnpin,
PhantomData<f32>: UnsafeUnpin,
impl UnwindSafe for Md2Blendwhere
RawVecInner: UnwindSafe,
Arc<[f32; 512]>: UnwindSafe,
Arc<BeatDropTexture>: UnwindSafe,
BoxRaw<[[[f32; 4]; 3]; 24]>: UnwindSafe,
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