pub struct BloomConfig {
pub threshold: f32,
pub intensity: f32,
pub radius: f32,
}Expand description
Bloom highlight extraction and additive glow configuration.
Fields§
§threshold: f32Luminance threshold where bloom begins.
intensity: f32Bloom contribution multiplier.
radius: f32Approximate blur radius in pixels.
Implementations§
Source§impl BloomConfig
impl BloomConfig
Sourcepub fn normalized(self) -> Self
pub fn normalized(self) -> Self
Returns a clamped configuration.
Trait Implementations§
Source§impl Clone for BloomConfig
impl Clone for BloomConfig
Source§fn clone(&self) -> BloomConfig
fn clone(&self) -> BloomConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BloomConfig
Source§impl Debug for BloomConfig
impl Debug for BloomConfig
Source§impl Default for BloomConfig
impl Default for BloomConfig
Source§impl PartialEq for BloomConfig
impl PartialEq for BloomConfig
Source§fn eq(&self, other: &BloomConfig) -> bool
fn eq(&self, other: &BloomConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BloomConfig
Auto Trait Implementations§
impl Freeze for BloomConfig
impl RefUnwindSafe for BloomConfig
impl Send for BloomConfig
impl Sync for BloomConfig
impl Unpin for BloomConfig
impl UnsafeUnpin for BloomConfig
impl UnwindSafe for BloomConfig
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