pub struct GlassFaceTone {
pub black: f32,
pub white: f32,
pub saturation: f32,
pub max_luminance: f32,
}Expand description
A fixed luminance transfer with an independent chroma gain.
Luminance y becomes black + (white - black) * y - (1 - max_luminance) * y²;
chroma is scaled by saturation and the combined RGB is clamped to zero–one.
Fields§
§black: f32Black input’s output, from zero to one.
white: f32White endpoint before quadratic highlight compression; greater than black.
saturation: f32Chroma gain independent of the luminance transfer; finite and nonnegative.
max_luminance: f32Highlight compression endpoint, from zero to one. One disables compression.
Trait Implementations§
Source§impl Clone for GlassFaceTone
impl Clone for GlassFaceTone
impl Copy for GlassFaceTone
Source§impl Debug for GlassFaceTone
impl Debug for GlassFaceTone
Source§impl PartialEq for GlassFaceTone
impl PartialEq for GlassFaceTone
impl StructuralPartialEq for GlassFaceTone
Auto Trait Implementations§
impl Freeze for GlassFaceTone
impl RefUnwindSafe for GlassFaceTone
impl Send for GlassFaceTone
impl Sync for GlassFaceTone
impl Unpin for GlassFaceTone
impl UnsafeUnpin for GlassFaceTone
impl UnwindSafe for GlassFaceTone
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