pub struct GlassDynamics {
pub tilt: (f32, f32),
pub highlight_boost: f32,
pub magnify_boost: f32,
pub morph: Option<GlassMorph>,
}Expand description
Per-frame motion inputs for an interactive glass element, read lazily at scene-build time (no recomposition per frame).
Fields§
§tilt: (f32, f32)Motion tilt (finger/pointer/device motion), roughly −1..1 per axis.
highlight_boost: f32Extra specular intensity (0 = spec default; e.g. press boost).
magnify_boost: f32Extra magnification over the variant’s base (the moving lens magnifies harder than a resting one).
morph: Option<GlassMorph>Shape morph: when set, the glass geometry is these node-local rects instead of the node cover — the shapeshift channel.
Trait Implementations§
Source§impl Clone for GlassDynamics
impl Clone for GlassDynamics
Source§fn clone(&self) -> GlassDynamics
fn clone(&self) -> GlassDynamics
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 GlassDynamics
impl Debug for GlassDynamics
Source§impl Default for GlassDynamics
impl Default for GlassDynamics
Source§fn default() -> GlassDynamics
fn default() -> GlassDynamics
Returns the “default value” for a type. Read more
Source§impl PartialEq for GlassDynamics
impl PartialEq for GlassDynamics
impl StructuralPartialEq for GlassDynamics
Auto Trait Implementations§
impl Freeze for GlassDynamics
impl RefUnwindSafe for GlassDynamics
impl Send for GlassDynamics
impl Sync for GlassDynamics
impl Unpin for GlassDynamics
impl UnsafeUnpin for GlassDynamics
impl UnwindSafe for GlassDynamics
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