pub enum ShadowDepthTerm {
FarOverDepthRange,
NegatedNearFarOverDepthRange,
Constant(f32),
}Expand description
One depth projection term of a light’s shadow record (LocalShadow::projection), of its faces’ near plane n and
far plane f (the light’s range).
Variants§
FarOverDepthRange
f / (f - n).
NegatedNearFarOverDepthRange
-n f / (f - n).
Constant(f32)
A value the source’s record holds whatever the light.
Trait Implementations§
Source§impl Clone for ShadowDepthTerm
impl Clone for ShadowDepthTerm
impl Copy for ShadowDepthTerm
Source§impl Debug for ShadowDepthTerm
impl Debug for ShadowDepthTerm
Source§impl PartialEq for ShadowDepthTerm
impl PartialEq for ShadowDepthTerm
Source§impl Serialize for ShadowDepthTerm
impl Serialize for ShadowDepthTerm
impl StructuralPartialEq for ShadowDepthTerm
Auto Trait Implementations§
impl Forget for ShadowDepthTerm
impl Freeze for ShadowDepthTerm
impl RefUnwindSafe for ShadowDepthTerm
impl Send for ShadowDepthTerm
impl Sync for ShadowDepthTerm
impl Unpin for ShadowDepthTerm
impl UnsafeUnpin for ShadowDepthTerm
impl UnwindSafe for ShadowDepthTerm
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