pub enum ShadowDepth {
Reversed,
Standard,
}Expand description
The device depth a face’s projection writes over the depth z along its forward axis, between its near plane n
and far plane f.
Variants§
Reversed
1 at the near plane, 0 at the far: n (f - z) / (z (f - n)). Casters keep the greater depth.
Standard
0 at the near plane, 1 at the far: f (z - n) / (z (f - n)). Casters keep the lesser depth.
Trait Implementations§
Source§impl Clone for ShadowDepth
impl Clone for ShadowDepth
impl Copy for ShadowDepth
Source§impl Debug for ShadowDepth
impl Debug for ShadowDepth
impl Eq for ShadowDepth
Source§impl PartialEq for ShadowDepth
impl PartialEq for ShadowDepth
Source§impl Serialize for ShadowDepth
impl Serialize for ShadowDepth
impl StructuralPartialEq for ShadowDepth
Auto Trait Implementations§
impl Forget for ShadowDepth
impl Freeze for ShadowDepth
impl RefUnwindSafe for ShadowDepth
impl Send for ShadowDepth
impl Sync for ShadowDepth
impl Unpin for ShadowDepth
impl UnsafeUnpin for ShadowDepth
impl UnwindSafe for ShadowDepth
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.