pub enum BakeMode {
Directional,
AmbientOcclusion(AoParams),
}Expand description
What Grid::bake / Grid::bake_bbox write into the per-voxel
brightness byte (QE-B6 — replaces the voxlap magic-u32 lightmode).
Variants§
Directional
Directional estnorm shading (voxlap lightmode 1) — the classic standalone look for hosts that don’t run a dynamic light rig.
AmbientOcclusion(AoParams)
Ambient occlusion (lightmode 3): crevices and inner corners
darken. The right bake under a runtime LightRig, which
reads the byte as its ambient/AO fill. Carries its tuning
parameters — unlike the deprecated bake_lightmode_bbox,
Grid::bake_bbox honours them.
Trait Implementations§
impl Copy for BakeMode
impl StructuralPartialEq for BakeMode
Auto Trait Implementations§
impl Freeze for BakeMode
impl RefUnwindSafe for BakeMode
impl Send for BakeMode
impl Sync for BakeMode
impl Unpin for BakeMode
impl UnsafeUnpin for BakeMode
impl UnwindSafe for BakeMode
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