pub enum AlphaMode {
Opaque,
Mask {
cutoff: f32,
},
Blend,
}Expand description
Alpha blending mode for materials.
Variants§
Opaque
Fully opaque. No blending.
Mask
Alpha-tested with cutoff threshold. Fragments below cutoff are discarded.
Blend
Alpha-blended. Requires sorted draw order.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AlphaMode
impl<'de> Deserialize<'de> for AlphaMode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for AlphaMode
impl StructuralPartialEq for AlphaMode
Auto Trait Implementations§
impl Freeze for AlphaMode
impl RefUnwindSafe for AlphaMode
impl Send for AlphaMode
impl Sync for AlphaMode
impl Unpin for AlphaMode
impl UnsafeUnpin for AlphaMode
impl UnwindSafe for AlphaMode
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