#[repr(u8)]pub enum TransparencyType {
Opaque = 0,
Cutout = 1,
Blend = 2,
}
Expand description
The type of transparency in a material.
Variants§
Opaque = 0
Alpha is completely ignored.
Cutout = 1
Alpha less than a specified value is discorded.
Blend = 2
Alpha is blended.
Implementations§
Source§impl TransparencyType
impl TransparencyType
pub fn to_debug_str(self) -> &'static str
pub fn to_sorting(self) -> Option<Sorting>
Trait Implementations§
Source§impl Clone for TransparencyType
impl Clone for TransparencyType
Source§fn clone(&self) -> TransparencyType
fn clone(&self) -> TransparencyType
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 TransparencyType
impl Debug for TransparencyType
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 TransparencyType
impl PartialEq for TransparencyType
impl Copy for TransparencyType
impl StructuralPartialEq for TransparencyType
Auto Trait Implementations§
impl Freeze for TransparencyType
impl RefUnwindSafe for TransparencyType
impl Send for TransparencyType
impl Sync for TransparencyType
impl Unpin for TransparencyType
impl UnwindSafe for TransparencyType
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