Struct StylizedLightingParams
pub struct StylizedLightingParams {
pub diffuse_bands: u8,
pub band_softness: f32,
pub rim_exponent: f32,
pub rim_intensity: f32,
pub rim_tint: [f32; 3],
pub specular_threshold: f32,
pub specular_softness: f32,
}Expand description
Authored stylized art direction parameters sharing standard PBR geometry and materials.
Fields§
§diffuse_bands: u8Number of discrete diffuse bands (e.g. 2 for classic cel-shade, 0 for continuous).
band_softness: f32Smoothstep window around diffuse band thresholds [0.0 = sharp, 0.5 = soft].
rim_exponent: f32Fresnel rim power [typically 2.0 - 5.0].
rim_intensity: f32§rim_tint: [f32; 3]§specular_threshold: f32Quantized specular highlight threshold in N.H [e.g. 0.95].
specular_softness: f32Trait Implementations§
§impl Clone for StylizedLightingParams
impl Clone for StylizedLightingParams
§fn clone(&self) -> StylizedLightingParams
fn clone(&self) -> StylizedLightingParams
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 StylizedLightingParams
§impl Debug for StylizedLightingParams
impl Debug for StylizedLightingParams
§impl Default for StylizedLightingParams
impl Default for StylizedLightingParams
§fn default() -> StylizedLightingParams
fn default() -> StylizedLightingParams
Returns the “default value” for a type. Read more
§impl PartialEq for StylizedLightingParams
impl PartialEq for StylizedLightingParams
impl StructuralPartialEq for StylizedLightingParams
Auto Trait Implementations§
impl Freeze for StylizedLightingParams
impl RefUnwindSafe for StylizedLightingParams
impl Send for StylizedLightingParams
impl Sync for StylizedLightingParams
impl Unpin for StylizedLightingParams
impl UnsafeUnpin for StylizedLightingParams
impl UnwindSafe for StylizedLightingParams
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
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§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.