pub struct NoiseV1 {
pub strength: f32,
pub scale_px: Px,
pub phase: f32,
}Expand description
Bounded procedural noise parameters (v1).
This is a mechanism-level surface intended to enable authored “grain” layers that are useful for acrylic/glass recipes (e.g. subtle noise after backdrop blur) while remaining deterministic (no hidden time dependency).
Fields§
§strength: f32Additive noise magnitude in linear space. Recommended range is ~[0, 0.1].
scale_px: PxSpatial scale for the noise field in logical pixels (pre-scale-factor).
phase: f32Deterministic phase/seed value (no hidden time dependency).
Implementations§
Source§impl NoiseV1
impl NoiseV1
pub const MAX_STRENGTH: f32 = 1.0
pub const MIN_SCALE_PX: Px
pub const MAX_SCALE_PX: Px
pub fn sanitize(self) -> NoiseV1
Trait Implementations§
impl Copy for NoiseV1
impl StructuralPartialEq for NoiseV1
Auto Trait Implementations§
impl Freeze for NoiseV1
impl RefUnwindSafe for NoiseV1
impl Send for NoiseV1
impl Sync for NoiseV1
impl Unpin for NoiseV1
impl UnsafeUnpin for NoiseV1
impl UnwindSafe for NoiseV1
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