pub struct SkinShaderParams {
pub sss_strength: f32,
pub roughness: f32,
pub melanin: f32,
pub hemoglobin: f32,
pub tint: [f32; 3],
}Expand description
Parameters controlling skin material appearance.
Fields§
§sss_strength: f32Subsurface scattering strength (0..1).
roughness: f32Surface roughness (0 = mirror, 1 = fully rough).
melanin: f32Melanin level controlling skin darkness (0..1).
hemoglobin: f32Hemoglobin level controlling redness (0..1).
tint: [f32; 3]RGB tint applied on top of computed color.
Trait Implementations§
Source§impl Clone for SkinShaderParams
impl Clone for SkinShaderParams
Source§fn clone(&self) -> SkinShaderParams
fn clone(&self) -> SkinShaderParams
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SkinShaderParams
impl RefUnwindSafe for SkinShaderParams
impl Send for SkinShaderParams
impl Sync for SkinShaderParams
impl Unpin for SkinShaderParams
impl UnsafeUnpin for SkinShaderParams
impl UnwindSafe for SkinShaderParams
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,
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