pub struct RotParams {
pub base: [[f32; 3]; 24],
pub speed: [[f32; 3]; 24],
pub xlate: [[f32; 3]; 24],
pub rand_preset: [f32; 4],
pub hue_offsets: [f32; 4],
}Expand description
Per-preset random rotation/translation parameters (m_rot_base, m_rot_speed, m_xlate)
for the 24 rot_* matrices, plus m_rand_preset.
Fields§
§base: [[f32; 3]; 24]m_rot_base: starting angles of each matrix.
speed: [[f32; 3]; 24]m_rot_speed: angular speed of each matrix.
xlate: [[f32; 3]; 24]m_xlate: translation of each matrix.
rand_preset: [f32; 4]m_rand_preset as drawn by RandomizePresetVars (the engine may also supply its own in
FrameInput::rand_preset; the uniform always uses the FrameInput value).
hue_offsets: [f32; 4]m_fRandStart[0..4] / projectM hueRandomOffsets: phases of the hue-shader corner colours.
Implementations§
Trait Implementations§
impl StructuralPartialEq for RotParams
Auto Trait Implementations§
impl Freeze for RotParams
impl RefUnwindSafe for RotParams
impl Send for RotParams
impl Sync for RotParams
impl Unpin for RotParams
impl UnsafeUnpin for RotParams
impl UnwindSafe for RotParams
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