pub struct ShadeParams {
pub bands: u32,
pub ambient: f32,
pub shadow: [f32; 3],
pub rim: f32,
pub rim_color: [f32; 3],
pub holo: bool,
}Expand description
Tunable parameters for the cel/holo model.
Fields§
§bands: u32Number of posterisation bands (>=2). Lower = chunkier cel look.
ambient: f32Ambient fill 0..1 applied to the base colour.
shadow: [f32; 3]Coloured-shadow tint added in unlit regions (linear rgb 0..1).
rim: f32Fresnel rim strength (0 = off).
rim_color: [f32; 3]Rim glow colour.
holo: boolEnable the normal-gradient holographic sheen.
Implementations§
Source§impl ShadeParams
impl ShadeParams
Trait Implementations§
Source§impl Clone for ShadeParams
impl Clone for ShadeParams
Source§fn clone(&self) -> ShadeParams
fn clone(&self) -> ShadeParams
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 moreimpl Copy for ShadeParams
Source§impl Debug for ShadeParams
impl Debug for ShadeParams
Auto Trait Implementations§
impl Freeze for ShadeParams
impl RefUnwindSafe for ShadeParams
impl Send for ShadeParams
impl Sync for ShadeParams
impl Unpin for ShadeParams
impl UnsafeUnpin for ShadeParams
impl UnwindSafe for ShadeParams
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