pub struct SsaoConfig {
pub radius: f32,
pub intensity: f32,
pub bias: f32,
}Expand description
Screen-space ambient occlusion post configuration.
Fields§
§radius: f32Sampling radius in view-space units.
intensity: f32Occlusion strength.
bias: f32Self-occlusion bias.
Implementations§
Source§impl SsaoConfig
impl SsaoConfig
Sourcepub fn normalized(self) -> Self
pub fn normalized(self) -> Self
Returns a clamped configuration.
Trait Implementations§
Source§impl Clone for SsaoConfig
impl Clone for SsaoConfig
Source§fn clone(&self) -> SsaoConfig
fn clone(&self) -> SsaoConfig
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 SsaoConfig
Source§impl Debug for SsaoConfig
impl Debug for SsaoConfig
Source§impl Default for SsaoConfig
impl Default for SsaoConfig
Source§impl PartialEq for SsaoConfig
impl PartialEq for SsaoConfig
Source§fn eq(&self, other: &SsaoConfig) -> bool
fn eq(&self, other: &SsaoConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SsaoConfig
Auto Trait Implementations§
impl Freeze for SsaoConfig
impl RefUnwindSafe for SsaoConfig
impl Send for SsaoConfig
impl Sync for SsaoConfig
impl Unpin for SsaoConfig
impl UnsafeUnpin for SsaoConfig
impl UnwindSafe for SsaoConfig
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