pub struct ShadowFace {
pub forward: [f32; 3],
pub right: [f32; 3],
pub up: [f32; 3],
}Expand description
One face of a light’s shadow: a view from the light’s centre along forward, right and up its view’s x and y,
in the frame the source’s shadowed programs compare positions in (LocalShadow::centre’s). Unit vectors, at
right angles, with right x up = forward: a point p of the face’s view lies at
(right . (p - c), up . (p - c), forward . (p - c)) in it.
Fields§
§forward: [f32; 3]§right: [f32; 3]§up: [f32; 3]Trait Implementations§
Source§impl Clone for ShadowFace
impl Clone for ShadowFace
impl Copy for ShadowFace
Source§impl Debug for ShadowFace
impl Debug for ShadowFace
Source§impl PartialEq for ShadowFace
impl PartialEq for ShadowFace
Source§impl Serialize for ShadowFace
impl Serialize for ShadowFace
impl StructuralPartialEq for ShadowFace
Auto Trait Implementations§
impl Forget for ShadowFace
impl Freeze for ShadowFace
impl RefUnwindSafe for ShadowFace
impl Send for ShadowFace
impl Sync for ShadowFace
impl Unpin for ShadowFace
impl UnsafeUnpin for ShadowFace
impl UnwindSafe for ShadowFace
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