pub struct FowRender<'a> { /* private fields */ }Expand description
FW.2 — the render-time fog-of-war classifier: wraps a FogOfWar
and answers the roxlap_core::dda::FowStyler verdict per hit. The
scene renderer builds one for the twin grid each frame and hands it
to the CPU DDA (DdaEnv::fow).
State → verdict:
- Unseen ⇒
Hide(the marcher treats the cell as air). - Visible ⇒
Show { dynamic: true }, dimmed toward the memory look at the cone edge (intensity< max) so the FOV boundary is a smooth taper, full at the cone centre. - Memory / Heard ⇒
Show { dynamic: false }(frozen baked look), dimmed byVisionConfig::memory_dimscaled by the decaying intensity and desaturated byVisionConfig::memory_desaturate.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for FowRender<'a>
impl<'a> RefUnwindSafe for FowRender<'a>
impl<'a> Send for FowRender<'a>
impl<'a> Sync for FowRender<'a>
impl<'a> Unpin for FowRender<'a>
impl<'a> UnsafeUnpin for FowRender<'a>
impl<'a> UnwindSafe for FowRender<'a>
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> 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