pub struct CpuFog {
pub color: u32,
pub max_scan_dist: i32,
pub side_shades: [i8; 6],
}Expand description
CPU fog + per-face shading config for the DDA backend, passed by
value into the scene render entry points (replaces the old
&mut ScratchPool parameter the voxlap path threaded fog through).
max_scan_dist <= 0 disables fog (no distance blend). Otherwise the
DDA renderer linearly ramps a hit’s colour toward Self::color
over max_scan_dist voxels. side_shades darkens each of the six
voxel faces — [x-, x+, y-, y+, z-, z+].
Fields§
§color: u32Low-24-bit RGB fog colour.
max_scan_dist: i32Distance (voxels) at which fog is fully opaque; <= 0 ⇒ fog OFF.
side_shades: [i8; 6]Per-face brightness reduction [x-, x+, y-, y+, z-, z+].
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CpuFog
impl RefUnwindSafe for CpuFog
impl Send for CpuFog
impl Sync for CpuFog
impl Unpin for CpuFog
impl UnsafeUnpin for CpuFog
impl UnwindSafe for CpuFog
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