pub struct ShadowConfig {
pub cascade_count: u32,
pub map_resolution: u32,
pub intensity: f32,
pub normal_offset: f32,
}Expand description
Shadow map configuration parameters.
Controls cascaded shadow map (CSM) generation when
DirectionalLight::cast_shadows is true.
Fields§
§cascade_count: u32Number of shadow cascades (1–4). Default: 2.
map_resolution: u32Shadow map resolution per cascade (pixels). Default: 2048.
intensity: f32Shadow intensity in [0, 1]. 0 = no shadow, 1 = fully dark.
Default: 0.8.
normal_offset: f32Normal-offset scale to reduce shadow acne (meters). Default: 3.0.
Trait Implementations§
Source§impl Clone for ShadowConfig
impl Clone for ShadowConfig
Source§fn clone(&self) -> ShadowConfig
fn clone(&self) -> ShadowConfig
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 ShadowConfig
Source§impl Debug for ShadowConfig
impl Debug for ShadowConfig
Source§impl Default for ShadowConfig
impl Default for ShadowConfig
Source§impl PartialEq for ShadowConfig
impl PartialEq for ShadowConfig
Source§fn eq(&self, other: &ShadowConfig) -> bool
fn eq(&self, other: &ShadowConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ShadowConfig
Auto Trait Implementations§
impl Freeze for ShadowConfig
impl RefUnwindSafe for ShadowConfig
impl Send for ShadowConfig
impl Sync for ShadowConfig
impl Unpin for ShadowConfig
impl UnsafeUnpin for ShadowConfig
impl UnwindSafe for ShadowConfig
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