pub struct IllustrationStyle {
pub silhouette_strength: f32,
pub cavity_strength: f32,
pub depth_cue_strength: f32,
pub posterize_levels: f32,
pub motion_persistence: f32,
pub outline_width: f32,
}Expand description
Screen-space cues that clarify molecular shape without changing geometry or scientific colour mappings.
Fields§
§silhouette_strength: f32Darkening at relative depth and normal discontinuities, in [0, 1].
cavity_strength: f32Bounded emphasis of locally concave depth, in [0, 1].
depth_cue_strength: f32Distance-based fade toward the background, in [0, 1].
posterize_levels: f32Cel-shading tone bands (clamped [2, 16]); zero keeps continuous shading.
motion_persistence: f32Motion-trail persistence [0, 1]; zero keeps crisp TAA, higher values
retain a bounded exponentially decaying screen-space history.
outline_width: f32Silhouette outline thickness in pixels (clamped [0, 8]); zero is a 1px edge.
Implementations§
Source§impl IllustrationStyle
impl IllustrationStyle
Sourcepub const fn publication() -> Self
pub const fn publication() -> Self
A restrained publication-style treatment.
Trait Implementations§
Source§impl Clone for IllustrationStyle
impl Clone for IllustrationStyle
impl Copy for IllustrationStyle
Source§impl Debug for IllustrationStyle
impl Debug for IllustrationStyle
Source§impl Default for IllustrationStyle
impl Default for IllustrationStyle
Source§impl<'de> Deserialize<'de> for IllustrationStyle
impl<'de> Deserialize<'de> for IllustrationStyle
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for IllustrationStyle
impl PartialEq for IllustrationStyle
Source§impl Serialize for IllustrationStyle
impl Serialize for IllustrationStyle
impl StructuralPartialEq for IllustrationStyle
Auto Trait Implementations§
impl Freeze for IllustrationStyle
impl RefUnwindSafe for IllustrationStyle
impl Send for IllustrationStyle
impl Sync for IllustrationStyle
impl Unpin for IllustrationStyle
impl UnsafeUnpin for IllustrationStyle
impl UnwindSafe for IllustrationStyle
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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