Struct comfy_wgpu::BloomPrefilterSettings
source · 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 conjuction 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 copy 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 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