pub enum BakeMode {
Directional,
AmbientOcclusion(AoParams),
PointLights,
}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.
PointLights
EV.3 — voxlap’s point-light bake (lightmode 2): a dim
directional base (about a quarter of
Directional’s) plus a cube-law
Lambertian pool around every light in
Grid::bake_lights — glowing crystals, torches, lava.
Grid::bake_bbox (the carve-relight primitive) picks the
grid’s lights up automatically, so incremental edits keep
their glow pools. The dark base is the point: light pools
read against gloom.
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
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>
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>
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