pub struct MediumShadowsLane { /* private fields */ }Expand description
Medium-resolution shadows: 1024² × 4-layer 2D atlas + 256² × 4-cube
cube atlas. Same algorithm and output types as
super::StandardShadowsLane; half the per-side resolution —
VRAM ≈ 16 + 6 MiB instead of 64 + 24 MiB.
Implementations§
Source§impl MediumShadowsLane
impl MediumShadowsLane
Sourcepub const ATLAS_2D_RESOLUTION: u32 = 1024
pub const ATLAS_2D_RESOLUTION: u32 = 1024
2D depth atlas resolution (per layer).
Sourcepub const ATLAS_2D_MAX_LIGHTS: u32 = 4
pub const ATLAS_2D_MAX_LIGHTS: u32 = 4
Number of directional / spot shadow casters per frame.
Sourcepub const CUBE_FACE_RESOLUTION: u32 = 256
pub const CUBE_FACE_RESOLUTION: u32 = 256
Cube atlas per-face resolution.
Sourcepub const CUBE_MAX_LIGHTS: u32 = 4
pub const CUBE_MAX_LIGHTS: u32 = 4
Number of point shadow casters per frame.
Trait Implementations§
Source§impl Default for MediumShadowsLane
impl Default for MediumShadowsLane
Source§fn default() -> MediumShadowsLane
fn default() -> MediumShadowsLane
Returns the “default value” for a type. Read more
Source§impl Lane for MediumShadowsLane
impl Lane for MediumShadowsLane
Source§fn strategy_name(&self) -> &'static str
fn strategy_name(&self) -> &'static str
Human-readable name identifying this lane’s strategy. Read more
Source§fn estimate_cost(&self, ctx: &LaneContext) -> f32
fn estimate_cost(&self, ctx: &LaneContext) -> f32
Estimated computational cost of running this lane. Read more
Source§fn on_initialize(&self, ctx: &mut LaneContext) -> Result<(), LaneError>
fn on_initialize(&self, ctx: &mut LaneContext) -> Result<(), LaneError>
Called once when the lane is registered or the underlying context resets. Read more
Source§fn execute(&self, ctx: &mut LaneContext) -> Result<(), LaneError>
fn execute(&self, ctx: &mut LaneContext) -> Result<(), LaneError>
Main execution entry point — called each frame/tick by the owning agent. Read more
Source§fn on_shutdown(&self, ctx: &mut LaneContext)
fn on_shutdown(&self, ctx: &mut LaneContext)
Called when the lane is being destroyed or the context is shutting down. Read more
Source§fn as_any_mut(&mut self) -> &mut dyn Any
fn as_any_mut(&mut self) -> &mut dyn Any
Downcast to a concrete type (mutable) for type-specific operations.
Auto Trait Implementations§
impl !Freeze for MediumShadowsLane
impl RefUnwindSafe for MediumShadowsLane
impl Send for MediumShadowsLane
impl Sync for MediumShadowsLane
impl Unpin for MediumShadowsLane
impl UnsafeUnpin for MediumShadowsLane
impl UnwindSafe for MediumShadowsLane
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