pub struct ShadowFaceView {
pub light: Entity,
pub face: u8,
pub region: Region,
pub view: [[f32; 4]; 4],
pub projection: [[f32; 4]; 4],
pub near: f32,
pub far: f32,
}Expand description
One face of a placed light: its region of the atlas and its camera, the view a consumer draws the light’s shadow casters from into that region.
Fields§
§light: Entity§face: u8The face’s index in LocalShadowAtlas::faces.
region: Region§view: [[f32; 4]; 4]World (the frame of ShadowedLight::centre) to the face’s view, rows: view * [p, 1].
projection: [[f32; 4]; 4]The face’s view to clip, rows: projection * [v, 1], its w the depth along the face’s forward axis.
near: f32§far: f32Trait Implementations§
Source§impl Clone for ShadowFaceView
impl Clone for ShadowFaceView
Source§impl Debug for ShadowFaceView
impl Debug for ShadowFaceView
Source§impl PartialEq for ShadowFaceView
impl PartialEq for ShadowFaceView
Source§impl Serialize for ShadowFaceView
impl Serialize for ShadowFaceView
impl StructuralPartialEq for ShadowFaceView
Auto Trait Implementations§
impl Forget for ShadowFaceView
impl Freeze for ShadowFaceView
impl RefUnwindSafe for ShadowFaceView
impl Send for ShadowFaceView
impl Sync for ShadowFaceView
impl Unpin for ShadowFaceView
impl UnsafeUnpin for ShadowFaceView
impl UnwindSafe for ShadowFaceView
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