pub enum Transparency {
Opaque,
Cutout {
cutout: f32,
},
Blend,
}
Expand description
How transparency should be handled in a material.
Variants§
Opaque
Alpha is completely ignored.
Cutout
Pixels with alpha less than cutout
is discorded.
Blend
Alpha is blended.
Trait Implementations§
Source§impl Clone for Transparency
impl Clone for Transparency
Source§fn clone(&self) -> Transparency
fn clone(&self) -> Transparency
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for Transparency
impl Debug for Transparency
Source§impl Default for Transparency
impl Default for Transparency
Source§impl From<Transparency> for TransparencyType
impl From<Transparency> for TransparencyType
Source§fn from(t: Transparency) -> Self
fn from(t: Transparency) -> Self
Converts to this type from the input type.
Source§impl PartialEq<Transparency> for TransparencyType
impl PartialEq<Transparency> for TransparencyType
Source§impl PartialEq<TransparencyType> for Transparency
impl PartialEq<TransparencyType> for Transparency
Source§impl PartialEq for Transparency
impl PartialEq for Transparency
impl Copy for Transparency
impl StructuralPartialEq for Transparency
Auto Trait Implementations§
impl Freeze for Transparency
impl RefUnwindSafe for Transparency
impl Send for Transparency
impl Sync for Transparency
impl Unpin for Transparency
impl UnwindSafe for Transparency
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