pub struct BloomPrefilterSettings {
pub threshold: f32,
pub threshold_softness: f32,
}Expand description
Applies a threshold filter to the input image to extract the brightest regions before blurring them and compositing back onto the original image. These settings are useful when emulating the 1990s-2000s game look.
§Considerations
- Changing these settings creates a physically inaccurate image
- Changing these settings makes it easy to make the final result look worse
- Non-default prefilter settings should be used in conjunction with
BloomCompositeMode::Additive
Fields§
§threshold: f32Baseline of the quadratic threshold curve (default: 0.0).
RGB values under the threshold curve will not contribute to the effect.
threshold_softness: f32Controls how much to blend between the thresholded and non-thresholded colors (default: 0.0).
0.0 = Abrupt threshold, no blending 1.0 = Fully soft threshold
Values outside of the range [0.0, 1.0] will be clamped.
Trait Implementations§
Source§impl Clone for BloomPrefilterSettings
impl Clone for BloomPrefilterSettings
Source§fn clone(&self) -> BloomPrefilterSettings
fn clone(&self) -> BloomPrefilterSettings
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 Default for BloomPrefilterSettings
impl Default for BloomPrefilterSettings
Source§fn default() -> BloomPrefilterSettings
fn default() -> BloomPrefilterSettings
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BloomPrefilterSettings
impl RefUnwindSafe for BloomPrefilterSettings
impl Send for BloomPrefilterSettings
impl Sync for BloomPrefilterSettings
impl Unpin for BloomPrefilterSettings
impl UnwindSafe for BloomPrefilterSettings
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
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 moreSource§impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
fn into_sample(self) -> T
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().