#[repr(C)]pub struct SsaoParams {
pub radius: f32,
pub intensity: f32,
pub tan_half_fov_y: f32,
pub aspect: f32,
}Expand description
Per-frame uniform for the SSAO (GTAO) horizon-search kernel. Carries the
clamped authored tunables plus the view-ray scale the kernel needs to
rebuild a view-space position from the linear depth the SSAO pre-pass
writes. Pushed verbatim to the SSAO kernel fragment shader, so the layout
must stay in sync with the SsaoParams struct there. 16 bytes.
Fields§
§radius: f32World-space hemisphere radius the horizon search covers.
intensity: f32Occlusion strength multiplier applied to the integrated visibility.
tan_half_fov_y: f32tan(fov_y / 2): the vertical view-ray half-extent at unit depth.
aspect: f32Viewport aspect ratio (width / height).
Trait Implementations§
Source§impl Clone for SsaoParams
impl Clone for SsaoParams
Source§fn clone(&self) -> SsaoParams
fn clone(&self) -> SsaoParams
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 SsaoParams
Source§impl Debug for SsaoParams
impl Debug for SsaoParams
impl NoUninit for SsaoParams
Auto Trait Implementations§
impl Freeze for SsaoParams
impl RefUnwindSafe for SsaoParams
impl Send for SsaoParams
impl Sync for SsaoParams
impl Unpin for SsaoParams
impl UnsafeUnpin for SsaoParams
impl UnwindSafe for SsaoParams
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