pub struct ShadowParams {
pub map_size: u32,
pub update: ShadowUpdate,
pub distance: u32,
pub cascades: u32,
}Expand description
Shadow-mapping knobs from GraphicsConfig. map_size == 0 disables the
shadow pipeline and cascade array entirely.
Fields§
§map_size: u32Shadow map edge in texels; 0 disables shadows entirely.
update: ShadowUpdateCascade re-render policy: hybrid amortizes far cascades across frames.
distance: u32Shadow distance in world units, capped at the camera far plane by the per-frame cascade split.
cascades: u32Cascade count (1..=4) the per-frame split + schedule render.
Trait Implementations§
Source§impl Clone for ShadowParams
impl Clone for ShadowParams
Source§fn clone(&self) -> ShadowParams
fn clone(&self) -> ShadowParams
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ShadowParams
Auto Trait Implementations§
impl Freeze for ShadowParams
impl RefUnwindSafe for ShadowParams
impl Send for ShadowParams
impl Sync for ShadowParams
impl Unpin for ShadowParams
impl UnsafeUnpin for ShadowParams
impl UnwindSafe for ShadowParams
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