pub struct SsaoConfig {
pub enabled: bool,
pub radius: f32,
pub intensity: f32,
pub bias: f32,
pub sample_count: u32,
}Expand description
SSAO configuration.
Fields§
§enabled: boolWhether SSAO is enabled.
radius: f32Sample radius in world units (relative to length scale).
intensity: f32Intensity/strength of the effect (0.0 = none, 1.0 = full).
bias: f32Bias to prevent self-occlusion artifacts.
sample_count: u32Number of samples per pixel (higher = better quality, slower).
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 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SsaoConfig
impl Debug for SsaoConfig
Source§impl Default for SsaoConfig
impl Default for SsaoConfig
Source§impl<'de> Deserialize<'de> for SsaoConfig
impl<'de> Deserialize<'de> for SsaoConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SsaoConfig
impl RefUnwindSafe for SsaoConfig
impl Send for SsaoConfig
impl Sync for SsaoConfig
impl Unpin 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