#[repr(u32)]pub enum Tonemap {
Clamp = 0,
Soft = 1,
Filmic = 2,
}Expand description
How bloom and over-bright scene values are mapped to the display.
Variants§
Clamp = 0
Add bloom and clip at white. Highlights saturate toward pure hues.
Soft = 1
Identity for ordinary colors; bloom and over-bright values roll off
softly toward white (1 - (1 - c) * exp(-glow)). Preserves the
authored palette exactly where nothing glows.
Filmic = 2
ACES-style filmic curve (Narkowicz fit) applied in approximately linear light (display gamma 2.2). Mid-grey 0.5 maps to about 0.6 and white to about 0.9, rolling highlights and bloom off smoothly.
Trait Implementations§
impl Copy for Tonemap
impl Eq for Tonemap
impl StructuralPartialEq for Tonemap
Auto Trait Implementations§
impl Freeze for Tonemap
impl RefUnwindSafe for Tonemap
impl Send for Tonemap
impl Sync for Tonemap
impl Unpin for Tonemap
impl UnwindSafe for Tonemap
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