pub struct ShadowDebugConfig {
pub cascade_count: u32,
pub active_cascade: u32,
pub show_splits: bool,
pub cascade_colors: [[f32; 4]; 4],
pub bias_scale: f32,
pub show_texels: bool,
pub overlay_opacity: f32,
}Expand description
Shadow cascade debug configuration.
Fields§
§cascade_count: u32Number of shadow cascades.
active_cascade: u32Currently visualized cascade index.
show_splits: boolShow cascade split boundaries.
cascade_colors: [[f32; 4]; 4]Cascade colors for visualization.
bias_scale: f32Depth bias visualization scale.
show_texels: boolShow shadow map texels overlay.
overlay_opacity: f32Opacity of debug overlay 0..=1.
Trait Implementations§
Source§impl Clone for ShadowDebugConfig
impl Clone for ShadowDebugConfig
Source§fn clone(&self) -> ShadowDebugConfig
fn clone(&self) -> ShadowDebugConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ShadowDebugConfig
impl Debug for ShadowDebugConfig
Auto Trait Implementations§
impl Freeze for ShadowDebugConfig
impl RefUnwindSafe for ShadowDebugConfig
impl Send for ShadowDebugConfig
impl Sync for ShadowDebugConfig
impl Unpin for ShadowDebugConfig
impl UnsafeUnpin for ShadowDebugConfig
impl UnwindSafe for ShadowDebugConfig
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