pub struct PassRandom {
pub rand_frame: [f32; 4],
pub rand_preset: [f32; 4],
pub rot: Option<Box<[[[f32; 4]; 3]; 24]>>,
}Expand description
Per-shader-pass random state. projectM gives the warp and the composite shader independent
rand_preset / rand_frame / rot_* streams (MD2 shares one set per preset); the engine
supplies them here. Any None falls back to the renderer’s own state.
Fields§
§rand_frame: [f32; 4]rand_frame: four values drawn once per frame.
rand_preset: [f32; 4]rand_preset: four values drawn once per preset.
rot: Option<Box<[[[f32; 4]; 3]; 24]>>The 24 rot_* matrices exactly as uploaded (ABI layout, see lactea_abi::MilkUniforms::rot).
Trait Implementations§
Source§impl Clone for PassRandom
impl Clone for PassRandom
Auto Trait Implementations§
impl Forget for PassRandom
impl Freeze for PassRandom
impl Move for PassRandom
impl RefUnwindSafe for PassRandom
impl Send for PassRandom
impl Sync for PassRandom
impl Unpin for PassRandom
impl UnsafeUnpin for PassRandomwhere
*const [[[f32; 4]; 3]; 24] is !null: UnsafeUnpin,
PhantomData<[[[f32; 4]; 3]; 24]>: UnsafeUnpin,
impl UnwindSafe for PassRandom
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