pub struct ToneMappingConfig {
pub exposure: f32,
pub white_level: f32,
pub gamma: f32,
}Expand description
Tone mapping configuration.
Fields§
§exposure: f32Exposure multiplier (default 1.0).
white_level: f32White level for highlight compression (default 1.0).
gamma: f32Gamma correction exponent (default 2.2).
Implementations§
Source§impl ToneMappingConfig
impl ToneMappingConfig
Sourcepub fn with_exposure(self, exposure: f32) -> Self
pub fn with_exposure(self, exposure: f32) -> Self
Sets the exposure value.
Sourcepub fn with_white_level(self, white_level: f32) -> Self
pub fn with_white_level(self, white_level: f32) -> Self
Sets the white level.
Sourcepub fn with_gamma(self, gamma: f32) -> Self
pub fn with_gamma(self, gamma: f32) -> Self
Sets the gamma value.
Trait Implementations§
Source§impl Clone for ToneMappingConfig
impl Clone for ToneMappingConfig
Source§fn clone(&self) -> ToneMappingConfig
fn clone(&self) -> ToneMappingConfig
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 moreSource§impl Debug for ToneMappingConfig
impl Debug for ToneMappingConfig
Source§impl Default for ToneMappingConfig
impl Default for ToneMappingConfig
Source§impl<'de> Deserialize<'de> for ToneMappingConfig
impl<'de> Deserialize<'de> for ToneMappingConfig
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
Auto Trait Implementations§
impl Freeze for ToneMappingConfig
impl RefUnwindSafe for ToneMappingConfig
impl Send for ToneMappingConfig
impl Sync for ToneMappingConfig
impl Unpin for ToneMappingConfig
impl UnsafeUnpin for ToneMappingConfig
impl UnwindSafe for ToneMappingConfig
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