pub enum Shading {
Lit,
Unlit,
}Expand description
Whether a material is lit.
Variants§
Lit
Lit by the scene’s lights (glTF’s metal-rough model).
Unlit
Not lit, exactly KHR_materials_unlit: the colour drawn is base_color x base_color_texture x the vertex
colour (COLOR_0), whatever lights the scene. Its other slots stay as the source stated them (a writer may
emit them as the fallback glTF prescribes); a renderer draws none of them.
Trait Implementations§
impl Copy for Shading
impl Eq for Shading
impl StructuralPartialEq for Shading
Auto Trait Implementations§
impl Forget for Shading
impl Freeze for Shading
impl RefUnwindSafe for Shading
impl Send for Shading
impl Sync for Shading
impl Unpin for Shading
impl UnsafeUnpin for Shading
impl UnwindSafe for Shading
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.