#[non_exhaustive]pub enum ToneMappingOperator {
Clamp,
Reinhard,
}Expand description
Choices for GraphicsOptions::tone_mapping.
§Serialization stability warning
This type implements [serde::Serialize] and [serde::Deserialize], but serialization
support is still experimental (as is the game data model in general). We do not guarantee that future versions of all-is-cubes
will be able to deserialize data which is serialized by this version.
Additionally, the serialization schema is designed with serde_json in mind. It is not
guaranteed that using a different data format crate, which may use a different subset of
the information exposed via [serde::Serialize], will produce stable results.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Clamp
Limit values above the maximum (or below zero) to lie within that range.
This is the trivial tone mapping operation, and most “correct” for colors which do lie within the range, but will cause overly bright colors to change hue (as the RGB components are clamped independently).
Reinhard
TODO: As currently implemented this is an inadequate placeholder which is overly dark.
Implementations§
Trait Implementations§
Source§impl Clone for ToneMappingOperator
impl Clone for ToneMappingOperator
Source§fn clone(&self) -> ToneMappingOperator
fn clone(&self) -> ToneMappingOperator
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ToneMappingOperator
impl Debug for ToneMappingOperator
impl Eq for ToneMappingOperator
Source§impl PartialEq for ToneMappingOperator
impl PartialEq for ToneMappingOperator
impl StructuralPartialEq for ToneMappingOperator
Auto Trait Implementations§
impl Freeze for ToneMappingOperator
impl RefUnwindSafe for ToneMappingOperator
impl Send for ToneMappingOperator
impl Sync for ToneMappingOperator
impl Unpin for ToneMappingOperator
impl UnsafeUnpin for ToneMappingOperator
impl UnwindSafe for ToneMappingOperator
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
Source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ConditionalSend for Twhere
T: Send,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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> ⓘ
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> ⓘ
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