pub struct ToonConfig {
pub ramp: ToneRamp,
pub outline_px: f32,
pub outline_thresh: f32,
pub outline_color: u32,
}Expand description
Post-process configuration stored in GfxState.
The ramp replaces the old separate shadow-softness and highlight passes.
Lighting and shadowing are expressed as a single tone gradient — set stops,
toggle smooth, optionally shape with a Bezier curve.
Fields§
§ramp: ToneRampUnified tone ramp: maps pixel luminance → output brightness. Applied as a post-process after geometry rendering.
outline_px: f32Outline thickness in pixels (0 = off).
outline_thresh: f32Depth discontinuity that triggers an outline stamp.
outline_color: u32Ink colour (0x00RRGGBB).
Trait Implementations§
Source§impl Clone for ToonConfig
impl Clone for ToonConfig
Source§fn clone(&self) -> ToonConfig
fn clone(&self) -> ToonConfig
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 ToonConfig
impl Debug for ToonConfig
Auto Trait Implementations§
impl Freeze for ToonConfig
impl RefUnwindSafe for ToonConfig
impl Send for ToonConfig
impl Sync for ToonConfig
impl Unpin for ToonConfig
impl UnsafeUnpin for ToonConfig
impl UnwindSafe for ToonConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more