pub struct AoParams {
pub strength: f32,
pub radius: i32,
pub min_floor: f32,
}Expand description
AO.2 — tunable ambient-occlusion bake parameters (the lightmode == 3
knobs). Default matches the AO.0/AO.1 constants.
Fields§
§strength: f32Fraction of ambient removed at full occlusion (0 = off, 1 = black
crevices before min_floor).
radius: i32Sampling reach in voxels (clamped to ESTNORMRAD). 1 = tight edge.
min_floor: f32Lower bound on the darkening factor — crevices never dim below
min_floor of the open ambient (0 ⇒ governed by strength alone).
Trait Implementations§
impl Copy for AoParams
impl StructuralPartialEq for AoParams
Auto Trait Implementations§
impl Freeze for AoParams
impl RefUnwindSafe for AoParams
impl Send for AoParams
impl Sync for AoParams
impl Unpin for AoParams
impl UnsafeUnpin for AoParams
impl UnwindSafe for AoParams
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more