pub struct ToneMap {
pub curve: ReinhardCurve,
pub colour_matrix: Option<ColourMatrix>,
pub vignette: Option<[f32; 4]>,
pub lut: Option<ColourLut>,
}Expand description
Display processing after exposure and bloom. Values describe operations, independent of a source’s settings files.
Fields§
§curve: ReinhardCurve§colour_matrix: Option<ColourMatrix>A source-stated transform before or after the curve. None skips this stage.
vignette: Option<[f32; 4]>At screen coordinate (u,v), r = length((2uv-1) * xy), t = 1-clamp(rz+w,0,1). Multiply RGB by (tt*(3-2*t))^4 before the lookup. None skips this stage.
lut: Option<ColourLut>None skips the lookup and leaves the curve/matrix/vignette result as linear RGB. A source must separately report any stage it cannot establish; None is not a claim that its renderer uses an identity lookup.
Trait Implementations§
impl StructuralPartialEq for ToneMap
Auto Trait Implementations§
impl Forget for ToneMap
impl Freeze for ToneMap
impl RefUnwindSafe for ToneMap
impl Send for ToneMap
impl Sync for ToneMap
impl Unpin for ToneMap
impl UnsafeUnpin 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