pub struct BackdropWarpV1 {
pub strength_px: Px,
pub scale_px: Px,
pub phase: f32,
pub chromatic_aberration_px: Px,
pub kind: BackdropWarpKindV1,
}Expand description
Bounded backdrop warp parameters (v1).
This is a mechanism-level surface intended to enable refraction-like liquid glass effects by sampling the already-rendered backdrop with a deterministic UV displacement. Higher-level recipes (normal-map assets, interaction curves, multi-layer stacks) remain ecosystem policy.
Fields§
§strength_px: PxDisplacement strength in logical pixels (pre-scale-factor).
scale_px: PxSpatial scale for the warp field in logical pixels.
phase: f32Deterministic phase/seed value (no hidden time dependency).
chromatic_aberration_px: PxOptional chromatic aberration magnitude in logical pixels.
kind: BackdropWarpKindV1Implementations§
Source§impl BackdropWarpV1
impl BackdropWarpV1
pub const MAX_STRENGTH_PX: Px
pub const MIN_SCALE_PX: Px
pub const MAX_SCALE_PX: Px
pub const MAX_CHROMATIC_ABERRATION_PX: Px
pub fn sanitize(self) -> BackdropWarpV1
Trait Implementations§
Source§impl Clone for BackdropWarpV1
impl Clone for BackdropWarpV1
Source§fn clone(&self) -> BackdropWarpV1
fn clone(&self) -> BackdropWarpV1
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BackdropWarpV1
impl Debug for BackdropWarpV1
Source§impl PartialEq for BackdropWarpV1
impl PartialEq for BackdropWarpV1
impl Copy for BackdropWarpV1
impl StructuralPartialEq for BackdropWarpV1
Auto Trait Implementations§
impl Freeze for BackdropWarpV1
impl RefUnwindSafe for BackdropWarpV1
impl Send for BackdropWarpV1
impl Sync for BackdropWarpV1
impl Unpin for BackdropWarpV1
impl UnsafeUnpin for BackdropWarpV1
impl UnwindSafe for BackdropWarpV1
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