pub struct GlassContourHighlight {
pub height_dp: f32,
pub offset_dp: f32,
pub amount: f32,
pub color_bias: f32,
pub angle_radians: f32,
pub spread_radians: f32,
}Expand description
Reflection of opposing lights across a narrow band around the surface contour. The reflected environment is brightest along the light axis and darkest between the lights. Nonfinite fields or nonpositive height or spread disable this treatment.
Fields§
§height_dp: f32Width of the reflecting band in dp.
offset_dp: f32Signed distance of the band’s outer edge; negative values extend outside the surface.
amount: f32Reflected-light opacity, clamped to zero through one.
color_bias: f32Additive brightness of the reflected environment.
angle_radians: f32Direction of the first light in screen-space radians; the second is opposite.
spread_radians: f32Angular extent of each light in radians.
Trait Implementations§
Source§impl Clone for GlassContourHighlight
impl Clone for GlassContourHighlight
impl Copy for GlassContourHighlight
Source§impl Debug for GlassContourHighlight
impl Debug for GlassContourHighlight
Source§impl PartialEq for GlassContourHighlight
impl PartialEq for GlassContourHighlight
impl StructuralPartialEq for GlassContourHighlight
Auto Trait Implementations§
impl Freeze for GlassContourHighlight
impl RefUnwindSafe for GlassContourHighlight
impl Send for GlassContourHighlight
impl Sync for GlassContourHighlight
impl Unpin for GlassContourHighlight
impl UnsafeUnpin for GlassContourHighlight
impl UnwindSafe for GlassContourHighlight
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